summaryrefslogtreecommitdiff
path: root/test/images/Makefile
diff options
context:
space:
mode:
authorKim Woelders <kim@woelders.dk>2022-01-17 09:37:27 +0100
committerKim Woelders <kim@woelders.dk>2022-01-19 19:38:32 +0100
commitdde8b3fcd10e388bcb7fb964d63c3e6f304866d8 (patch)
tree21acfcd395260d37c028d27296e8992f65c1eea7 /test/images/Makefile
parent510938f0975613f6526f26617081379a2c785747 (diff)
downloadimlib2-dde8b3fcd10e388bcb7fb964d63c3e6f304866d8.tar.gz
test: Add some more PNM type loading tests
Also avoid that .gz file contents depend on contained file's time stamp.
Diffstat (limited to 'test/images/Makefile')
-rwxr-xr-xtest/images/Makefile15
1 files changed, 14 insertions, 1 deletions
diff --git a/test/images/Makefile b/test/images/Makefile
index 9b3d853..6f24b61 100755
--- a/test/images/Makefile
+++ b/test/images/Makefile
@@ -28,6 +28,7 @@ all: imgs_64
TYPES_64 = $(filter-out png, $(TYPES)) ff.bz2 ff.gz ff.xz # png.mp3
ALL_64 = $(addprefix icon-64., $(TYPES_64))
+ ALL_64 += icon-64-P1.pbm icon-64-P2.pgm icon-64-P3.ppm icon-64-P7_332.ppm
$(warning imgs_64=$(ALL_64))
imgs_64: $(ALL_64)
@@ -61,6 +62,18 @@ imgs_64: $(ALL_64)
%.pbm: %.png
convert -dither Floyd-Steinberg $< $@
+%-P1.pbm: %.pbm
+ pnmtopnm -plain <$< >$@
+
+%-P2.pgm: %.pgm
+ pnmtopnm -plain <$< >$@
+
+%-P3.ppm: %.ppm
+ pnmtopnm -plain <$< >$@
+
+%-P7_332.ppm: %.ppm
+ pamtoxvmini <$< >$@
+
%.tga: %.png
# convert $< $@
convert -flip $< $@ # Bug in convert?
@@ -82,7 +95,7 @@ imgs_64: $(ALL_64)
%.xz: %
xz -c $< > $@
%.gz: %
- gzip -c $< > $@
+ gzip -n -c $< > $@
.PHONY: clean
clean: