summaryrefslogtreecommitdiff
path: root/scripts/test
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2019-07-11 17:40:58 -0700
committerGitHub <noreply@github.com>2019-07-11 17:40:58 -0700
commit29b6458350747ef325bcbc98ec79860edb2e1867 (patch)
tree7d449013236ca6301ef76d0f7435b402ce0c23e6 /scripts/test
parent39b9e38f8b76f64afdd8c146357d35699fafc347 (diff)
downloadbinaryen-29b6458350747ef325bcbc98ec79860edb2e1867.tar.gz
binaryen-29b6458350747ef325bcbc98ec79860edb2e1867.tar.bz2
binaryen-29b6458350747ef325bcbc98ec79860edb2e1867.zip
Handle passive segments in wasm-emscripten-finalize (#2217)
Diffstat (limited to 'scripts/test')
-rwxr-xr-xscripts/test/lld.py14
1 files changed, 11 insertions, 3 deletions
diff --git a/scripts/test/lld.py b/scripts/test/lld.py
index 66c4ebb47..c573f6480 100755
--- a/scripts/test/lld.py
+++ b/scripts/test/lld.py
@@ -33,11 +33,15 @@ def test_wasm_emscripten_finalize():
for wast_path in files_with_pattern(options.binaryen_test, 'lld', '*.wast'):
print '..', wast_path
+ is_passive = '.passive.' in wast_path
mem_file = wast_path + '.mem'
extension_arg_map = {
- '.out': [],
- '.mem.out': ['--separate-data-segments', mem_file],
+ '.out': [],
}
+ if not is_passive:
+ extension_arg_map.update({
+ '.mem.out': ['--separate-data-segments', mem_file],
+ })
for ext, ext_args in extension_arg_map.items():
expected_file = wast_path + ext
if ext != '.out' and not os.path.exists(expected_file):
@@ -63,11 +67,15 @@ def update_lld_tests():
for wast_path in files_with_pattern(options.binaryen_test, 'lld', '*.wast'):
print '..', wast_path
+ is_passive = '.passive.' in wast_path
mem_file = wast_path + '.mem'
extension_arg_map = {
'.out': [],
- '.mem.out': ['--separate-data-segments', mem_file + '.mem'],
}
+ if not is_passive:
+ extension_arg_map.update({
+ '.mem.out': ['--separate-data-segments', mem_file + '.mem'],
+ })
for ext, ext_args in extension_arg_map.items():
out_path = wast_path + ext
if ext != '.out' and not os.path.exists(out_path):