diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-12-20 15:55:58 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-12-20 15:55:58 -0800 |
commit | 609b1207f44f99b0a7ed0722f9ac506b28c335e4 (patch) | |
tree | 7d18e7e6027958839be4f7249b7098be62b45e10 /tests/fuzz/test.sh | |
parent | 39a3f9ce401f4506f8b816ed7f0bd023ea5b7ff8 (diff) |
fuzz testcase
Diffstat (limited to 'tests/fuzz/test.sh')
-rwxr-xr-x | tests/fuzz/test.sh | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/tests/fuzz/test.sh b/tests/fuzz/test.sh index 768e7ed7..cc77dba4 100755 --- a/tests/fuzz/test.sh +++ b/tests/fuzz/test.sh @@ -5,16 +5,19 @@ echo "0" gcc $1 -I/home/alon/Dev/csmith/runtime &> /dev/null ~/Dev/emscripten/emcc $1 -I/home/alon/Dev/csmith/runtime &> /dev/null -./a.out -mozjs a.out.js +./a.out > o +mozjs a.out.js > b +diff o b echo "1" gcc -O1 $1 -I/home/alon/Dev/csmith/runtime &> /dev/null ~/Dev/emscripten/emcc -O1 $1 -I/home/alon/Dev/csmith/runtime &> /dev/null -./a.out -mozjs a.out.js +./a.out > o +mozjs a.out.js > b +diff o b echo "2" gcc -O2 $1 -I/home/alon/Dev/csmith/runtime &> /dev/null ~/Dev/emscripten/emcc -O2 $1 -I/home/alon/Dev/csmith/runtime &> /dev/null -./a.out -mozjs a.out.js +./a.out > o +mozjs a.out.js > b +diff o b |