Selaa lähdekoodia

Allow to run the test modules as `python3 module.py`

tags/v0.0.1
Thom Wiggers 5 vuotta sitten
vanhempi
commit
685098ce33
No known key found for this signature in database GPG Key ID: 1BB0A7CE26E363
5 muutettua tiedostoa jossa 25 lisäystä ja 0 poistoa
  1. +5
    -0
      test/test_compile_lib.py
  2. +5
    -0
      test/test_functest.py
  3. +5
    -0
      test/test_license.py
  4. +5
    -0
      test/test_metadata.py
  5. +5
    -0
      test/test_symbol_namespace.py

+ 5
- 0
test/test_compile_lib.py Näytä tiedosto

@@ -21,3 +21,8 @@ def check_compile_lib(scheme_name, implementation_name):
['make'],
implementation.path()
)


if __name__ == '__main__':
import nose
nose.runmodule()

+ 5
- 0
test/test_functest.py Näytä tiedosto

@@ -21,3 +21,8 @@ def check_functest(scheme_name, implementation_name):
['./functest_{}_{}'.format(scheme_name, implementation_name)],
os.path.join('..', 'bin'),
)


if __name__ == '__main__':
import nose
nose.runmodule()

+ 5
- 0
test/test_license.py Näytä tiedosto

@@ -15,3 +15,8 @@ def check_license(scheme_name, implementation_name):
p1 = os.path.join(implementation.path(), 'LICENSE')
p2 = os.path.join(implementation.path(), 'LICENSE.txt')
assert(os.path.isfile(p1) or os.path.isfile(p2))


if __name__ == '__main__':
import nose
nose.runmodule()

+ 5
- 0
test/test_metadata.py Näytä tiedosto

@@ -116,3 +116,8 @@ def check_element(field, element, props):

if type_ == dict:
check_spec(element, props['spec'].items())


if __name__ == '__main__':
import nose
nose.runmodule()

+ 5
- 0
test/test_symbol_namespace.py Näytä tiedosto

@@ -44,3 +44,8 @@ def check_symbol_namespace(scheme_name, implementation_name):
for symbol in non_namespaced:
print("\ttype: {}, symbol: {}".format(symtype, symbol))
assert(False)


if __name__ == '__main__':
import nose
nose.runmodule()

Ladataan…
Peruuta
Tallenna