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

Simon McVittie smcv at kemper.freedesktop.org
Wed May 7 03:36:32 PDT 2014


Module: telepathy-rakia
Branch: next
Commit: be9c6e38587ee61e3bdde993b6d074e5dbe50100
URL:    http://cgit.freedesktop.org/telepathy/telepathy-rakia/commit/?id=be9c6e38587ee61e3bdde993b6d074e5dbe50100

Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date:   Wed May  7 11:21:43 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 c14f935..c871feb 100644
--- a/tests/twisted/Makefile.am
+++ b/tests/twisted/Makefile.am
@@ -104,3 +104,19 @@ check_misc_sources = $(TESTS)
 include $(top_srcdir)/tools/check-coding-style.mk
 
 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-rakia-1
+
+if ENABLE_INSTALLED_TESTS
+nobase_nodist_insttest_DATA = \
+	$(patsubst %.py,%.test,$(TWISTED_TESTS)) \
+	$(NULL)
+endif



More information about the telepathy-commits mailing list