[folks] Set up tests with ENVIRONMENT, not wrapper scripts.



commit fd73fcb091f2fe57b53ddebc0f8b5ed007c3c5e8
Author: Travis Reitter <travis reitter collabora co uk>
Date:   Thu Oct 14 13:38:05 2010 -0700

    Set up tests with ENVIRONMENT, not wrapper scripts.

 tests/telepathy/Makefile.am |   15 ++++++---------
 1 files changed, 6 insertions(+), 9 deletions(-)
---
diff --git a/tests/telepathy/Makefile.am b/tests/telepathy/Makefile.am
index c257088..9d588f2 100644
--- a/tests/telepathy/Makefile.am
+++ b/tests/telepathy/Makefile.am
@@ -48,9 +48,13 @@ noinst_PROGRAMS = \
 	individual-properties \
 	$(NULL)
 
+SESSION_CONF = $(top_builddir)/tests/lib/telepathy/contactlist/session.conf
 TESTS_ENVIRONMENT = \
-	FOLKS_BACKEND_KEY_FILE_PATH=$(srcdir)/data/relationships-empty.ini
-TESTS = $(addprefix test-,$(noinst_PROGRAMS))
+	FOLKS_BACKEND_KEY_FILE_PATH=$(srcdir)/data/relationships-empty.ini \
+	$(RUN_WITH_PRIVATE_BUS) \
+	--config-file=$(SESSION_CONF) \
+	--
+TESTS = $(noinst_PROGRAMS)
 
 persona_store_capabilities_SOURCES = \
 	persona-store-capabilities.vala \
@@ -72,11 +76,4 @@ CLEANFILES = \
 	$(TESTS) \
 	$(NULL)
 
-test-%: %
-	{ echo "#!/bin/sh" && \
-	echo -n "$(RUN_WITH_PRIVATE_BUS) " && \
-	echo "--config-file=$(top_builddir)/tests/lib/telepathy/contactlist/session.conf -- ./$<"; } \
-	> $@
-	chmod +x $@
-
 -include $(top_srcdir)/git.mk



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]