summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2014-03-26 13:07:33 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2014-03-26 13:07:33 +0000
commit4fad8aa4dc7883b224391f4420f9d355b1a7d320 (patch)
tree49f4607871404622dd9fa7f6f108ce5c7690e0db
parent17a3c2be8f758d832d06e5811b4ea95ba46e5a0c (diff)
Install GNOME InstalledTests metadata for any installed 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 bc51bbc3f..6b013a112 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