kit-programmieren-ws1920-fi.../fuzz.sh

17 lines
406 B
Bash
Raw Permalink Normal View History

2020-03-07 09:24:51 +00:00
while true; do
rm /tmp/input$$-*
radamsa -o /tmp/input$$-%n -n 100 ~/Documents/KIT/2019/Prog/final2/*input.txt
for filename in /tmp/input$$-*; do
echo "exit" >> $filename
2020-03-11 10:07:48 +00:00
java -cp out/production/final2/ -Xshare:on edu.kit.informatik.cardgame.Main < $filename
2020-03-07 09:24:51 +00:00
if [ $? -eq 0 ]; then
echo OK
else
echo $filename
#notify-send -t 20000 FAIL
#break 2
cp $filename fails
fi
done
done