1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2025-04-21 12:27:27 +03:00

sch2fig/test/: tools for comparison with reference results

This commit is contained in:
Werner Almesberger
2016-07-26 08:28:39 -03:00
parent c2e1d60e2e
commit ab612b4eb2
3 changed files with 71 additions and 0 deletions

15
sch2fig/test/comp Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/sh
diffs=0
rm -f _diff*png
for n in out*.png; do
ref=ref${n#out}
diff=_diff${n#out}
if ! compare -metric AE $ref $n - >/dev/null; then
diffs=`expr $diffs + 1`
compare -metric AE $ref $n $diff
fi
done
echo
[ $diffs = 0 ] && exit 0
echo "$diffs difference(s)" 1>&2
exit 1