brandizzi icon

Reporting success or failure for each case

brandizzi | PRO | 08/02/18 11:08:42 AM UTC | 0 ⭐ | 1334 👁️ | Never ⏰ | []
Bash |

340 B

|

None

|

0 👍

/

0 👎

for l in examples/*.lox
do
  out=$(mktemp)
  err=$(mktemp)
  java -classpath target/classes/ br.com.brandizzi.adam.myjlox.Lox $l > $out 2> $err
 
  if ! diff $l.out $out
  then
    FAIL=1
  fi
 
  if ! diff $l.err $err
  then
    FAIL=1
  fi
 
  if [ "$FAIL" = "1" ]
  then
    echo "FAIL" $l
  else
    echo "PASS" $l
  fi
done

Comments