Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- javac ZZZZZ
- tar -xzf $1 tests/
- testList=$(ls ./tests | sed 's/\..*//' | uniq)
- for test in $testList
- do
- FILE=/tests/$test
- if test -f "$FILE.import"; then
- java -Dimport=$FILE.import YYYYY < $FILE.in > temp.out
- else
- java YYYYY < $FILE.in > temp.out
- fi
- if cmp --silent $FILE.out temp.out; then
- echo "$test [failed]"
- else
- echo "$test [passed]"
- fi
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement