[next] telepathy-idle: Install GNOME InstalledTests metadata for installed tests

Simon McVittie smcv at kemper.freedesktop.org
Mon Apr 7 09:05:00 PDT 2014


Module: telepathy-idle
Branch: next
Commit: 60a3b91fc80a7f489a6c08c965cf2015a909b339
URL:    http://cgit.freedesktop.org/telepathy/telepathy-idle/commit/?id=60a3b91fc80a7f489a6c08c965cf2015a909b339

Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date:   Wed Apr  2 19:03:49 2014 +0100

Install GNOME InstalledTests metadata for 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 78551e6..89789d6 100644
--- a/tests/twisted/Makefile.am
+++ b/tests/twisted/Makefile.am
@@ -114,3 +114,19 @@ CLEANFILES = \
 	$(NULL)
 
 SUBDIRS = tools
+
+%.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-idle-1
+
+if ENABLE_INSTALLED_TESTS
+nobase_nodist_insttest_DATA = \
+	$(patsubst %.py,%.test,$(TWISTED_TESTS)) \
+	$(NULL)
+endif



More information about the telepathy-commits mailing list