6 echo "Testing $sample:"
7 ./compile -in "$sample" -out "sample.ml" -print -super-root -pis -comments >"out1"
8 echo "- code written to sample.ml, formatted data to out1"
9 OCAMLPATH=../.. ocamlfind ocamlc -package . -linkpkg -custom sample.ml -o sample
10 echo "- sample.ml compiled to sample"
12 echo "- re-read data written to out2"
13 if cmp out1 out2; then
14 echo "- out1 and out2 are identical! OK"
16 echo "- out1 and out2 differ! FAILURE!"