summaryrefslogtreecommitdiff
path: root/tests/twisted/tools/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'tests/twisted/tools/Makefile.am')
-rw-r--r--tests/twisted/tools/Makefile.am40
1 files changed, 40 insertions, 0 deletions
diff --git a/tests/twisted/tools/Makefile.am b/tests/twisted/tools/Makefile.am
new file mode 100644
index 0000000..57ba504
--- /dev/null
+++ b/tests/twisted/tools/Makefile.am
@@ -0,0 +1,40 @@
+exec-with-log.sh: exec-with-log.sh.in Makefile
+ sed -e "s|[@]abs_top_srcdir[@]|@abs_top_srcdir@|g" \
+ -e "s|[@]abs_top_builddir[@]|@abs_top_builddir@|g" \
+ $< > $@
+ chmod +x $@
+
+%.conf: %.conf.in
+ sed -e "s|[@]abs_top_builddir[@]|@abs_top_builddir@|g" $< > $@
+
+# We don't use the full filename for the .in because > 99 character filenames
+# in tarballs are non-portable (and automake 1.8 doesn't let us build
+# non-archaic tarballs)
+org.freedesktop.Telepathy.%.service: %.service.in
+ sed \
+ -e "s|[@]abs_top_srcdir[@]|@abs_top_srcdir@|g" \
+ -e "s|[@]abs_top_builddir[@]|@abs_top_builddir@|g" \
+ $< > $@
+
+# D-Bus service file for testing
+service_in_files = MissionControl5.service.in Client.AbiWord.service.in Client.Logger.service.in
+service_files = $(patsubst %.in,org.freedesktop.Telepathy.%, $(service_in_files))
+
+# D-Bus config file for testing
+conf_in_files = tmp-session-bus.conf.in
+conf_files = $(conf_in_files:.conf.in=.conf)
+
+BUILT_SOURCES = $(service_files) $(conf_files) exec-with-log.sh
+
+EXTRA_DIST = \
+ $(service_in_files) \
+ $(conf_in_files) \
+ exec-with-log.sh.in \
+ fake-startup.sh \
+ valgrind.supp \
+ with-session-bus.sh
+
+CLEANFILES = \
+ $(BUILT_SOURCES) \
+ missioncontrol.log \
+ missioncontrol-*.log