From 915448e50f18d518c065dbde6d8857e4c91d2a51 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 10 Aug 2006 15:35:36 -0400 Subject: [PATCH] [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. --- test/.gitignore | 1 + test/Makefile.am | 14 +++++++------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/test/.gitignore b/test/.gitignore index 0f5612149..2927f3ae7 100644 --- a/test/.gitignore +++ b/test/.gitignore @@ -3,6 +3,7 @@ Makefile Makefile.in index.html +ref.hash a8-mask bitmap-font caps-joins diff --git a/test/Makefile.am b/test/Makefile.am index 968e0908b..5975806c4 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -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