mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
Change the convention for system test directory names to always use an
underscore rather than a hyphen. Names using underscore are valid python
package names and can be used with standard `import` facilities in
python, which allows easier code reuse.
The temporary directories for test execution and their convenience
symlinks have been switched to using hyphens rather than underscores to
keep the pytest collection, filtering and .gitignore working as
expected.
(cherry picked from commit 9f4c1d1993)
234 lines
3.6 KiB
Makefile
234 lines
3.6 KiB
Makefile
include $(top_srcdir)/Makefile.top
|
|
|
|
EXTRA_DIST = .
|
|
|
|
# Source tarballs must not contain configure/build artifacts.
|
|
dist-hook:
|
|
git clean -n -x -d | \
|
|
grep -v "Makefile.in$$" | \
|
|
sed -n "s|^Would remove \(.*\)|$(distdir)/\1|p" | \
|
|
xargs -I{} rm -rf "{}"
|
|
|
|
SUBDIRS = dyndb/driver dlzexternal/driver hooks/driver
|
|
|
|
AM_CPPFLAGS += \
|
|
$(LIBISC_CFLAGS)
|
|
|
|
LDADD += \
|
|
$(LIBISC_LIBS)
|
|
|
|
if HAVE_PERL
|
|
if HAVE_PYTHON
|
|
if HAVE_PYTEST
|
|
|
|
noinst_PROGRAMS = \
|
|
feature-test \
|
|
makejournal \
|
|
pipelined/pipequeries \
|
|
resolve \
|
|
rndc/gencheck \
|
|
rpz/dnsrps \
|
|
tkey/keycreate \
|
|
tkey/keydelete
|
|
|
|
feature_test_CPPFLAGS = \
|
|
$(AM_CPPFLAGS) \
|
|
$(LIBDNS_CFLAGS)
|
|
|
|
makejournal_CPPFLAGS = \
|
|
$(AM_CPPFLAGS) \
|
|
$(LIBDNS_CFLAGS)
|
|
|
|
makejournal_LDADD = \
|
|
$(LDADD) \
|
|
$(LIBDNS_LIBS)
|
|
|
|
pipelined_pipequeries_CPPFLAGS = \
|
|
$(AM_CPPFLAGS) \
|
|
$(LIBDNS_CFLAGS)
|
|
|
|
pipelined_pipequeries_LDADD = \
|
|
$(LDADD) \
|
|
$(LIBDNS_LIBS)
|
|
|
|
resolve_CPPFLAGS = \
|
|
$(AM_CPPFLAGS) \
|
|
$(LIBISC_CFLAGS) \
|
|
$(LIBDNS_CFLAGS) \
|
|
$(LIBIRS_CFLAGS)
|
|
|
|
resolve_LDADD = $(LIBISC_LIBS) $(LIBIRS_LIBS) $(LIBDNS_LIBS)
|
|
|
|
rpz_dnsrps_CPPFLAGS = \
|
|
$(AM_CPPFLAGS) \
|
|
$(LIBDNS_CFLAGS)
|
|
|
|
rpz_dnsrps_LDADD = \
|
|
$(LDADD) \
|
|
$(LIBDNS_LIBS)
|
|
|
|
tkey_keycreate_CPPFLAGS = \
|
|
$(AM_CPPFLAGS) \
|
|
$(LIBDNS_CFLAGS)
|
|
|
|
tkey_keycreate_LDADD = \
|
|
$(LDADD) \
|
|
$(LIBDNS_LIBS)
|
|
|
|
tkey_keydelete_CPPFLAGS = \
|
|
$(AM_CPPFLAGS) \
|
|
$(LIBDNS_CFLAGS)
|
|
|
|
tkey_keydelete_LDADD = \
|
|
$(LDADD) \
|
|
$(LIBDNS_LIBS)
|
|
|
|
# Longer running tests are listed (and executed) first to take the most
|
|
# advantage of parallel execution.
|
|
TESTS = \
|
|
rpz \
|
|
rpzrecurse \
|
|
serve_stale \
|
|
timeouts \
|
|
upforwd \
|
|
acl \
|
|
additional \
|
|
addzone \
|
|
allow_query \
|
|
auth \
|
|
autosign \
|
|
builtin \
|
|
cacheclean \
|
|
camp \
|
|
case \
|
|
catz \
|
|
cds \
|
|
chain \
|
|
checkconf \
|
|
checkds \
|
|
checknames \
|
|
checkzone \
|
|
cookie \
|
|
cpu \
|
|
database \
|
|
dialup \
|
|
digdelv \
|
|
dispatch \
|
|
dlzexternal \
|
|
dns64 \
|
|
dnssec \
|
|
dnssec_malformed_dnskey \
|
|
dnstap \
|
|
doth \
|
|
dsdigest \
|
|
dupsigs \
|
|
dyndb \
|
|
ecdsa \
|
|
eddsa \
|
|
ednscompliance \
|
|
emptyzones \
|
|
enginepkcs11 \
|
|
filter_aaaa \
|
|
fetchlimit \
|
|
formerr \
|
|
forward \
|
|
geoip2 \
|
|
glue \
|
|
idna \
|
|
include_multiplecfg \
|
|
inline \
|
|
integrity \
|
|
ixfr \
|
|
hooks \
|
|
host \
|
|
journal \
|
|
kasp \
|
|
keepalive \
|
|
keyfromlabel \
|
|
keymgr2kasp \
|
|
legacy \
|
|
limits \
|
|
logfileconfig \
|
|
masterfile \
|
|
masterformat \
|
|
metadata \
|
|
mirror \
|
|
mkeys \
|
|
names \
|
|
notify \
|
|
nsec3 \
|
|
nslookup \
|
|
nsupdate \
|
|
nzd2nzf \
|
|
padding \
|
|
pending \
|
|
pipelined \
|
|
qmin \
|
|
reclimit \
|
|
redirect \
|
|
resolver \
|
|
rndc \
|
|
rootkeysentinel \
|
|
rpzextra \
|
|
rrchecker \
|
|
rrl \
|
|
rrsetorder \
|
|
rsabigexponent \
|
|
runtime \
|
|
sfcache \
|
|
shutdown \
|
|
smartsign \
|
|
sortlist \
|
|
spf \
|
|
staticstub \
|
|
statistics \
|
|
statschannel \
|
|
stress \
|
|
stub \
|
|
synthfromdnssec \
|
|
tcp \
|
|
tkey \
|
|
tools \
|
|
transport_acl \
|
|
tsig \
|
|
tsiggss \
|
|
ttl \
|
|
unknown \
|
|
verify \
|
|
views \
|
|
wildcard \
|
|
xfer \
|
|
xferquota \
|
|
zero \
|
|
zonechecks
|
|
|
|
else !HAVE_PYTEST
|
|
check:
|
|
echo pytest is not available, no tests were ran
|
|
exit 1
|
|
endif !HAVE_PYTEST
|
|
else !HAVE_PYTHON
|
|
check:
|
|
echo Python is not available, no tests were ran
|
|
exit 1
|
|
endif !HAVE_PYTHON
|
|
else !HAVE_PERL
|
|
check:
|
|
echo Perl is not available, no tests were ran
|
|
exit 1
|
|
endif !HAVE_PERL
|
|
|
|
LOG_DRIVER_V = $(LOG_DRIVER_V_@AM_V@)
|
|
LOG_DRIVER_V_ = $(LOG_DRIVER_V_@AM_DEFAULT_V@)
|
|
LOG_DRIVER_V_0 = --verbose no
|
|
LOG_DRIVER_V_1 = --verbose yes
|
|
|
|
LOG_DRIVER = $(srcdir)/custom-test-driver
|
|
AM_LOG_DRIVER_FLAGS = $(LOG_DRIVER_V)
|
|
|
|
LOG_COMPILER = $(srcdir)/run.sh
|
|
|
|
test-local: check
|
|
|
|
clean-local::
|
|
-find -L . -mindepth 1 -maxdepth 1 -type d -name "*-*" -exec rm -rf {} \;
|