From f067a45c1e88124173af992e66a7125fe6ab366a Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Tue, 11 Aug 2020 10:31:51 -0700 Subject: 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). --- scripts/test/wasm_opt.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'scripts/test/wasm_opt.py') 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 -- cgit v1.2.3