diff options
-rw-r--r-- | README.md | 15 | ||||
-rwxr-xr-x | scripts/auto_update_tests.py (renamed from auto_update_tests.py) | 12 | ||||
-rw-r--r-- | scripts/test/wasm2js.py | 4 |
3 files changed, 20 insertions, 11 deletions
@@ -566,9 +566,18 @@ The `check.py` script supports some options: * We have tests from upstream in `tests/spec`, in git submodules. Running `./check.py` should update those. -Note that we are trying to gradually port the legacy wasm-opt tests to use `lit` and `filecheck` as we modify them. -For `passes` tests that output wast, this can be done automatically with `scripts/port_passes_tests_to_lit.py` and for non-`passes` tests that output wast, see -https://github.com/WebAssembly/binaryen/pull/4779 for an example of how to do a simple manual port. +Note that we are trying to gradually port the legacy wasm-opt tests to use `lit` +and `filecheck` as we modify them. For `passes` tests that output wast, this +can be done automatically with `scripts/port_passes_tests_to_lit.py` and for +non-`passes` tests that output wast, see +https://github.com/WebAssembly/binaryen/pull/4779 for an example of how to do a +simple manual port. + +For lit tests the test expectations (the CHECK lines) can often be automatically +updated as changes are made to binaryen. See `scripts/update_lit_checks.py`. + +Non-lit tests can also be automatically updated in most cases. See +`scripts/auto_update_tests.py`. ### Setting up dependencies diff --git a/auto_update_tests.py b/scripts/auto_update_tests.py index 240fcbda2..527b1280f 100755 --- a/auto_update_tests.py +++ b/scripts/auto_update_tests.py @@ -19,12 +19,12 @@ import subprocess import sys from collections import OrderedDict -from scripts.test import binaryenjs -from scripts.test import lld -from scripts.test import shared -from scripts.test import support -from scripts.test import wasm2js -from scripts.test import wasm_opt +from test import binaryenjs +from test import lld +from test import shared +from test import support +from test import wasm2js +from test import wasm_opt def update_example_tests(): diff --git a/scripts/test/wasm2js.py b/scripts/test/wasm2js.py index 11f7011a1..7fdd8eb94 100644 --- a/scripts/test/wasm2js.py +++ b/scripts/test/wasm2js.py @@ -14,8 +14,8 @@ import os -from scripts.test import shared -from scripts.test import support +from . import shared +from . import support tests = shared.get_tests(shared.options.binaryen_test) # memory64 is not supported in wasm2js yet (but may be with BigInt eventually). |