Advertisement
Guest User

Untitled

a guest
Dec 9th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. javac ZZZZZ
  2. tar -xzf $1 tests/
  3.  
  4. testList=$(ls ./tests | sed 's/\..*//' | uniq)
  5. for test in $testList
  6. do
  7. FILE=/tests/$test
  8. if test -f "$FILE.import"; then
  9. java -Dimport=$FILE.import YYYYY < $FILE.in > temp.out
  10. else
  11. java YYYYY < $FILE.in > temp.out
  12. fi
  13.  
  14. if cmp --silent $FILE.out temp.out; then
  15. echo "$test [failed]"
  16. else
  17. echo "$test [passed]"
  18. fi
  19. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement