[next] telepathy-glib: Generate GNOME-style installed-tests metadata for basic tests
Simon McVittie
smcv at kemper.freedesktop.org
Tue Mar 25 03:45:56 PDT 2014
Module: telepathy-glib
Branch: next
Commit: aff01054665520d1dced8ebaf66dbc5936bd4a07
URL: http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=aff01054665520d1dced8ebaf66dbc5936bd4a07
Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date: Thu Mar 20 11:47:13 2014 +0000
Generate GNOME-style installed-tests metadata for basic tests
---
tests/Makefile.am | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 2f8c0d3..a0d750c 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -40,10 +40,22 @@ tests_PROGRAMS = $(programs_list)
tests_DATA = tpglib-tests.list
CLEANFILES += $(tests_DATA)
+insttestdir = ${datadir}/installed-tests/telepathy-glib
+insttest_DATA = $(patsubst %,%.test,$(programs_list))
+CLEANFILES += $(insttest_DATA)
+
else
noinst_PROGRAMS = $(programs_list)
endif
+%.test: Makefile
+ $(AM_V_GEN)( echo '[Test]'; \
+ echo 'Exec=${testsdir}/$* --tap'; \
+ echo 'Type=session'; \
+ echo 'Output=TAP'; \
+ ) > $@.tmp
+ @mv $@.tmp $@
+
tpglib-tests.list: Makefile
$(AM_V_GEN)echo $(programs_list) > $@
More information about the telepathy-commits
mailing list