Advertisement
Guest User

Untitled

a guest
Sep 16th, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.65 KB | None | 0 0
  1. echo RUNNING $1
  2.  
  3. score=0
  4.  
  5. eval $LIB/public/wrapcase.pl -- "bash -c \"echo \\"$args\\" | $ex 2>&1\"" | tee $ofile
  6.  
  7. ## for setup ## cp $ofile ${1}.correct
  8.  
  9. diff $ofile ${1}.correct
  10.  
  11. rc=$?
  12.  
  13. [ $rc -eq 0 ] && score=1
  14.  
  15. echo RESULT: $1 "[ " $score " / 1 ]"
  16.  
  17. rm $ofile
  18.  
  19. exit $rc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement