blob: 285fe44a9fc279b4571eb4875b58dc7f9e14f0db (
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
|
Bind has a test suite that is _not_ run at build time.
In a VM, do the following:
sudo apt-get build-dep bind9
sudo apt-get install devscripts fakeroot
sudo apt-get install libnet-dns-perl (required for test suite to run properly)
apt-get source bind9
The test suite needs to have network loopback aliases set up. Go into the
bin/tests/system directory and run "sudo ./ifconfig.sh up". Make sure
network loopback aliases have been created by doing a "ifconfig -a".
Go into the source directory.
On 14.04 and older, build with "debuild".
On 16.04 and newer, build with "./configure" and "make".
In Ubuntu 14.04 and higher, one of the test hangs, to disable:
Modify bin/tests/system/conf.sh* to remove "inline".
Once finished building, run the tests:
/etc/init.d/bind9 stop
make test >results.txt 2>&1
On some releases, the test may hang at some point, so make sure you monitor
the output file and kill it when appropriate.
You can see if all the tests succeeded:
grep "^R" results.txt
There's more information about the test suite in README and in
bin/tests/system/README.
|