From bbbcfac68a711ecc7c44d3997aa1722ceca59f68 Mon Sep 17 00:00:00 2001 From: Arne Keller Date: Sat, 15 Feb 2020 15:25:36 +0100 Subject: [PATCH] Add fuzzing script --- fuzz.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 fuzz.sh diff --git a/fuzz.sh b/fuzz.sh new file mode 100755 index 0000000..759697f --- /dev/null +++ b/fuzz.sh @@ -0,0 +1,16 @@ +while true; do + rm /tmp/input$$-* + radamsa -o /tmp/input$$-%n -n 100 ~/Documents/KIT/2019/Prog/final1/*input.txt + for filename in /tmp/input$$-*; do + echo "exit" >> $filename + java -cp out/production/final1/ -Xshare:on edu.kit.informatik.Main < $filename + if [ $? -eq 0 ]; then + echo OK + else + echo $filename + #notify-send -t 20000 FAIL + #break 2 + cp $filename fails + fi + done +done