bind9/bin/tests/system
Evan Hunt 114f95089c [master] cleanup strcat/strcpy
4722.	[cleanup]	Clean up uses of strcpy() and strcat() in favor of
			strlcpy() and strlcat() for safety. [RT #45981]
2017-09-13 00:14:37 -07:00
..
acl 4401. [misc] Change LICENSE to MPL 2.0. 2016-06-27 14:56:38 +10:00
additional update copyright notice / whitespace 2017-04-22 23:45:41 +00:00
addzone [master] fix lmdb delzone 2017-05-04 12:32:32 -07:00
allow_query 4401. [misc] Change LICENSE to MPL 2.0. 2016-06-27 14:56:38 +10:00
autosign [master] allow CDS/CDNSKEY records to be signed with only KSK 2017-09-12 23:09:48 -07:00
builtin [master] simplify prereq checks by using feature-test.c 2016-10-31 16:53:37 -07:00
cacheclean update copyright notice / whitespace 2017-04-22 23:45:41 +00:00
case update copyright notice / whitespace 2017-04-22 23:45:41 +00:00
catz update copyright notice / whitespace 2017-07-26 23:46:18 +00:00
chain test crypto support 2017-05-26 16:03:49 +10:00
checkconf 4693. [func] Synthesis of responses from DNSSEC-verified records. 2017-08-31 07:57:50 +10:00
checkds 4487. [test] Make system tests work on Windows. [RT #42931] 2016-10-19 17:18:42 +02:00
checknames update copyright notice / whitespace 2017-04-22 23:45:41 +00:00
checkzone update copyright notice / whitespace 2017-08-17 23:46:21 +00:00
common 4401. [misc] Change LICENSE to MPL 2.0. 2016-06-27 14:56:38 +10:00
cookie update copyright notice / whitespace 2017-09-04 23:46:16 +00:00
coverage update copyright notice / whitespace 2017-09-01 23:45:56 +00:00
database 4401. [misc] Change LICENSE to MPL 2.0. 2016-06-27 14:56:38 +10:00
delzone copyrights 2016-07-22 15:58:48 +10:00
dialup 4401. [misc] Change LICENSE to MPL 2.0. 2016-06-27 14:56:38 +10:00
digdelv [master] dig: retain domain when retrying with tcp 2017-09-11 10:10:16 -07:00
dlv [master] update copyrights that had been missed recently 2017-04-23 17:06:00 -07:00
dlvauto [master] update copyrights that had been missed recently 2017-04-23 17:06:00 -07:00
dlz 4401. [misc] Change LICENSE to MPL 2.0. 2016-06-27 14:56:38 +10:00
dlzexternal [master] cleanup strcat/strcpy 2017-09-13 00:14:37 -07:00
dns64 update copyright notice / whitespace 2017-09-01 23:45:56 +00:00
dnssec [master] allow CDS/CDNSKEY records to be signed with only KSK 2017-09-12 23:09:48 -07:00
dnstap update copyright notice / whitespace 2017-08-04 23:46:19 +00:00
dscp 4401. [misc] Change LICENSE to MPL 2.0. 2016-06-27 14:56:38 +10:00
dsdigest [master] update copyrights that had been missed recently 2017-04-23 17:06:00 -07:00
dyndb update copyright notice / whitespace 2017-09-09 23:46:01 +00:00
ecdsa [master] update copyrights that had been missed recently 2017-04-23 17:06:00 -07:00
eddsa Added Ed25519 support (#44696) 2017-07-31 15:26:00 +02:00
ednscompliance 4401. [misc] Change LICENSE to MPL 2.0. 2016-06-27 14:56:38 +10:00
emptyzones update copyright notice / whitespace 2017-04-22 23:45:41 +00:00
fetchlimit 4401. [misc] Change LICENSE to MPL 2.0. 2016-06-27 14:56:38 +10:00
filter-aaaa [master] update copyrights that had been missed recently 2017-04-23 17:06:00 -07:00
formerr 4401. [misc] Change LICENSE to MPL 2.0. 2016-06-27 14:56:38 +10:00
forward 4401. [misc] Change LICENSE to MPL 2.0. 2016-06-27 14:56:38 +10:00
geoip [master] simplify prereq checks by using feature-test.c 2016-10-31 16:53:37 -07:00
glue update copyright notice / whitespace 2017-04-22 23:45:41 +00:00
gost [master] update copyrights that had been missed recently 2017-04-23 17:06:00 -07:00
inline give more time for the initial signing of bits in the inline signing test to complete 2017-09-13 12:18:59 +10:00
integrity update copyright notice / whitespace 2017-01-12 23:45:41 +00:00
ixfr 4401. [misc] Change LICENSE to MPL 2.0. 2016-06-27 14:56:38 +10:00
keepalive Increase minimum RSA keygen size to 1024 bits (#36895) 2017-04-21 12:00:40 +05:30
keymgr update copyright notice / whitespace 2017-09-01 23:45:56 +00:00
legacy [master] update copyrights that had been missed recently 2017-04-23 17:06:00 -07:00
limits update copyright notice / whitespace 2017-04-22 23:45:41 +00:00
logfileconfig update copyright notice / whitespace 2017-05-28 23:45:39 +00:00
masterfile 4487. [test] Make system tests work on Windows. [RT #42931] 2016-10-19 17:18:42 +02:00
masterformat update copyright notice / whitespace 2017-09-01 23:45:56 +00:00
metadata specify algorithm 2017-09-01 15:34:38 +10:00
mkeys update copyright notice / whitespace 2017-09-01 23:45:56 +00:00
names 4401. [misc] Change LICENSE to MPL 2.0. 2016-06-27 14:56:38 +10:00
notify update copyright notice / whitespace 2017-04-22 23:45:41 +00:00
nslookup [master] add missing file 2016-07-21 12:45:15 -07:00
nsupdate [master] remap getaddrinfo() to irs_getgetaddrinfo() 2017-09-11 15:03:57 -07:00
nzd2nzf Fix typos in nzd2nzf test 2016-07-26 21:15:18 +02:00
padding Increase minimum RSA keygen size to 1024 bits (#36895) 2017-04-21 12:00:40 +05:30
pending [master] update copyrights that had been missed recently 2017-04-23 17:06:00 -07:00
pipelined update copyright notice / whitespace 2017-08-29 23:46:16 +00:00
pkcs11 update copyright notice / whitespace 2017-08-01 23:46:29 +00:00
pkcs11ssl 4487. [test] Make system tests work on Windows. [RT #42931] 2016-10-19 17:18:42 +02:00
reclimit sleep 2 to let in progress lookups complete 2016-10-10 14:35:36 +11:00
redirect update copyright notice / whitespace 2017-09-01 23:45:56 +00:00
resolver update copyright notice / whitespace 2017-09-12 23:46:14 +00:00
rndc update copyright notice / whitespace 2017-09-09 23:46:01 +00:00
rpz [master] update copyrights 2017-09-11 17:47:12 -07:00
rpzrecurse [master] update copyrights 2017-09-11 17:47:12 -07:00
rrchecker update copyright notice / whitespace 2017-07-26 23:46:18 +00:00
rrl update copyright notice / whitespace 2017-04-22 23:45:41 +00:00
rrsetorder update copyright notice / whitespace 2017-04-22 23:45:41 +00:00
rsabigexponent update copyright notice / whitespace 2017-09-09 23:46:01 +00:00
runtime 4487. [test] Make system tests work on Windows. [RT #42931] 2016-10-19 17:18:42 +02:00
serve-stale update copyright notice / whitespace 2017-09-06 23:46:23 +00:00
sfcache [master] update copyrights that had been missed recently 2017-04-23 17:06:00 -07:00
smartsign [master] remove default algorithm in dnssec-keygen 2017-08-30 18:51:11 -07:00
sortlist 4487. [test] Make system tests work on Windows. [RT #42931] 2016-10-19 17:18:42 +02:00
spf 4401. [misc] Change LICENSE to MPL 2.0. 2016-06-27 14:56:38 +10:00
staticstub [master] update copyrights that had been missed recently 2017-04-23 17:06:00 -07:00
statistics [master] simplify prereq checks by using feature-test.c 2016-10-31 16:53:37 -07:00
statschannel update copyright notice / whitespace 2017-04-24 23:45:33 +00:00
stress update copyright notice / whitespace 2017-04-22 23:45:41 +00:00
stub update copyright notice / whitespace 2017-04-22 23:45:41 +00:00
synthfromdnssec check for dnssec support 2017-09-04 10:23:03 +10:00
tcp 4401. [misc] Change LICENSE to MPL 2.0. 2016-06-27 14:56:38 +10:00
tkey update copyright notice / whitespace 2017-09-09 23:46:01 +00:00
tools 4637 broke old style command line with a salt of '-' [RT #45388] 2017-06-16 12:45:36 +10:00
tsig [master] update copyrights that had been missed recently 2017-04-23 17:06:00 -07:00
tsiggss update copyright notice / whitespace 2017-08-17 23:46:21 +00:00
unknown [master] update copyrights that had been missed recently 2017-04-23 17:06:00 -07:00
upforwd [master] update copyrights that had been missed recently 2017-04-23 17:06:00 -07:00
v6synth update copyright notice / whitespace 2017-04-22 23:45:41 +00:00
verify update copyright notice / whitespace 2017-09-01 23:45:56 +00:00
views [master] remove default algorithm in dnssec-keygen 2017-08-30 18:51:11 -07:00
wildcard [master] update copyrights that had been missed recently 2017-04-23 17:06:00 -07:00
win32 [master] add libns and remove liblwres 2017-09-08 13:47:34 -07:00
xfer [master] add missing rrtypes to genzones 2017-09-11 09:34:41 -07:00
xferquota 4487. [test] Make system tests work on Windows. [RT #42931] 2016-10-19 17:18:42 +02:00
zero [master] update copyrights 2017-09-11 17:47:12 -07:00
zonechecks [master] remove default algorithm in dnssec-keygen 2017-08-30 18:51:11 -07:00
.gitignore [master] simplify prereq checks by using feature-test.c 2016-10-31 16:53:37 -07:00
ans.pl [master] update copyrights 2017-09-11 17:47:12 -07:00
clean.sh 4401. [misc] Change LICENSE to MPL 2.0. 2016-06-27 14:56:38 +10:00
cleanall.sh [master] add libns and remove liblwres 2017-09-08 13:47:34 -07:00
cleanpkcs11.sh 4401. [misc] Change LICENSE to MPL 2.0. 2016-06-27 14:56:38 +10:00
conf.sh.in [master] add libns and remove liblwres 2017-09-08 13:47:34 -07:00
conf.sh.win32 [master] add libns and remove liblwres 2017-09-08 13:47:34 -07:00
digcomp.pl [master] simplify prereq checks by using feature-test.c 2016-10-31 16:53:37 -07:00
ditch.pl 4401. [misc] Change LICENSE to MPL 2.0. 2016-06-27 14:56:38 +10:00
feature-test.c [master] DNS Response Policy Service API 2017-09-11 11:57:43 -07:00
genzone.sh [master] update copyrights 2017-09-11 17:47:12 -07:00
ifconfig.bat 4487. [test] Make system tests work on Windows. [RT #42931] 2016-10-19 17:18:42 +02:00
ifconfig.sh 4487. [test] Make system tests work on Windows. [RT #42931] 2016-10-19 17:18:42 +02:00
Makefile.in [master] DNS Response Policy Service API 2017-09-11 11:57:43 -07:00
org.isc.bind.system 4401. [misc] Change LICENSE to MPL 2.0. 2016-06-27 14:56:38 +10:00
org.isc.bind.system.plist 2948. [port] MacOS: provide a mechanism to configure the test 2010-08-25 04:51:51 +00:00
packet.pl 4401. [misc] Change LICENSE to MPL 2.0. 2016-06-27 14:56:38 +10:00
README [master] add libns and remove liblwres 2017-09-08 13:47:34 -07:00
run.sh [master] clean up reporting of R:FAIL so it can't spuriously appear mid-test 2016-11-01 13:46:42 -07:00
runall.sh 4401. [misc] Change LICENSE to MPL 2.0. 2016-06-27 14:56:38 +10:00
send.pl 4401. [misc] Change LICENSE to MPL 2.0. 2016-06-27 14:56:38 +10:00
setup.sh 4401. [misc] Change LICENSE to MPL 2.0. 2016-06-27 14:56:38 +10:00
start.pl [master] add libns and remove liblwres 2017-09-08 13:47:34 -07:00
start.sh 4401. [misc] Change LICENSE to MPL 2.0. 2016-06-27 14:56:38 +10:00
stop.pl [master] add libns and remove liblwres 2017-09-08 13:47:34 -07:00
stop.sh 4401. [misc] Change LICENSE to MPL 2.0. 2016-06-27 14:56:38 +10:00
testcrypto.sh [master] remove default algorithm in dnssec-keygen 2017-08-30 18:51:11 -07:00
testsock.pl 4401. [misc] Change LICENSE to MPL 2.0. 2016-06-27 14:56:38 +10:00
testsock6.pl 4401. [misc] Change LICENSE to MPL 2.0. 2016-06-27 14:56:38 +10:00

Copyright (C) 2000, 2001, 2004, 2010, 2011, 2013, 2015-2017  Internet Systems Consortium, Inc. ("ISC")

This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.

This is a simple test environment for running bind9 system tests
involving multiple name servers.

There are multiple test suites, each in a separate subdirectory and
involving a different DNS setup.  They are:

  dnssec/	DNSSEC tests
  forward/	Forwarding tests
  glue/		Glue handling tests
  limits/	Tests of handling of large data (close to server limits)
  notify/	More NOTIFY tests
  nsupdate/	Dynamic update and IXFR tests
  resolver/     Regression tests for resolver bugs that have been fixed
		(not a complete resolver test suite)
  rrl/		query rate limiting
  rpz/		Tests of response policy zone (RPZ) rewriting
  rpzrecurse/	Another set of RPZ tests to check recursion behavior
  stub/		Tests of stub zone functionality
  unknown/	Unknown type and class tests
  upforwd/	Update forwarding tests
  views/	Tests of the "views" statement
  xfer/		Zone transfer tests
  xferquota/	Zone transfer quota tests

Typically each test suite sets up 2-5 name servers and then performs
one or more tests against them.  Within the test suite subdirectory,
each name server has a separate subdirectory containing its
configuration data.  By convention, these subdirectories are named
"ns1", "ns2", etc.

The tests are completely self-contained and do not require access to
the real DNS.  Generally, one of the test servers (ns1) is set up as a
root name server and is listed in the hints file of the others.

To enable all servers to run on the same machine, they bind to
separate virtual IP address on the loopback interface.  ns1 runs on
10.53.0.1, ns2 on 10.53.0.2, etc.  Before running any tests, you must
set up these addresses by running "ifconfig.sh up" as root.

Mac OS X:
If you wish to make the interfaces survive across reboots
copy org.isc.bind.system and org.isc.bind.system to
/Library/LaunchDaemons then run
"launchctl load /Library/LaunchDaemons/org.isc.bind.system.plist" as
root.

The servers use port 5300 instead of the usual port 53, so they can be
run without root privileges once the interfaces have been set up.

The tests can be run individually like this:

  sh run.sh xfer
  sh run.sh notify
  etc.

To run all the tests, just type "make test".

When running system tests, named can be run under
Valgrind. The output from Valgrind are sent to per-process files that
can be reviewed after the test has completed. To enable this, set the
USE_VALGRIND environment variable to "helgrind" to run the Helgrind
tool, or any other value to run the Memcheck tool. To use "helgrind"
effectively, build BIND with --disable-atomic.