Guest User

Untitled

a guest
Nov 17th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. ./Executable < test1.in > mytest1.out
  2.  
  3. for f in test*.in; do ./tetris <"$f" >"my${f%in}svg"; done
  4.  
  5. diff mytest1.out test1.out > difftest1.txt
  6.  
  7. for f in mytest*.svg; do diff "$f" "###what goes here?###" > "diff${f%in}txt"; done
  8.  
  9. for i in {1..2}; do
  10. diff test${i}.out mytest${i}.out &>/dev/null
  11. es=$?
  12. if [ $es -ne 0 ]; then
  13. echo "difference found"
  14. else
  15. echo "success"
  16. fi
  17. done
  18.  
  19. difference found
  20. success
  21.  
  22. diff test${i}.out mytest${i}.out > difftest${i}.txt
  23.  
  24. if ! [[ -s difftest${i} ]]; then
  25. echo success
  26. else
  27. echo "difference found"
  28. fi
Add Comment
Please, Sign In to add comment