Makefile.am revision 1.1.1.3 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 case \
90 catz \
91 cds \
92 chain \
93 checkconf \
94 checkds \
95 checknames \
96 checkzone \
97 cookie \
98 cpu \
99 database \
100 dialup \
101 digdelv \
102 dispatch \
103 dlzexternal \
104 dns64 \
105 dnssec \
106 dnstap \
107 doth \
108 dsdigest \
109 dyndb \
110 ecdsa \
111 eddsa \
112 ednscompliance \
113 emptyzones \
114 enginepkcs11 \
115 filter-aaaa \
116 fetchlimit \
117 formerr \
118 forward \
119 geoip2 \
120 glue \
121 idna \
122 include-multiplecfg \
123 inline \
124 integrity \
125 ixfr \
126 hooks \
127 host \
128 journal \
129 kasp \
130 keepalive \
131 keyfromlabel \
132 ksr \
133 legacy \
134 limits \
135 logfileconfig \
136 masterfile \
137 masterformat \
138 metadata \
139 mirror \
140 mkeys \
141 multisigner \
142 names \
143 notify \
144 nsec3 \
145 nslookup \
146 nsupdate \
147 nzd2nzf \
148 padding \
149 pending \
150 proxy \
151 pipelined \
152 qmin \
153 reclimit \
154 redirect \
155 resolver \
156 rndc \
157 rootkeysentinel \
158 rpzextra \
159 rrchecker \
160 rrl \
161 rrsetorder \
162 rsabigexponent \
163 runtime \
164 sfcache \
165 shutdown \
166 smartsign \
167 sortlist \
168 spf \
169 staticstub \
170 statistics \
171 statschannel \
172 stress \
173 stub \
174 synthfromdnssec \
175 tcp \
176 tools \
177 transport-acl \
178 tsig \
179 tsiggss \
180 ttl \
181 unknown \
182 verify \
183 views \
184 wildcard \
185 xfer \
186 xferquota \
187 zero \
188 zonechecks
189
190 else !HAVE_PYTEST
191 check:
192 echo pytest is not available, no tests were ran
193 exit 1
194 endif !HAVE_PYTEST
195 else !HAVE_PYTHON
196 check:
197 echo Python is not available, no tests were ran
198 exit 1
199 endif !HAVE_PYTHON
200 else !HAVE_PERL
201 check:
202 echo Perl is not available, no tests were ran
203 exit 1
204 endif !HAVE_PERL
205
206 LOG_DRIVER_V = $(LOG_DRIVER_V_@AM_V@)
207 LOG_DRIVER_V_ = $(LOG_DRIVER_V_@AM_DEFAULT_V@)
208 LOG_DRIVER_V_0 = --verbose no
209 LOG_DRIVER_V_1 = --verbose yes
210
211 LOG_DRIVER = $(srcdir)/custom-test-driver
212 AM_LOG_DRIVER_FLAGS = $(LOG_DRIVER_V)
213
214 LOG_COMPILER = $(srcdir)/run.sh
215
216 test-local: check
217
218 clean-local::
219 -find -L . -mindepth 1 -maxdepth 1 -type d -name "*_*" -and -not -name "_common" -exec rm -rf {} \;
220