Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/bash
- diff_found=0
- for i in {0..300}
- do
- python3 test_gen.py > input
- ./right < input > right_output
- ./possible < input > possible_output
- if diff -y right_output possible_output > differs;
- then
- echo "test $i passed"
- else
- echo "test $i failed"
- diff_found=1
- break
- fi
- done
- if [ $diff_found -eq 1 ]
- then
- echo "input:"
- cat input
- echo ""
- echo "output testing"
- cat possible_output
- echo ""
- echo "output right"
- cat right_output
- echo ""
- else
- echo "accepted"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement