rex-test (496B)
1 #!/usr/bin/env bash 2 3 # This test parses and re-prints all the Sire files using 4 # both Haskell's implementation of Rex and rex-in-sire. If 5 # this succeed, we diff the results and error out if any 6 # differences are detected. 7 8 set -e 9 10 plunder save rex.seed sire_24_rex 11 12 for x in sire/*.sire 13 do 14 echo rex_test $x 15 plunder repl rex.seed <$x >$x.new 2>/dev/null 16 rex <$x >$x.old 17 diff $x.new $x.old 18 19 rm $x.new $x.old 20 done 21 22 rm -f rex.seed 23 24 echo ALL REX TESTS PASSED