7 if [ x
$mode != "xbaseline" -a x
$mode != "xtest" ] ; then
8 echo unknown mode
: $mode
12 resultprefix
=`basename $tst`
13 resultpng
=results
/$resultprefix.png
14 basepng
=baselines
/$resultprefix.png
15 differencespng
=differences-
$resultprefix.png
17 if test x
$mode == "xbaseline"; then
18 echo -n " Generating baseline for test $tst... "
20 .
/xaml2png
$tst $basepng
23 elif test x
$mode == "xtest"; then
24 echo -n " Running test $tst... "
26 rm -f $resultpng $differencespng
28 .
/xaml2png
$tst $resultpng
30 # and compare to our baseline
31 if diff $resultpng $basepng >/dev
/null
; then
36 convert
$resultpng $basepng -compose difference
-composite $differencespng