Skip to content

Commit

Permalink
fuzzing tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
kripken committed Jan 5, 2015
1 parent 9ab0cca commit 912dab0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions tests/fuzz/csmith_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
sys.path += [os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))), 'tools')]
import shared

# can add flags like --no-threads --ion-offthread-compile=off
engine1 = eval('shared.' + sys.argv[1]) if len(sys.argv) > 1 else shared.JS_ENGINES[0]
engine2 = shared.SPIDERMONKEY_ENGINE if os.path.exists(shared.SPIDERMONKEY_ENGINE[0]) else None

Expand Down
2 changes: 1 addition & 1 deletion tests/fuzz/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ gcc $@ -m32 -I/home/alon/Dev/csmith/runtime -o n1.out &> /dev/null
#EMCC_FAST_COMPILER=0 ~/Dev/emscripten/emcc $@ -I/home/alon/Dev/csmith/runtime -o js.out.js &> /dev/null
#EMCC_FAST_COMPILER=0~/Dev/emscripten/emcc $@ -s UNALIGNED_MEMORY=1 -I/home/alon/Dev/csmith/runtime -o ua.out.js &> /dev/null
#EMCC_FAST_COMPILER=0~/Dev/emscripten/emcc $@ -s SAFE_HEAP=1 -I/home/alon/Dev/csmith/runtime -o sh.out.js &> /dev/null
~/Dev/emscripten/emcc $@ -I/home/alon/Dev/csmith/runtime -s PRECISE_F32=1 -o fc.out.js &> /dev/null
~/Dev/emscripten/emcc $@ -I/home/alon/Dev/csmith/runtime -s PRECISE_F32=1 -o fc.out.js --memory-init-file 0 -profiling &> /dev/null
~/Dev/emscripten/emcc $@ -s SAFE_HEAP=1 -I/home/alon/Dev/csmith/runtime -s PRECISE_F32=1 -o fc-sh.out.js &> /dev/null
echo "run n1"
./n1.out &> n1
Expand Down
2 changes: 1 addition & 1 deletion tools/bisect_pair.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def path_from_root(*pathelems):
rightf.close()

def run_code(name):
ret = run_js(name, stderr=PIPE, full_output=True, assert_returncode=None)
ret = run_js(name, stderr=PIPE, full_output=True, assert_returncode=None, engine=SPIDERMONKEY_ENGINE)
# fix stack traces
ret = filter(lambda line: not line.startswith(' at ') and not name in line, ret.split('\n'))
return '\n'.join(ret)
Expand Down

0 comments on commit 912dab0

Please sign in to comment.