aboutsummaryrefslogtreecommitdiff
path: root/tests/Makefile.am
blob: a885dff95ab63624a991267051e73999066d107f (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

check_PROGRAMS = \
	test-approver

TESTS =
DISTCLEANFILES = $(TESTS)

EXTRA_DIST = run-xvfb.sh

DBUS_RUNNER=dbus-test-runner --dbus-config /usr/share/dbus-test-runner/session.conf

#########################################
##  test-approver
#########################################

test_approver_SOURCES = \
	$(top_srcdir)/src/gen-notification-approver.xml.c \
	test-approver.c

test_approver_CFLAGS = \
	$(INDICATOR_CFLAGS) \
	$(TEST_CFLAGS) \
	-Wall -Werror \
	-I$(top_srcdir)/src \
	-I$(top_builddir)/src

test_approver_LDADD = \
	$(INDICATOR_LIBS) \
	$(TEST_LIBS)

test-approver-tester: test-approver Makefile.am
	@echo "#!/bin/bash" > $@
	@echo export INDICATOR_SERVICE_SHUTDOWN_TIMEOUT=1000 >> $@
	@echo . $(srcdir)/run-xvfb.sh >> $@
	@echo $(DBUS_RUNNER) --task $(builddir)/test-approver --task-name Approver --task $(top_builddir)/src/indicator-application-service --task-name Service --ignore-return >> $@
	@chmod +x $@

TESTS += test-approver-tester