From ae7924a01cb58526df7ba22948a28f27fc4d9b65 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Sun, 31 Jul 2016 22:40:16 -0300 Subject: [PATCH] sch2fig/Makefile (png, pngref): add regression test image also for Cairo-PNG --- sch2fig/Makefile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/sch2fig/Makefile b/sch2fig/Makefile index 87d78f0..17dffe2 100644 --- a/sch2fig/Makefile +++ b/sch2fig/Makefile @@ -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 -----------------------------------------------