Add fuzzing script

This commit is contained in:
Arne Keller 2020-02-15 15:25:36 +01:00
parent 2267b3c5de
commit bbbcfac68a

16
fuzz.sh Executable file
View File

@ -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