summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2023-12-11 17:41:14 -0800
committerGitHub <noreply@github.com>2023-12-11 17:41:14 -0800
commit8613b14d74db8c2c18e144198147feba74b09132 (patch)
tree77b025ba41bab5ab5ff20b4062b3dcda38084d22
parentcba8e18a70f76364e6b6ecdbbe4931c11dc58c08 (diff)
downloadbinaryen-8613b14d74db8c2c18e144198147feba74b09132.tar.gz
binaryen-8613b14d74db8c2c18e144198147feba74b09132.tar.bz2
binaryen-8613b14d74db8c2c18e144198147feba74b09132.zip
[test] Remove asm2wasm tests from scripts (#6162)
We don't have `*.fromasm` files anymore. Also `BIN_DIR` and `WATERFALL_BUILD_DIR` variables don't seem to be used as well.
-rw-r--r--scripts/test/shared.py3
-rw-r--r--scripts/test/wasm_opt.py21
-rw-r--r--test/lit/passes/inlining-optimizing_optimize-level=3.wast1
3 files changed, 0 insertions, 25 deletions
diff --git a/scripts/test/shared.py b/scripts/test/shared.py
index 8fdf2375c..75dece375 100644
--- a/scripts/test/shared.py
+++ b/scripts/test/shared.py
@@ -192,9 +192,6 @@ def which(program):
return exe_file + '.bat'
-WATERFALL_BUILD_DIR = os.path.join(options.binaryen_test, 'wasm-install')
-BIN_DIR = os.path.abspath(os.path.join(WATERFALL_BUILD_DIR, 'wasm-install', 'bin'))
-
NATIVECC = (os.environ.get('CC') or which('mingw32-gcc') or
which('gcc') or which('clang'))
NATIVEXX = (os.environ.get('CXX') or which('mingw32-g++') or
diff --git a/scripts/test/wasm_opt.py b/scripts/test/wasm_opt.py
index bc4706906..9695eadca 100644
--- a/scripts/test/wasm_opt.py
+++ b/scripts/test/wasm_opt.py
@@ -124,16 +124,6 @@ def test_wasm_opt():
print('\n[ checking wasm-opt debugInfo read-write... ]\n')
- for t in shared.get_tests(shared.options.binaryen_test, ['.fromasm']):
- if 'debugInfo' not in t:
- continue
- print('..', os.path.basename(t))
- f = t + '.read-written'
- support.run_command(shared.WASM_AS + [t, '--source-map=a.map', '-o', 'a.wasm', '-g'])
- support.run_command(shared.WASM_OPT + ['a.wasm', '--input-source-map=a.map', '-o', 'b.wasm', '--output-source-map=b.map', '-g'])
- actual = support.run_command(shared.WASM_DIS + ['b.wasm', '--source-map=b.map'])
- shared.fail_if_not_identical_to_file(actual, f)
-
def update_wasm_opt_tests():
print('\n[ checking wasm-opt -o notation... ]\n')
@@ -203,17 +193,6 @@ def update_wasm_opt_tests():
actual = actual.replace('printing before:\n', '')
open(f, 'w').write(actual)
- print('\n[ checking wasm-opt debugInfo read-write... ]\n')
- for t in shared.get_tests(shared.options.binaryen_test, ['.fromasm']):
- if 'debugInfo' not in t:
- continue
- print('..', os.path.basename(t))
- f = t + '.read-written'
- support.run_command(shared.WASM_AS + [t, '--source-map=a.map', '-o', 'a.wasm', '-g'])
- support.run_command(shared.WASM_OPT + ['a.wasm', '--input-source-map=a.map', '-o', 'b.wasm', '--output-source-map=b.map', '-g'])
- actual = support.run_command(shared.WASM_DIS + ['b.wasm', '--source-map=b.map'])
- open(f, 'w').write(actual)
-
print('\n[ checking binary format testcases... ]\n')
for wast in shared.get_tests(shared.options.binaryen_test, ['.wast']):
for debug_info in [0, 1]:
diff --git a/test/lit/passes/inlining-optimizing_optimize-level=3.wast b/test/lit/passes/inlining-optimizing_optimize-level=3.wast
index a44429688..dfdbed533 100644
--- a/test/lit/passes/inlining-optimizing_optimize-level=3.wast
+++ b/test/lit/passes/inlining-optimizing_optimize-level=3.wast
@@ -3,7 +3,6 @@
;; RUN: foreach %s %t wasm-opt --inlining-optimizing --optimize-level=3 -S -o - | filecheck %s
-;; similar to test/emcc_hello_world.fromasm.clamp ;;
(module
;; CHECK: (type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32)))
(type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32)))