diff options
author | Sam Clegg <sbc@chromium.org> | 2020-04-09 13:50:42 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-09 10:50:42 -0700 |
commit | 9d572bd24d4e9109fad70dbbd29bb04b2ea47113 (patch) | |
tree | d99406028a644729d8671d3ef01b8a93a50ecd4f | |
parent | 88b2b6411e13ed08d3d10fd77749d8e536d71c4c (diff) | |
download | binaryen-9d572bd24d4e9109fad70dbbd29bb04b2ea47113.tar.gz binaryen-9d572bd24d4e9109fad70dbbd29bb04b2ea47113.tar.bz2 binaryen-9d572bd24d4e9109fad70dbbd29bb04b2ea47113.zip |
Remove executable bit from test scripts (#2734)
These are no all driven by only by the two top level scripts:
check.py
auto_update_tests.py
What is more all of them were broken when run isolation due to
relative import rules in python3. e.g.:
```
$ scripts/test/binaryenjs.py
Traceback (most recent call last):
File "scripts/test/binaryenjs.py", line 21, in <module>
from . import shared
ImportError: cannot import name 'shared' from '__main__' (scripts/test/binaryenjs.py)
```
-rw-r--r--[-rwxr-xr-x] | scripts/test/asm2wasm.py | 7 | ||||
-rw-r--r--[-rwxr-xr-x] | scripts/test/binaryenjs.py | 17 | ||||
-rw-r--r--[-rwxr-xr-x] | scripts/test/lld.py | 5 | ||||
-rw-r--r--[-rwxr-xr-x] | scripts/test/wasm2js.py | 6 |
4 files changed, 0 insertions, 35 deletions
diff --git a/scripts/test/asm2wasm.py b/scripts/test/asm2wasm.py index 0c5abb828..bdc75c9f9 100755..100644 --- a/scripts/test/asm2wasm.py +++ b/scripts/test/asm2wasm.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # Copyright 2017 WebAssembly Community Group participants # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -149,8 +147,3 @@ def test_asm2wasm_binary(): assert open('a.wasm', 'rb').read()[0] == 0, 'we emit binary by default' support.run_command(shared.ASM2WASM + [asmjs, '-o', 'b.wast', '-S']) assert open('b.wast', 'rb').read()[0] != 0, 'we emit text with -S' - - -if __name__ == '__main__': - test_asm2wasm() - test_asm2wasm_binary() diff --git a/scripts/test/binaryenjs.py b/scripts/test/binaryenjs.py index f79bf96a1..645c2501a 100755..100644 --- a/scripts/test/binaryenjs.py +++ b/scripts/test/binaryenjs.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # Copyright 2016 WebAssembly Community Group participants # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -16,7 +14,6 @@ import os import subprocess -import sys from . import shared from . import support @@ -110,17 +107,3 @@ def test_binaryen_js(): def test_binaryen_wasm(): do_test_binaryen_js_with(shared.BINARYEN_WASM) - - -def test_binaryen_js_and_wasm(): - test_binaryen_js() - test_binaryen_wasm() - - -if __name__ == "__main__": - if sys.argv[1] == "js": - test_binaryen_js() - elif sys.argv[1] == "wasm": - test_binaryen_wasm() - else: - test_binaryen_js_and_wasm() diff --git a/scripts/test/lld.py b/scripts/test/lld.py index 9323dded6..19528ebc6 100755..100644 --- a/scripts/test/lld.py +++ b/scripts/test/lld.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python3 # Copyright 2017 WebAssembly Community Group participants # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -92,7 +91,3 @@ def update_lld_tests(): actual = support.run_command(cmd) with open(out_path, 'w') as o: o.write(actual) - - -if __name__ == '__main__': - test_wasm_emscripten_finalize() diff --git a/scripts/test/wasm2js.py b/scripts/test/wasm2js.py index 975262efe..8a1c99975 100755..100644 --- a/scripts/test/wasm2js.py +++ b/scripts/test/wasm2js.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 -# # Copyright 2016 WebAssembly Community Group participants # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -181,7 +179,3 @@ def update_wasm2js_tests(): out = support.run_command(cmd) with open(traps_expected_file, 'w') as o: o.write(out) - - -if __name__ == "__main__": - test_wasm2js() |