From 6cf7343bffa3d485161e221b23dfacd9243dec68 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Tue, 21 Nov 2017 13:05:52 -0800 Subject: Fix wasm-reduce testing out of tree (#1284) * fix wasm-reduce when out-of-tree: do not use a hardcoded bin/wasm-opt, instead add a Path namespace with utilities to get the proper path, and use BINARYEN_ROOT which our test setup code ensures --- scripts/test/shared.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scripts/test/shared.py') diff --git a/scripts/test/shared.py b/scripts/test/shared.py index 65f1f6e74..88d6688fa 100644 --- a/scripts/test/shared.py +++ b/scripts/test/shared.py @@ -102,6 +102,10 @@ if not options.binaryen_bin: else: options.binaryen_bin = 'bin' +# ensure BINARYEN_ROOT is set up +os.environ['BINARYEN_ROOT'] = os.path.dirname(os.path.abspath( + options.binaryen_bin)) + options.binaryen_bin = os.path.normpath(options.binaryen_bin) wasm_dis_filenames = ['wasm-dis', 'wasm-dis.exe'] -- cgit v1.2.3