Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions test/codesize/test_codesize_mem_O3_grow_standalone.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"a.out.js": 4107,
"a.out.js.gz": 1992,
"a.out.nodebug.wasm": 5549,
"a.out.nodebug.wasm.gz": 2593,
"total": 9656,
"total_gz": 4585,
"a.out.nodebug.wasm": 5548,
"a.out.nodebug.wasm.gz": 2600,
"total": 9655,
"total_gz": 4592,
"sent": [
"args_get",
"args_sizes_get",
Expand Down
10 changes: 6 additions & 4 deletions test/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@
'browser_2gb',
]

default_tests = ['jslib', 'other', 'core0']


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

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

if not tests:
errlog(f"Using default tests: {' '.join(default_tests)}")
tests = default_tests

modules = get_and_import_modules()
all_tests = get_all_tests(modules)
if options.crossplatform_only:
Expand All @@ -734,10 +740,6 @@ def prepend_default(arg):
tests = skip_requested_tests(tests, modules)
tests = args_for_random_tests(tests, modules)

if not tests:
errlog('ERROR: no tests to run')
return 1

if not options.start_at and options._continue:
if os.path.exists(common.LAST_TEST):
options.start_at = utils.read_file(common.LAST_TEST).strip()
Expand Down
2 changes: 1 addition & 1 deletion test/test_jslib.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ def test_jslib_exported_functions(self):
});
''')
create_file('post.js', 'console.log("Foo:", Module.Foo())')
self.do_runf(test_file('hello_world.c'), cflags=['--post-js=post.js', '--js-library=lib.js', '-sEXPORTED_FUNCTIONS=Foo,_main'])
self.do_runf('hello_world.c', cflags=['--post-js=post.js', '--js-library=lib.js', '-sEXPORTED_FUNCTIONS=Foo,_main'])

def test_jslib_search_path(self):
create_file('libfoo.js', '''
Expand Down
2 changes: 1 addition & 1 deletion test/test_other.py
Original file line number Diff line number Diff line change
Expand Up @@ -15006,7 +15006,7 @@ def test_instantiate_wasm(self):
return {}; // Compiling asynchronously, no exports.
}''')
# Test with ASYNCIFY here to ensure that that wasmExports gets set to the wrapped version of the wasm exports.
self.do_runf(test_file('test_manual_wasm_instantiate.c'),cflags=['--pre-js=pre.js','-sASYNCIFY','-DASYNCIFY_ENABLED'])
self.do_runf('test_manual_wasm_instantiate.c', cflags=['--pre-js=pre.js','-sASYNCIFY','-DASYNCIFY_ENABLED'])

def test_late_module_api_assignment(self):
# When sync instantiation is used (or when async/await is used in MODULARIZE mode) certain
Expand Down
Loading