diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-10-18 12:00:28 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-10-18 12:00:28 -0700 |
commit | 97c679e6ff1c8d0617537ce286d22159af67a264 (patch) | |
tree | 043911dccd2aeddd4de2b49dbc7a8ff6e62d0fca /tests | |
parent | 1bf1c38536046e8203b2b7b84c16b64e1cf44581 (diff) |
support ALL.test in test runner
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/runner.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py index 208fa86d..b11edf15 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -41,6 +41,12 @@ To run a specific set of tests, you can do things like Combinations work too, for example python tests/runner.py browser.test_sdl_image + +In the main test suite, you can run all variations (O0, O1, O2, etc.) of +an individual test with + + python tests/runner.py ALL.test_hello_world + ============================================================================== ''' @@ -394,6 +400,11 @@ if 'benchmark' not in str(sys.argv) and 'sanity' not in str(sys.argv) and 'brows print "Running Emscripten tests..." + if len(sys.argv) == 2 and 'ALL.' in sys.argv[1]: + ignore, test = sys.argv[1].split('.') + print 'Running all test modes on test "%s"' % test + sys.argv = [sys.argv[0], 'default.'+test, 'o1.'+test, 'o2.'+test, 's_0_0.'+test, 's_0_1.'+test, 's_0_1_q1.'+test, 's_1_0.'+test, 's_1_1.'+test, 's_1_1_q1.'+test] + class T(RunnerCore): # Short name, to make it more fun to use manually on the commandline ## Does a complete test - builds, runs, checks output, etc. def do_run(self, src, expected_output, args=[], output_nicerizer=None, output_processor=None, no_build=False, main_file=None, additional_files=[], js_engines=None, post_build=None, basename='src.cpp', libraries=[], includes=[], force_c=False, build_ll_hook=None, extra_emscripten_args=[]): |