[next] telepathy-gabble: Install GNOME InstalledTests metadata for any installed tests
Simon McVittie
smcv at kemper.freedesktop.org
Thu Apr 3 07:26:40 PDT 2014
Module: telepathy-gabble
Branch: next
Commit: 4fad8aa4dc7883b224391f4420f9d355b1a7d320
URL: http://cgit.freedesktop.org/telepathy/telepathy-gabble/commit/?id=4fad8aa4dc7883b224391f4420f9d355b1a7d320
Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date: Wed Mar 26 13:07:33 2014 +0000
Install GNOME InstalledTests metadata for any installed tests
---
tests/twisted/Makefile.am | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/tests/twisted/Makefile.am b/tests/twisted/Makefile.am
index bc51bbc..6b013a1 100644
--- a/tests/twisted/Makefile.am
+++ b/tests/twisted/Makefile.am
@@ -463,3 +463,19 @@ EXTRA_DIST = \
CLEANFILES += \
$(BUILT_SOURCES) \
tools/gabble-testing.log
+
+%.test: Makefile
+ @$(MKDIR_P) $(dir $*)
+ $(AM_V_GEN)( echo '[Test]'; \
+ echo 'Exec=${twistedtestsdir}/run-test.sh $*.py'; \
+ echo 'Type=session'; \
+ echo 'Output=TAP' ) > $@.tmp
+ @mv $@.tmp $@
+
+insttestdir = ${datadir}/installed-tests/telepathy-gabble-1
+
+if ENABLE_INSTALLED_TESTS
+nobase_nodist_insttest_DATA = \
+ $(patsubst %.py,%.test,$(TWISTED_TESTS)) \
+ $(NULL)
+endif
More information about the telepathy-commits
mailing list