summaryrefslogtreecommitdiff
path: root/scripts/test/wasm_opt.py
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2020-08-11 10:31:51 -0700
committerGitHub <noreply@github.com>2020-08-11 10:31:51 -0700
commitf067a45c1e88124173af992e66a7125fe6ab366a (patch)
tree769d3079cb03a59b5c6689dd1879db404fb61551 /scripts/test/wasm_opt.py
parent454a1cb0b90397593472b9dd31c5418e23c40be3 (diff)
downloadbinaryen-f067a45c1e88124173af992e66a7125fe6ab366a.tar.gz
binaryen-f067a45c1e88124173af992e66a7125fe6ab366a.tar.bz2
binaryen-f067a45c1e88124173af992e66a7125fe6ab366a.zip
Skip tests that fail on windows and enable all the rest (#3035)
This lets us run most tests at least on that platform. Add a new function for skipping those tests, skip_if_on_windows, so that it's easy to find which tests are disabled on windows for later fixing efforts. This fixes a few minor issues for windows, like comparisons should ignore \r in some cases. Rename all passes tests that use --dwarfdump to contain "dwarf" in their name, which makes it easy to skip those (and is clearer anyhow).
Diffstat (limited to 'scripts/test/wasm_opt.py')
-rw-r--r--scripts/test/wasm_opt.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/test/wasm_opt.py b/scripts/test/wasm_opt.py
index 8c6bbdec5..986ce2f61 100644
--- a/scripts/test/wasm_opt.py
+++ b/scripts/test/wasm_opt.py
@@ -45,6 +45,12 @@ def test_wasm_opt():
for t in shared.get_tests(shared.get_test_dir('passes'), ['.wast', '.wasm']):
print('..', os.path.basename(t))
+ # windows has some failures that need to be investigated:
+ # * ttf tests have different outputs - order of execution of params?
+ # * dwarf tests print windows slashes instead of unix
+ if ('translate-to-fuzz' in t or 'dwarf' in t) and \
+ shared.skip_if_on_windows('fuzz translation tests'):
+ continue
binary = '.wasm' in t
base = os.path.basename(t).replace('.wast', '').replace('.wasm', '')
passname = base