[cairo-commit] test/.gitignore test/Makefile.am

Behdad Esfahbod behdad at kemper.freedesktop.org
Thu Aug 10 12:37:18 PDT 2006


 test/.gitignore  |    1 +
 test/Makefile.am |   14 +++++++-------
 2 files changed, 8 insertions(+), 7 deletions(-)

New commits:
diff-tree 915448e50f18d518c065dbde6d8857e4c91d2a51 (from cecf396f6fe8424ec80f6f143df3622b92a5522e)
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Thu Aug 10 15:35:36 2006 -0400

    [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.

diff --git a/test/.gitignore b/test/.gitignore
index 0f56121..2927f3a 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 968e090..5975806 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 $(TES
 	@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


More information about the cairo-commit mailing list