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:
Damien George
2015-01-09 00:03:21 +00:00
parent 3990dcfcd7
commit 85e8e2ed5b
4 changed files with 28 additions and 17 deletions

View File

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