mirror of
https://gitlab.com/arnekeller/kit-programmieren-ws1920-final2.git
synced 2024-11-08 18:00:37 +00:00
Add fuzzing script
This commit is contained in:
parent
6cfc8c0a89
commit
4fc13f159c
16
fuzz.sh
Executable file
16
fuzz.sh
Executable file
@ -0,0 +1,16 @@
|
|||||||
|
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
|
||||||
|
java -cp out/production/final2/ 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
|
Loading…
Reference in New Issue
Block a user