[test] Add target check-ref-dups that lists reference images having duplicate sha1sum hash

This is useful to review every once in a while to drop duplicate images that
can be dropped.  For example, if there are two identical images one named
some-test-svg-rgb24-ref.png and other some-test-svg-argb32-ref.png, those two
can be replaced with some-test-svg-ref.png.
This commit is contained in:
Behdad Esfahbod 2006-08-10 15:35:36 -04:00
parent cecf396f6f
commit 915448e50f
2 changed files with 8 additions and 7 deletions

1
test/.gitignore vendored
View file

@ -3,6 +3,7 @@
Makefile
Makefile.in
index.html
ref.hash
a8-mask
bitmap-font
caps-joins

View file

@ -440,13 +440,8 @@ CLEANFILES = \
*-diff.png \
*.log \
valgrind-log \
multi-page.ps \
multi-page.pdf \
pdf-features.pdf \
ps-features.ps \
svg-surface.svg \
svg-clip.svg \
index.html \
ref.hash \
$(EXTRA_LTLIBRARIES) \
$(EXTRA_PROGRAMS)
@ -502,4 +497,9 @@ index.html: $(srcdir)/make-html.pl $(TESTS:=.log)
@echo Creating index.html
@perl $^ > $@
.PHONY: check-valgrind test recheck retest html rehtml
# Identify identical reference images
check-ref-dups:
@sha1sum *-ref.png > ref.hash
@join ref.hash ref.hash | grep -v -E '( .*-ref.png).*\1' | cut -d' ' -f 1-2 | sort -u
.PHONY: check-valgrind test recheck retest html rehtml check-ref-dups