summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2014-04-02 19:03:49 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2014-04-02 19:03:49 +0100
commit054892b7af30491d148982af469bdc40f29d8b27 (patch)
tree087e8763460b27bb4136f08d069ddf5676c03cfe
parent6d334720740e7a28f11852fe9419def62c826dae (diff)
Install GNOME InstalledTests metadata for installed testsnext-tests
-rw-r--r--tests/twisted/Makefile.am16
1 files changed, 16 insertions, 0 deletions
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