[cairo-commit] test/Makefile.am

Andrea Canciani ranma42 at kemper.freedesktop.org
Sat Jun 25 05:38:58 PDT 2011


 test/Makefile.am |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit a6d4d840d324de55a973663e5a416751619dc490
Author: Andrea Canciani <ranma42 at gmail.com>
Date:   Sat Jun 25 14:35:38 2011 +0200

    test: Fix check-ref-missing
    
    ce3806510f8a20621f3daf7bd1afb18811fa1e92 changed the format of
    Makefile.refs, breaking the check-ref-missing target.
    
    Ignoring any line not containing a .png file fixes check-ref-missing
    and makes it more robust.

diff --git a/test/Makefile.am b/test/Makefile.am
index a96d6a5..14c16b0 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -450,7 +450,7 @@ check-ref-missing:
 	@cd "$(srcdir)"; \
 	LANG=C; \
 	ret=true; \
-	tail -n+2 Makefile.refs | sed 's/\\$$//' | sed 's/^\t//' | sed 's/ $$//' > ref.list; \
+	grep '\.png \\$$' Makefile.refs | sed 's/ \\$$//' | tr -d '\t' > ref.list; \
 	if ! (find . -name '*.ref.png' ; find . -name '*.xfail.png' ; find . -name '*.new.png' ) \
 		| cut -d/ -f2- | sort | diff -u ref.list - ; then \
 		echo "*** Error: Sanity check failed"; \


More information about the cairo-commit mailing list