Browse Source

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

tags/v0.0.1
Thom Wiggers 5 years ago
parent
commit
685098ce33
No known key found for this signature in database GPG Key ID: 1BB0A7CE26E363
5 changed files with 25 additions and 0 deletions
  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 View File

@@ -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 View File

@@ -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 View File

@@ -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 View File

@@ -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 View File

@@ -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()

Loading…
Cancel
Save