daily pastebin goal
16%
SHARE
TWEET

Untitled

a guest May 16th, 2018 110 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. count=0
  4.  
  5. for f in "$1"/*.in; do
  6.   (( count++ ))
  7.   echo "">goldenRetriever.out
  8.   echo "">different.out
  9.  
  10.   java -classpath /home/fiffeek/Desktop/javaP1/SystemSchedulingSimulator/planista/out/production/planista/ $2 <${f} 1>goldenRetriever.out
  11.   java customDiff goldenRetriever.out ${f%.in}.out 1>different.out
  12.  
  13.   if [ "$(diff -q goldenRetriever.out ${f%.in}.out)" != "" ]; then
  14.     printf "diff nas nie lubi iii"
  15.     if [ "$(cat different.out)" != "GOOD" ]; then
  16.       echo -e "\e[101m mamy bledzik na [$count] = [$f]\e[0m"
  17.       break
  18.     fi
  19.     echo -e "\e[32m epsilon dziala dla [$count] = [$f], czyli git.\e[0m"
  20.   else
  21.     echo -e "\e[32mtescik [$count] = [$f] se dziala poprawnie.\e[0m"
  22.   fi
  23. done
  24.  
  25. echo -e "zrobione : $count testow"
  26.  
  27. rm -f goldenRetriever.out different.out
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top