[next] telepathy-haze: Install GNOME InstalledTests metadata if installed tests are enabled
Simon McVittie
smcv at kemper.freedesktop.org
Mon May 12 02:03:36 PDT 2014
Module: telepathy-haze
Branch: next
Commit: e4aec997e30794d4898a1a13d798f8097b9d4120
URL: http://cgit.freedesktop.org/telepathy/telepathy-haze/commit/?id=e4aec997e30794d4898a1a13d798f8097b9d4120
Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date: Mon May 12 10:01:09 2014 +0100
Install GNOME InstalledTests metadata if installed tests are enabled
---
tests/twisted/Makefile.am | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/tests/twisted/Makefile.am b/tests/twisted/Makefile.am
index 8c84690..146d128 100644
--- a/tests/twisted/Makefile.am
+++ b/tests/twisted/Makefile.am
@@ -96,3 +96,19 @@ CLEANFILES = \
*.pyc \
*/*.pyc \
$(NULL)
+
+%.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-haze-1
+
+if ENABLE_INSTALLED_TESTS
+nobase_nodist_insttest_DATA = \
+ $(patsubst %.py,%.test,$(TWISTED_TESTS)) \
+ $(NULL)
+endif
More information about the telepathy-commits
mailing list