summaryrefslogtreecommitdiffstatshomepage
path: root/tools/tinytest-codegen.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-01-09 00:03:21 +0000
committerDamien George <damien.p.george@gmail.com>2015-01-09 00:03:21 +0000
commit85e8e2ed5b1954b042b2157a27c6f06090cd0511 (patch)
treec8239a22ff2ea633e63a6000030698dbe6fccdc8 /tools/tinytest-codegen.py
parent3990dcfcd78017dfada57ff2ca61c2dbcf0b7074 (diff)
downloadmicropython-85e8e2ed5b1954b042b2157a27c6f06090cd0511.tar.gz
micropython-85e8e2ed5b1954b042b2157a27c6f06090cd0511.zip
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.
Diffstat (limited to 'tools/tinytest-codegen.py')
-rwxr-xr-xtools/tinytest-codegen.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/tinytest-codegen.py b/tools/tinytest-codegen.py
index af2335a9aa..ae6dc19b4e 100755
--- a/tools/tinytest-codegen.py
+++ b/tools/tinytest-codegen.py
@@ -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)))