diff options
author | Daniel Wirtz <dcode@dcode.io> | 2020-09-12 05:56:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-12 05:56:07 +0200 |
commit | 0c53fb5d84afe32bfdf13231908aad760cb1d89d (patch) | |
tree | f187899f1b2c047732e7c41d25919a1c54a4632e | |
parent | 926dcf27012322d92eddc3b7ce41df890984ec39 (diff) | |
download | binaryen-0c53fb5d84afe32bfdf13231908aad760cb1d89d.tar.gz binaryen-0c53fb5d84afe32bfdf13231908aad760cb1d89d.tar.bz2 binaryen-0c53fb5d84afe32bfdf13231908aad760cb1d89d.zip |
Include potentially out-of-tree bin directory in reduce.sh (#3120)
Since #3050 the fuzzer can test out-of-tree builds using the `--binaryen-bin` argument, but the argument was not yet added to the generated `reduce.sh` on fuzzing failures. This change adds it.
-rwxr-xr-x | scripts/fuzz_opt.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/fuzz_opt.py b/scripts/fuzz_opt.py index 4df552b99..3562a82f6 100755 --- a/scripts/fuzz_opt.py +++ b/scripts/fuzz_opt.py @@ -962,7 +962,7 @@ if __name__ == '__main__': echo "should be 0:" $? # run the command -./scripts/fuzz_opt.py %(seed)d %(temp_wasm)s > o 2> e +./scripts/fuzz_opt.py --binaryen-bin %(bin)s %(seed)d %(temp_wasm)s > o 2> e echo "should be 1:" $? # @@ -989,6 +989,7 @@ echo "should be 1:" $? # You may also need to add --timeout 5 or such if the testcase is a slow one. # ''' % {'wasm_opt': in_bin('wasm-opt'), + 'bin': shared.options.binaryen_bin, 'seed': seed, 'original_wasm': original_wasm, 'temp_wasm': os.path.abspath('t.wasm'), |