Makefile.am revision 1.1.1.5 1 include $(top_srcdir)/Makefile.top
2
3 EXTRA_DIST = .
4
5 # Source tarballs must not contain configure/build artifacts.
6 dist-hook:
7 git clean -n -x -d | \
8 grep -v "Makefile.in$$" | \
9 sed -n "s|^Would remove \(.*\)|$(distdir)/\1|p" | \
10 xargs -I{} rm -rf "{}"
11
12 SUBDIRS = dyndb/driver dlzexternal/driver hooks/driver
13
14 if DNSRPS
15 SUBDIRS += rpz/testlib
16 endif
17
18 AM_CPPFLAGS += \
19 $(LIBISC_CFLAGS) \
20 $(LIBDNS_CFLAGS)
21
22 LDADD += \
23 $(LIBISC_LIBS) \
24 $(LIBDNS_LIBS)
25
26 if HAVE_PERL
27 if HAVE_PYTHON
28 if HAVE_PYTEST
29
30 noinst_PROGRAMS = \
31 feature-test \
32 makejournal \
33 pipelined/pipequeries \
34 rndc/gencheck \
35 rpz/dnsrps
36
37 feature_test_CPPFLAGS = \
38 $(AM_CPPFLAGS) \
39 $(LIBDNS_CFLAGS) \
40 $(OPENSSL_CFLAGS)
41
42 feature_test_LDADD = \
43 $(LDADD) \
44 $(LIBDNS_LIBS) \
45 $(OPENSSL_LIBS)
46
47 makejournal_CPPFLAGS = \
48 $(AM_CPPFLAGS) \
49 $(LIBDNS_CFLAGS)
50
51 makejournal_LDADD = \
52 $(LDADD) \
53 $(LIBDNS_LIBS)
54
55 pipelined_pipequeries_CPPFLAGS = \
56 $(AM_CPPFLAGS) \
57 $(LIBDNS_CFLAGS)
58
59 pipelined_pipequeries_LDADD = \
60 $(LDADD) \
61 $(LIBDNS_LIBS)
62
63 rpz_dnsrps_CPPFLAGS = \
64 $(AM_CPPFLAGS) \
65 $(LIBDNS_CFLAGS) \
66 -DLIBRPZ_LIB_OPEN=\"$(abs_builddir)/rpz/testlib/.libs/libdummyrpz.so\"
67
68 rpz_dnsrps_LDADD = \
69 $(LDADD) \
70 $(LIBDNS_LIBS) \
71 $(DLOPEN_LIBS)
72
73 # Longer running tests are listed (and executed) first to take the most
74 # advantage of parallel execution.
75 TESTS = \
76 rpz \
77 rpzrecurse \
78 serve-stale \
79 timeouts \
80 upforwd \
81 acl \
82 additional \
83 addzone \
84 allow-query \
85 auth \
86 autosign \
87 builtin \
88 cacheclean \
89 camp \
90 case \
91 catz \
92 cds \
93 chain \
94 checkconf \
95 checkds \
96 checknames \
97 checkzone \
98 cookie \
99 cpu \
100 database \
101 dialup \
102 digdelv \
103 dispatch \
104 dlzexternal \
105 dns64 \
106 dnssec \
107 dnstap \
108 doth \
109 dsdigest \
110 dyndb \
111 ecdsa \
112 eddsa \
113 ednscompliance \
114 emptyzones \
115 enginepkcs11 \
116 filter-aaaa \
117 fetchlimit \
118 formerr \
119 forward \
120 geoip2 \
121 glue \
122 idna \
123 include-multiplecfg \
124 inline \
125 integrity \
126 ixfr \
127 hooks \
128 host \
129 journal \
130 kasp \
131 keepalive \
132 keyfromlabel \
133 ksr \
134 legacy \
135 limits \
136 logfileconfig \
137 masterfile \
138 masterformat \
139 metadata \
140 mirror \
141 mkeys \
142 multisigner \
143 names \
144 notify \
145 nsec3 \
146 nslookup \
147 nsupdate \
148 nzd2nzf \
149 padding \
150 pending \
151 proxy \
152 pipelined \
153 qmin \
154 query-source \
155 reclimit \
156 redirect \
157 resolver \
158 rndc \
159 rollover \
160 rootkeysentinel \
161 rpzextra \
162 rrchecker \
163 rrl \
164 rrsetorder \
165 rsabigexponent \
166 runtime \
167 sfcache \
168 shutdown \
169 smartsign \
170 sortlist \
171 spf \
172 staticstub \
173 statistics \
174 statschannel \
175 stress \
176 stub \
177 synthfromdnssec \
178 tcp \
179 tools \
180 transport-acl \
181 tsig \
182 tsiggss \
183 ttl \
184 unknown \
185 verify \
186 views \
187 wildcard \
188 xfer \
189 xferquota \
190 zero \
191 zonechecks
192
193 else !HAVE_PYTEST
194 check:
195 echo pytest is not available, no tests were ran
196 exit 1
197 endif !HAVE_PYTEST
198 else !HAVE_PYTHON
199 check:
200 echo Python is not available, no tests were ran
201 exit 1
202 endif !HAVE_PYTHON
203 else !HAVE_PERL
204 check:
205 echo Perl is not available, no tests were ran
206 exit 1
207 endif !HAVE_PERL
208
209 LOG_DRIVER_V = $(LOG_DRIVER_V_@AM_V@)
210 LOG_DRIVER_V_ = $(LOG_DRIVER_V_@AM_DEFAULT_V@)
211 LOG_DRIVER_V_0 = --verbose no
212 LOG_DRIVER_V_1 = --verbose yes
213
214 LOG_DRIVER = $(srcdir)/custom-test-driver
215 AM_LOG_DRIVER_FLAGS = $(LOG_DRIVER_V)
216
217 LOG_COMPILER = $(srcdir)/run.sh
218
219 test-local: check
220
221 clean-local::
222 -find -L . -mindepth 1 -maxdepth 1 -type d -name "*_*" -and -not -name "_common" -exec rm -rf {} \;
223