summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2021-06-08 00:52:40 -0400
committerGitHub <noreply@github.com>2021-06-07 21:52:40 -0700
commit7f27492e7440f7fd6daf3df7f474e79d1a196833 (patch)
tree69141c7f35d1ca9ae1c990a57054c17757d3209b
parenta4ab1c7ee7376977ca09e2d3c4358893e9fdfce2 (diff)
downloadbinaryen-7f27492e7440f7fd6daf3df7f474e79d1a196833.tar.gz
binaryen-7f27492e7440f7fd6daf3df7f474e79d1a196833.tar.bz2
binaryen-7f27492e7440f7fd6daf3df7f474e79d1a196833.zip
Fix 'example' tests in check.py (#3920)
Rename the test suite from 'gcc' to 'example' to match the name in auto_update_tests.py. Also retrieve the tests to run using `shared.get_tests`, which properly applies the --filter argument, again to match auto_update_tests.py.
-rwxr-xr-xcheck.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/check.py b/check.py
index 680ce63a1..9b50bac0f 100755
--- a/check.py
+++ b/check.py
@@ -277,16 +277,16 @@ def run_validator_tests():
support.run_command(cmd, expected_status=1)
-def run_gcc_tests():
- print('\n[ checking native gcc testcases...]\n')
+def run_example_tests():
+ print('\n[ checking native example testcases...]\n')
if not shared.NATIVECC or not shared.NATIVEXX:
shared.fail_with_error('Native compiler (e.g. gcc/g++) was not found in PATH!')
return
# windows + gcc will need some work
- if shared.skip_if_on_windows('gcc'):
+ if shared.skip_if_on_windows('example'):
return
- for t in sorted(os.listdir(shared.get_test_dir('example'))):
+ for t in shared.get_tests(shared.get_test_dir('example')):
output_file = 'example'
cmd = ['-I' + os.path.join(shared.options.binaryen_root, 't'), '-g', '-pthread', '-o', output_file]
if not t.endswith(('.c', '.cpp')):
@@ -358,7 +358,7 @@ TEST_SUITES = OrderedDict([
('lld', lld.test_wasm_emscripten_finalize),
('wasm2js', wasm2js.test_wasm2js),
('validator', run_validator_tests),
- ('gcc', run_gcc_tests),
+ ('example', run_example_tests),
('unit', run_unittest),
('binaryenjs', binaryenjs.test_binaryen_js),
('binaryenjs_wasm', binaryenjs.test_binaryen_wasm),