summaryrefslogtreecommitdiff
path: root/tests/twisted/tools/Makefile.am
blob: a083f9200b93df3de66ba51e09aa810bc4abc9af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
exec-with-log.sh: exec-with-log.sh.in
	$(AM_V_GEN)sed -e "s|[@]abs_top_builddir[@]|@abs_top_builddir@|g" $< > $@
	@chmod +x $@

%.conf: %.conf.in
	$(AM_V_GEN)sed -e "s|[@]servicedir[@]|@abs_top_builddir@/tests/twisted/tools|g" $< > $@

servicedir = $(datadir)/dbus-1/services

installed/%.conf: %.conf.in Makefile
	@$(MKDIR_P) installed
	$(AM_V_GEN)sed -e 's|[@]servicedir[@]|$(servicedir)|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)
im.telepathy.v1.ConnectionManager.%.service: %.service.in
	$(AM_V_GEN)sed -e "s|[@]abs_top_builddir[@]|@abs_top_builddir@|g" $< > $@

# D-Bus service file for testing
service_in_files = salut.service.in
service_files = im.telepathy.v1.ConnectionManager.salut.service

# D-Bus config file for testing
conf_in_files = tmp-session-bus.conf.in
conf_files = $(conf_in_files:.conf.in=.conf)

BUILT_SOURCES = \
	$(built_test_data) \
	$(conf_files) \
	$(service_files) \
	exec-with-log.sh \
	$(NULL)

dist_test_scripts = \
	with-session-bus.sh \
	$(NULL)

dist_test_data = \
	$(NULL)

built_test_data = \
	installed/tmp-session-bus.conf \
	$(NULL)

EXTRA_DIST = \
	$(conf_in_files) \
	$(dist_test_data) \
	$(dist_test_scripts) \
	$(service_in_files) \
	exec-with-log.sh.in \
	run_and_bt.gdb

CLEANFILES = \
    $(BUILT_SOURCES) \
    salut-testing.log

testsdir = ${datadir}/telepathy-haze-1-tests
twistedtestsdir = ${testsdir}/twisted
twistedtoolsdir = ${twistedtestsdir}/tools

if ENABLE_INSTALLED_TESTS
dist_twistedtools_SCRIPTS = ${dist_test_scripts}
dist_twistedtools_DATA = ${dist_test_data}
twistedtools_DATA = ${built_test_data}
endif