1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-23 00:59:42 +02:00

sch2fig/Makefile (png, pngref): add regression test image also for Cairo-PNG

This commit is contained in:
Werner Almesberger 2016-07-31 22:40:16 -03:00
parent f3ed4edbd2
commit ae7924a01c

View File

@ -22,7 +22,7 @@ LIBS = -lm `pkg-config --libs cairo`
include ../common/Makefile.c-common
.PHONY: test neo900 sch test diff view newref
.PHONY: test neo900 sch test testref png pngref diff view newref
all:: $(NAME)
@ -44,8 +44,19 @@ test: $(NAME)
testref:
./$(NAME) test.lib test.sch | fig2dev -L png -m 2 >ref.png
png:
./$(NAME) test.lib test.sch -- cairo
[ ! -r pngref.png ] || \
compare -metric AE pngref.png test.png _diff.png || \
qiv -t -R -D _diff.png pngref.png test.png
pngref:
./$(NAME) test.lib test.sch -- cairo
mv test.png pngref.png
clean::
rm -f out.fig _out.png _diff.png
rm -f test.png
#----- Render Neo900 schematics -----------------------------------------------