Optimize fuzzing script

This commit is contained in:
Arne Keller 2020-03-11 10:51:45 +01:00
parent 45f05292b4
commit 1fecffad38

View File

@ -3,7 +3,7 @@ while true; do
radamsa -o /tmp/input$$-%n -n 100 ~/Documents/KIT/2019/Prog/final2/*input.txt radamsa -o /tmp/input$$-%n -n 100 ~/Documents/KIT/2019/Prog/final2/*input.txt
for filename in /tmp/input$$-*; do for filename in /tmp/input$$-*; do
echo "exit" >> $filename echo "exit" >> $filename
java -cp out/production/final2/ edu.kit.informatik.Main < $filename java -cp out/production/final2/ -Xshare:on edu.kit.informatik.Main < $filename
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
echo OK echo OK
else else