From 724e58a85a35e249490e54d27e7f9411033db3a9 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Thu, 14 May 2009 08:32:46 +0100 Subject: [PATCH] [build] Do not rebuild the conformance tests scripts Make the build output a little bit cleaner by not re-creating the small shell scripts that allow launching the test units separately. --- .gitignore | 1 + tests/conform/Makefile.am | 10 +++++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 83fd0ac2c..c78e8bd95 100644 --- a/.gitignore +++ b/.gitignore @@ -128,6 +128,7 @@ stamp-h1 /tests/interactive/redhand_alpha.png /tests/interactive/test-script.json /tests/interactive/test-clutter-cairo-flowers +/tests/conform/stamp-test-conformance /tests/conform/test-anchors /tests/conform/test-conformance /tests/conform/test-conformance-results.xml diff --git a/tests/conform/Makefile.am b/tests/conform/Makefile.am index adbb22070..5fd68034a 100644 --- a/tests/conform/Makefile.am +++ b/tests/conform/Makefile.am @@ -35,14 +35,17 @@ test_conformance_SOURCES = \ UNIT_TESTS = `./test-conformance -l -m thorough | $(GREP) '^/'` -wrappers: test-conformance$(EXEEXT) +wrappers: stamp-test-conformance + @true +stamp-test-conformance: test-conformance$(EXEEXT) @for i in $(UNIT_TESTS); \ do \ unit=`basename $$i | sed -e s/_/-/g`; \ echo " GEN $$unit"; \ ( echo "#!/bin/sh" ; echo "$(top_srcdir)/tests/conform/test-launcher.sh '$$i'" ) > $$unit$(EXEEXT) ; \ chmod +x $$unit$(EXEEXT); \ - done + done \ + && echo timestamp > $(@F) clean-wrappers: @for i in $(UNIT_TESTS); \ @@ -50,7 +53,8 @@ clean-wrappers: unit=`basename $$i | sed -e s/_/-/g`; \ echo "RM $$unit"; \ rm -f $$unit$(EXEEXT) ; \ - done + done \ + && rm -f stamp-test-conformance # NB: BUILT_SOURCES here a misnomer. We aren't building source, just inserting # a phony rule that will generate symlink scripts for running individual tests