diff options
Diffstat (limited to 'test/testsvg')
-rwxr-xr-x | test/testsvg | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/testsvg b/test/testsvg index 520442948..9b18df586 100755 --- a/test/testsvg +++ b/test/testsvg @@ -27,11 +27,11 @@ for svg in $@; do # if xsvg $svg -p $outpng ; then if svg2png $svg $outpng ; then if [ -e $refpng ]; then - if diff $refpng $outpng > /dev/null; then + if $IMAGEDIFF $refpng $outpng > $diffpng; then echo "Rendering of $svg matches." >&2 + rm -f $diffpng else echo "ERROR: Rendering of $svg differs from reference image." >&2 - $IMAGEDIFF $refpng $outpng > $diffpng echo $refpng $outpng $diffpng >> $IMAGELIST err=$(($err+1)) fi |