[next] telepathy-glib: Generate GNOME installed-tests wrappers for D-Bus tests
Simon McVittie
smcv at kemper.freedesktop.org
Tue Mar 25 03:45:56 PDT 2014
Module: telepathy-glib
Branch: next
Commit: fa424aaf483aa4b69a6bd7a5b2c5283d5fe9b7fe
URL: http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=fa424aaf483aa4b69a6bd7a5b2c5283d5fe9b7fe
Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date: Thu Mar 20 11:59:56 2014 +0000
Generate GNOME installed-tests wrappers for D-Bus tests
---
tests/dbus/Makefile.am | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/tests/dbus/Makefile.am b/tests/dbus/Makefile.am
index 8ec618c..d061505 100644
--- a/tests/dbus/Makefile.am
+++ b/tests/dbus/Makefile.am
@@ -75,10 +75,22 @@ CLEANFILES += \
$(tests_DATA) \
$(tests_SCRIPTS) \
$(NULL)
+
+insttestdir = ${datadir}/installed-tests/telepathy-glib
+insttest_DATA = $(patsubst %,%.test,$(tests_list))
+CLEANFILES += $(insttest_DATA)
else
noinst_PROGRAMS = $(tests_list)
endif
+%.test: Makefile
+ $(AM_V_GEN)( echo '[Test]'; \
+ echo 'Exec=${testsdir}/run-test.sh $*'; \
+ echo 'Type=session'; \
+ echo 'Output=TAP'; \
+ ) > $@.tmp
+ @mv $@.tmp $@
+
TESTS = $(tests_list)
tpglib-dbus-tests.list:
More information about the telepathy-commits
mailing list