aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtests/fuzz/test.sh13
1 files changed, 8 insertions, 5 deletions
diff --git a/tests/fuzz/test.sh b/tests/fuzz/test.sh
index 208e97e0..db0fac01 100755
--- a/tests/fuzz/test.sh
+++ b/tests/fuzz/test.sh
@@ -3,11 +3,12 @@
# to find failures, then check those out with this script
echo "builds"
+rm n1 n2 js ua sh fc fc-sh
gcc $@ -I/home/alon/Dev/csmith/runtime -o n1.out &> /dev/null
/home/alon/Dev/fastcomp/build/Release/bin/clang $@ -I/home/alon/Dev/csmith/runtime -o n2.out &> /dev/null
/home/alon/Dev/fastcomp/build/Release/bin/clang $@ -I/home/alon/Dev/csmith/runtime -emit-llvm -c -o bc.bc &> o
~/Dev/emscripten/emcc $@ -I/home/alon/Dev/csmith/runtime -o js.out.js &> /dev/null
-#~/Dev/emscripten/emcc $@ -s UNALIGNED_MEMORY=1 -I/home/alon/Dev/csmith/runtime -o ua.out.js &> /dev/null
+~/Dev/emscripten/emcc $@ -s UNALIGNED_MEMORY=1 -I/home/alon/Dev/csmith/runtime -o ua.out.js &> /dev/null
~/Dev/emscripten/emcc $@ -s SAFE_HEAP=1 -I/home/alon/Dev/csmith/runtime -o sh.out.js &> /dev/null
EMCC_FAST_COMPILER=1 ~/Dev/emscripten/emcc $@ -I/home/alon/Dev/csmith/runtime -o fc.out.js &> /dev/null
EMCC_FAST_COMPILER=1 ~/Dev/emscripten/emcc $@ -s SAFE_HEAP=1 -I/home/alon/Dev/csmith/runtime -o fc-sh.out.js &> /dev/null
@@ -20,7 +21,7 @@ echo "run bc"
echo "run js"
mozjs js.out.js &> js
echo "run ua"
-#mozjs ua.out.js &> ua
+mozjs ua.out.js &> ua
echo "run sh"
mozjs sh.out.js &> sh
echo "run fc"
@@ -34,11 +35,13 @@ diff n1 bc
echo "n/js"
diff n1 js | grep -v warning
echo "n/js-ua"
-#diff n1 ua | grep -v warning
+diff n1 ua | grep -v warning
echo "n/js-sh"
diff n1 sh | grep -v warning
echo "js/fc"
-diff js fc | grep -v warning
+diff fc js | grep -v warning
echo "js/fc-sh"
-diff js fc-sh | grep -v warning
+diff fc-sh js | grep -v warning
+echo "native/fc"
+diff n1 fc | grep -v warning