3 if ! [ -n "$1" ] ; then
4 echo "Uhm, need a test name, yo"
9 sbcl --eval "(asdf:load-system :clnl-test)" --eval "(quit)" &> /dev/null
13 --noinform --disable-ldb --lose-on-corruption --end-runtime-options \
14 --eval "(asdf:load-system :clnl-test)" \
15 --eval "(clnl-test::$1 \"$TEST\")" \
16 --eval "(quit)" 2> /dev/null | sed -n '/^----$/,$p' | tail -n +2
19 scalaprog=bin/viewruncmd.scala
21 scalafile=$(mktemp -u -p . --suffix .scala.png)
22 clfile=$(mktemp -u -p . --suffix .cl.ppm)
24 runtestfn "test-scala-input" | $scalaprog | sed -n '/^----$/,$p' | tail -n +2
25 mv scala.png $scalafile
26 checksum=$(runtestfn "test-debug")
30 echo "If the images are equal, use $checksum for CL checksum (note that you may get a different checksum on travis, see as of yet unwritten documentation for details)"
31 echo "The compare result is (Less than 1500 is probably equivalent):"
32 compare -metric RMSE $clfile $scalafile NULL:
35 echo "Here are the results of identify (make sure they are the same size):"
38 echo "Make sure that turtles are on top of each other correctly and all correct colors."
39 echo -n "Hit enter to view them ..."
43 scalafiledisplaypid=$!
47 echo -n "... and hit enter to finish"
50 kill $scalafiledisplaypid
51 kill $clfiledisplaypid