Skip to content

Commit 328e8da

Browse files
aheejinradekdoulik
authored andcommitted
[test] Remove asm2wasm tests from scripts (WebAssembly#6162)
We don't have `*.fromasm` files anymore. Also `BIN_DIR` and `WATERFALL_BUILD_DIR` variables don't seem to be used as well.
1 parent 97fb8bc commit 328e8da

File tree

3 files changed

+0
-25
lines changed

3 files changed

+0
-25
lines changed

scripts/test/shared.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,6 @@ def is_exe(fpath):
192192
return exe_file + '.bat'
193193

194194

195-
WATERFALL_BUILD_DIR = os.path.join(options.binaryen_test, 'wasm-install')
196-
BIN_DIR = os.path.abspath(os.path.join(WATERFALL_BUILD_DIR, 'wasm-install', 'bin'))
197-
198195
NATIVECC = (os.environ.get('CC') or which('mingw32-gcc') or
199196
which('gcc') or which('clang'))
200197
NATIVEXX = (os.environ.get('CXX') or which('mingw32-g++') or

scripts/test/wasm_opt.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -124,16 +124,6 @@ def check():
124124

125125
print('\n[ checking wasm-opt debugInfo read-write... ]\n')
126126

127-
for t in shared.get_tests(shared.options.binaryen_test, ['.fromasm']):
128-
if 'debugInfo' not in t:
129-
continue
130-
print('..', os.path.basename(t))
131-
f = t + '.read-written'
132-
support.run_command(shared.WASM_AS + [t, '--source-map=a.map', '-o', 'a.wasm', '-g'])
133-
support.run_command(shared.WASM_OPT + ['a.wasm', '--input-source-map=a.map', '-o', 'b.wasm', '--output-source-map=b.map', '-g'])
134-
actual = support.run_command(shared.WASM_DIS + ['b.wasm', '--source-map=b.map'])
135-
shared.fail_if_not_identical_to_file(actual, f)
136-
137127

138128
def update_wasm_opt_tests():
139129
print('\n[ checking wasm-opt -o notation... ]\n')
@@ -203,17 +193,6 @@ def update_wasm_opt_tests():
203193
actual = actual.replace('printing before:\n', '')
204194
open(f, 'w').write(actual)
205195

206-
print('\n[ checking wasm-opt debugInfo read-write... ]\n')
207-
for t in shared.get_tests(shared.options.binaryen_test, ['.fromasm']):
208-
if 'debugInfo' not in t:
209-
continue
210-
print('..', os.path.basename(t))
211-
f = t + '.read-written'
212-
support.run_command(shared.WASM_AS + [t, '--source-map=a.map', '-o', 'a.wasm', '-g'])
213-
support.run_command(shared.WASM_OPT + ['a.wasm', '--input-source-map=a.map', '-o', 'b.wasm', '--output-source-map=b.map', '-g'])
214-
actual = support.run_command(shared.WASM_DIS + ['b.wasm', '--source-map=b.map'])
215-
open(f, 'w').write(actual)
216-
217196
print('\n[ checking binary format testcases... ]\n')
218197
for wast in shared.get_tests(shared.options.binaryen_test, ['.wast']):
219198
for debug_info in [0, 1]:

test/lit/passes/inlining-optimizing_optimize-level=3.wast

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
;; RUN: foreach %s %t wasm-opt --inlining-optimizing --optimize-level=3 -S -o - | filecheck %s
55

6-
;; similar to test/emcc_hello_world.fromasm.clamp ;;
76
(module
87
;; CHECK: (type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32)))
98
(type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32)))

0 commit comments

Comments
 (0)