qemu-arm: Add 'test' target to Makefile to run and verify test suite.
Replaces RUN_TEST=1 definition; now "make test" in qemu-arm directory will run tests/basics/ and check that they all succeed. This patch also enables the test on Travis CI.
This commit is contained in:
@@ -45,12 +45,14 @@ testgroup_member = (
|
||||
)
|
||||
|
||||
## XXX: may be we could have `--without <groups>` argument...
|
||||
test_dirs = ('basics', 'float', 'import', 'io', 'misc')
|
||||
# currently these tests are selected because they pass on qemu-arm
|
||||
test_dirs = ('basics',) # 'float', 'import', 'io', 'misc')
|
||||
exclude_tests = ('basics/builtin_override.py', 'basics/class_super_object.py', 'basics/memoryview_gc.py',)
|
||||
|
||||
output = []
|
||||
|
||||
for group in test_dirs:
|
||||
tests = glob('{}/*.py'.format(group))
|
||||
tests = [test for test in glob('{}/*.py'.format(group)) if test not in exclude_tests]
|
||||
output.extend([test_function.format(**script_to_map(test)) for test in tests])
|
||||
testcase_members = [testcase_member.format(**chew_filename(test)) for test in tests]
|
||||
output.append(testcase_struct.format(name=group, body='\n'.join(testcase_members)))
|
||||
|
||||
Reference in New Issue
Block a user