#!/bin/sh COMPARE="compare" SUFFIX="php5" if [ "X$1" != "X" ]; then SUFFIX=$1 fi INDEX="index-comparisons-$SUFFIX.html" INDEX2="index-$SUFFIX.html" INDEX2TMP="indext.html" echo "
" > $INDEX echo "" > $INDEX2TMP BADCOUNT=0 for source in tests/*.conf; do base=`basename $source` destination="comparisons-$SUFFIX/${base}.png" destination2="comparisons-$SUFFIX/${base}.txt" reference="references/${base}.png" result="results-$SUFFIX/${base}.png" if [ -f $result ]; then # echo "$source: $reference vs $result -> $destination" $COMPARE -metric AE $reference $result $destination > $destination2 2>&1 DIFFCOUNT=`cat $destination2` if [ $DIFFCOUNT != "0" ]; then echo "