[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.
This commit is contained in:
Emmanuele Bassi 2009-05-14 08:32:46 +01:00
parent d8aa6827ee
commit 724e58a85a
2 changed files with 8 additions and 3 deletions

1
.gitignore vendored
View File

@ -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

View File

@ -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