diff options
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=[]): |