SHOW:
|
|
- or go back to the newest paste.
| 1 | for l in examples/*.lox | |
| 2 | do | |
| 3 | out=$(mktemp) | |
| 4 | err=$(mktemp) | |
| 5 | java -classpath target/classes/ br.com.brandizzi.adam.myjlox.Lox $l > $out 2> $err | |
| 6 | ||
| 7 | if ! diff $l.out $out | |
| 8 | then | |
| 9 | FAIL=1 | |
| 10 | fi | |
| 11 | ||
| 12 | if ! diff $l.err $err | |
| 13 | then | |
| 14 | FAIL=1 | |
| 15 | fi | |
| 16 | done |