clutter/json/Makefile
tests/Makefile
tests/conform/Makefile
+ tests/conform/test-launcher.sh
tests/data/Makefile
tests/interactive/Makefile
+ tests/interactive/wrapper.sh
tests/micro-bench/Makefile
tests/tools/Makefile
doc/Makefile
*.o
+/test-launcher.sh
/stamp-test-conformance
/test-anchors
/test-cogl-backface-culling
@true
stamp-test-conformance: test-conformance$(EXEEXT)
@mkdir -p wrappers
+ @chmod +x test-launcher.sh
@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) ; \
+ ( echo "#!/bin/sh" ; echo "$(abs_builddir)/test-launcher.sh '$$i' \"\$$@\"" ) > $$unit$(EXEEXT) ; \
( echo "#!/bin/sh" ; echo "exec ./test-conformance$(EXEEXT) -p $$i \"\$$@\"" ) > wrappers/$$unit$(EXEEXT) ; \
chmod +x $$unit$(EXEEXT); \
chmod +x wrappers/$$unit$(EXEEXT); \
gnome-open "$$x"; \
done
-EXTRA_DIST = ADDING_NEW_TESTS test-launcher.sh run-tests.sh
+EXTRA_DIST = ADDING_NEW_TESTS test-launcher.sh.in run-tests.sh
+DISTCLEANFILES = test-launcher.sh
# we override the clean-generic target to clean up the wrappers so
# we cannot use CLEANFILES
echo "Running: ./test-conformance -p ${UNIT_TEST_PATH} $@"
echo ""
-./test-conformance -p ${UNIT_TEST_PATH} "$@"
+@abs_builddir@/test-conformance -p ${UNIT_TEST_PATH} "$@"
echo ""
echo "NOTE: For debugging purposes, you can run this single test as follows:"
*.o
+/wrapper.sh
/stamp-test-interactive
/test-actor-clone
/test-actors
wrappers: stamp-test-interactive
@true
stamp-test-interactive: test-interactive$(EXEEXT)
- @wrapper=$(top_srcdir)/tests/interactive/wrapper.sh ; \
+ @wrapper=$(abs_builddir)/wrapper.sh ; \
+ chmod +x $$wrapper && \
for i in $(UNIT_TESTS); \
do \
test_bin=$${i%*.c} ; \
test_interactive_SOURCES = test-main.c $(UNIT_TESTS)
test_interactive_CFLAGS = $(CLUTTER_CFLAGS) $(MAINTAINER_CFLAGS)
test_interactive_CPPFLAGS = \
- -DTESTS_DATADIR=\""$(top_srcdir)/tests/data"\" \
+ -DTESTS_DATADIR=\""$(abs_top_srcdir)/tests/data"\" \
-DG_DISABLE_SINGLE_INCLUDES
test_interactive_LDFLAGS = -export-dynamic
test_interactive_LDADD = $(CLUTTER_LIBS) $(common_ldadd)
-EXTRA_DIST = wrapper.sh
+EXTRA_DIST = wrapper.sh.in
+DISTCLEANFILES = wrapper.sh
BUILT_SOURCES = wrappers
echo " gdb --eval-command=\"b `echo $UNIT_TEST|tr '-' '_'`_main\" \\"
echo " --args ./test-interactive $UNIT_TEST"
-./test-interactive $UNIT_TEST "$@"
+@abs_builddir@/test-interactive $UNIT_TEST "$@"