summaryrefslogtreecommitdiffstats
path: root/pigeonhole/src/testsuite/Makefile.am
blob: f7b85dc7f732db52298212e258a2a90fd4de3fca (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
67
68
69
70
71
72
73
74
noinst_PROGRAMS = testsuite

AM_CPPFLAGS = \
	-I$(top_srcdir)/src/lib-sieve \
	-I$(top_srcdir)/src/lib-sieve/util \
	-I$(top_srcdir)/src/lib-sieve/plugins/variables \
	-I$(top_srcdir)/src/lib-sieve-tool \
	$(LIBDOVECOT_INCLUDE) \
	$(LIBDOVECOT_SERVICE_INCLUDE)

testsuite_LDFLAGS = -export-dynamic

libs = \
	$(top_builddir)/src/lib-sieve/libdovecot-sieve.la \
	$(top_builddir)/src/lib-sieve-tool/libsieve-tool.la

testsuite_LDADD = $(libs) $(LIBDOVECOT_STORAGE) $(LIBDOVECOT_LDA) $(LIBDOVECOT)
testsuite_DEPENDENCIES = $(libs) $(LIBDOVECOT_STORAGE_DEPS) $(LIBDOVECOT_LDA_DEPS) $(LIBDOVECOT_DEPS)

commands = \
	cmd-test.c \
	cmd-test-fail.c \
	cmd-test-config.c \
	cmd-test-set.c \
	cmd-test-result.c \
	cmd-test-message.c \
	cmd-test-mailbox.c \
	cmd-test-binary.c \
	cmd-test-imap-metadata.c

tests = \
	tst-test-script-compile.c \
	tst-test-script-run.c \
	tst-test-multiscript.c \
	tst-test-error.c \
	tst-test-result-action.c \
	tst-test-result-execute.c

testsuite_SOURCES = \
	testsuite-common.c \
	testsuite-settings.c \
	testsuite-objects.c \
	testsuite-substitutions.c \
	testsuite-variables.c \
	testsuite-arguments.c \
	testsuite-message.c \
	testsuite-log.c \
	testsuite-script.c \
	testsuite-result.c \
	testsuite-smtp.c \
	testsuite-mailstore.c \
	testsuite-binary.c \
	$(commands) \
	$(tests) \
	ext-testsuite.c \
	testsuite.c

noinst_HEADERS = \
	testsuite-common.h \
	testsuite-settings.h \
	testsuite-objects.h \
	testsuite-substitutions.h \
	testsuite-variables.h \
	testsuite-arguments.h \
	testsuite-message.h \
	testsuite-log.h \
	testsuite-script.h \
	testsuite-result.h \
	testsuite-smtp.h \
	testsuite-mailstore.h \
	testsuite-binary.h

clean-local:
	-rm -rf test.out.*