diff options
author | Heejin Ahn <aheejin@gmail.com> | 2019-11-26 18:16:12 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-26 18:16:12 -0800 |
commit | 132d81eca7f9b07520ce17f69ea348bfb4dbc8e8 (patch) | |
tree | fec8d09cf9320053cdfd3d449c21833e833decaa /scripts/test | |
parent | d15fe879834b0c58d2d4d8526cb428990f7b50a7 (diff) | |
download | binaryen-132d81eca7f9b07520ce17f69ea348bfb4dbc8e8.tar.gz binaryen-132d81eca7f9b07520ce17f69ea348bfb4dbc8e8.tar.bz2 binaryen-132d81eca7f9b07520ce17f69ea348bfb4dbc8e8.zip |
Auto-update spec test outputs (#2481)
This makes auto_update_tests.py update spec test outputs (ones that are
printed with `spectest.print` import) and extracts spec tests blacklist
into shared.py with comments for reasons why each of them fails.
Also deletes if-label-scope.fail.wast.log because it does not seem to
match with any of existing tests.
Diffstat (limited to 'scripts/test')
-rw-r--r-- | scripts/test/shared.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/test/shared.py b/scripts/test/shared.py index bcaffe0b8..9d1fa094e 100644 --- a/scripts/test/shared.py +++ b/scripts/test/shared.py @@ -397,6 +397,22 @@ if not has_vanilla_emcc: warn('no functional emcc submodule found') +if not options.spec_tests: + options.spec_tests = get_tests(get_test_dir('spec'), ['.wast']) +else: + options.spec_tests = options.spec_tests[:] + +SPEC_TEST_BLACKLIST = [ + 'binary.wast', # Cannot parse binary modules + 'linking.wast', # No support for 'register' command + 'nop.wast', # Stacky code + 'stack.wast', # Stacky code + 'unwind.wast' # Stacky code +] +options.spec_tests = [t for t in options.spec_tests if os.path.basename(t) not + in SPEC_TEST_BLACKLIST] + + # check utilities |