diff options
-rwxr-xr-x | check.py | 4 | ||||
-rw-r--r-- | scripts/test/shared.py | 2 | ||||
-rw-r--r-- | scripts/test/wasm2js.py | 3 | ||||
-rw-r--r-- | scripts/test/wasm_opt.py | 8 | ||||
-rw-r--r-- | test/unit/test_asyncify.py | 2 | ||||
-rw-r--r-- | test/unit/test_passes.py | 1 |
6 files changed, 10 insertions, 10 deletions
@@ -82,7 +82,7 @@ def run_wasm_dis_tests(): # also verify there are no validation errors def check(): - cmd = shared.WASM_OPT + [t, '-all'] + cmd = shared.WASM_OPT + [t, '-all', '-q'] support.run_command(cmd) shared.with_pass_debug(check) @@ -195,7 +195,7 @@ def run_spec_tests(): def run_opt_test(wast): # check optimization validation - cmd = shared.WASM_OPT + [wast, '-O', '-all'] + cmd = shared.WASM_OPT + [wast, '-O', '-all', '-q'] support.run_command(cmd) def check_expected(actual, expected): diff --git a/scripts/test/shared.py b/scripts/test/shared.py index 28c85e792..441545db3 100644 --- a/scripts/test/shared.py +++ b/scripts/test/shared.py @@ -481,7 +481,7 @@ def binary_format_check(wast, verify_final_result=True, wasm_as_args=['-g'], assert os.path.exists('ab.wast') # make sure it is a valid wast - cmd = WASM_OPT + ['ab.wast', '-all'] + cmd = WASM_OPT + ['ab.wast', '-all', '-q'] print(' ', ' '.join(cmd)) subprocess.check_call(cmd, stdout=subprocess.PIPE) diff --git a/scripts/test/wasm2js.py b/scripts/test/wasm2js.py index 7fdd8eb94..ea299e4ed 100644 --- a/scripts/test/wasm2js.py +++ b/scripts/test/wasm2js.py @@ -13,6 +13,7 @@ # limitations under the License. import os +import subprocess from . import shared from . import support @@ -90,7 +91,7 @@ def test_wasm2js_output(): cmd += ['--allow-asserts'] js = support.run_command(cmd) # also verify it passes pass-debug verifications - shared.with_pass_debug(lambda: support.run_command(cmd)) + shared.with_pass_debug(lambda: support.run_command(cmd, stderr=subprocess.PIPE)) open('a.2asm.asserts.mjs', 'w').write(js) diff --git a/scripts/test/wasm_opt.py b/scripts/test/wasm_opt.py index 189a9978c..bc4706906 100644 --- a/scripts/test/wasm_opt.py +++ b/scripts/test/wasm_opt.py @@ -27,7 +27,7 @@ def test_wasm_opt(): wast = os.path.join(shared.options.binaryen_test, 'hello_world.wat') shared.delete_from_orbit('a.wat') out = 'a.wat' - cmd = shared.WASM_OPT + [wast, '-o', out, '-S'] + extra_args + cmd = shared.WASM_OPT + [wast, '-o', out, '-S', '-q'] + extra_args support.run_command(cmd) shared.fail_if_not_identical_to_file(open(out).read(), wast) @@ -36,9 +36,9 @@ def test_wasm_opt(): shutil.copyfile(os.path.join(shared.options.binaryen_test, 'hello_world.wat'), 'a.wat') shared.delete_from_orbit('a.wasm') shared.delete_from_orbit('b.wast') - support.run_command(shared.WASM_OPT + ['a.wat', '-o', 'a.wasm']) + support.run_command(shared.WASM_OPT + ['a.wat', '-o', 'a.wasm', '-q']) assert open('a.wasm', 'rb').read()[0] == 0, 'we emit binary by default' - support.run_command(shared.WASM_OPT + ['a.wasm', '-o', 'b.wast', '-S']) + support.run_command(shared.WASM_OPT + ['a.wasm', '-o', 'b.wast', '-S', '-q']) assert open('b.wast', 'rb').read()[0] != 0, 'we emit text with -S' print('\n[ checking wasm-opt passes... ]\n') @@ -63,7 +63,7 @@ def test_wasm_opt(): for module, asserts in support.split_wast(t): assert len(asserts) == 0 support.write_wast('split.wast', module) - cmd = shared.WASM_OPT + opts + ['split.wast'] + cmd = shared.WASM_OPT + opts + ['split.wast', '-q'] if 'noprint' not in t: cmd.append('--print') curr = support.run_command(cmd) diff --git a/test/unit/test_asyncify.py b/test/unit/test_asyncify.py index 81763b051..c9e0364be 100644 --- a/test/unit/test_asyncify.py +++ b/test/unit/test_asyncify.py @@ -15,7 +15,7 @@ class AsyncifyTest(utils.BinaryenTestCase): shared.run_process(shared.WASM_OPT + args + [self.input_path('asyncify-stackOverflow.wat'), '--asyncify', '-o', 'c.wasm']) print(' file size: %d' % os.path.getsize('a.wasm')) if shared.NODEJS: - shared.run_process([shared.NODEJS, self.input_path('asyncify.js')]) + shared.run_process([shared.NODEJS, self.input_path('asyncify.js')], stdout=subprocess.PIPE, stderr=subprocess.PIPE) test(['-g']) test([]) diff --git a/test/unit/test_passes.py b/test/unit/test_passes.py index 5f91afa92..838f1d2f7 100644 --- a/test/unit/test_passes.py +++ b/test/unit/test_passes.py @@ -13,7 +13,6 @@ class PassesTest(utils.BinaryenTestCase): hello_wat = self.input_path('hello_world.wat') log = shared.run_process(shared.WASM_OPT + [hello_wat] + args, stderr=subprocess.PIPE).stderr - print(log) passes = re.findall(r'running pass: ([\w-]+)\.\.\.', log) return passes finally: |