Skip to content

Commit 578e2f3

Browse files
authored
[test] Add a set of default tests (emscripten-core#26391)
These are the tests that get run if you run just `./test/runner` without any args On my machine these run in about 2m20s: ``` $ ./test/runner Using default tests: jslib other core0 Running 2765 tests Using 128 parallel test processes [2765/2765] test_poppler (test_core.core0.test_poppler) ... ok ---------------------------------------------------------------------- Ran 2765 tests in 141.404s OK (skipped=79) Total core time: 12129.763s. Wallclock time: 141.404s. Parallelization: 85.78x. ```
1 parent 6504746 commit 578e2f3

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

test/runner.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@
127127
'browser_2gb',
128128
]
129129

130+
default_tests = ['jslib', 'other', 'core0']
131+
130132

131133
def check_js_engines():
132134
if not all(jsrun.check_engine(e) for e in config.JS_ENGINES):
@@ -724,6 +726,10 @@ def prepend_default(arg):
724726

725727
tests = [prepend_default(t) for t in options.tests]
726728

729+
if not tests:
730+
errlog(f"Using default tests: {' '.join(default_tests)}")
731+
tests = default_tests
732+
727733
modules = get_and_import_modules()
728734
all_tests = get_all_tests(modules)
729735
if options.crossplatform_only:
@@ -734,10 +740,6 @@ def prepend_default(arg):
734740
tests = skip_requested_tests(tests, modules)
735741
tests = args_for_random_tests(tests, modules)
736742

737-
if not tests:
738-
errlog('ERROR: no tests to run')
739-
return 1
740-
741743
if not options.start_at and options._continue:
742744
if os.path.exists(common.LAST_TEST):
743745
options.start_at = utils.read_file(common.LAST_TEST).strip()

0 commit comments

Comments
 (0)