mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-12-23 15:04:36 +02:00
sch2fig/Makefile (png, pngref): add regression test image also for Cairo-PNG
This commit is contained in:
parent
f3ed4edbd2
commit
ae7924a01c
@ -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 -----------------------------------------------
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user