1 # #-- root_zonemd.test --#
2 # source the master var file when it's there
3 [ -f ../.tpkg.var.master ] && source ../.tpkg.var.master
4 # use .tpkg.var.test for in test variable passing
5 [ -f .tpkg.var.test ] && source .tpkg.var.test
9 echo "> dig www.example.com."
10 dig @localhost -p $UNBOUND_PORT . SOA | tee outfile
12 if grep root-servers outfile | grep "nstld.verisign-grs.com"; then
19 echo "> unbound-control status"
20 $PRE/unbound-control -c ub.conf status
21 if test $? -ne 0; then
22 echo "wrong exit value."
28 # This is the output when an unsupported algorithm is used.
29 if grep "auth zone . ZONEMD unsupported algorithm" unbound.log; then
32 echo "ZONEMD verification not OK"
36 echo "> unbound-control auth_zone_reload ."
37 $PRE/unbound-control -c ub.conf auth_zone_reload . 2>&1 | tee outfile
38 if test $? -ne 0; then
39 echo "wrong exit value."
42 # The output of the reload can be checked.
43 #echo "> check unbound-control output"
44 #if grep "example.com: ZONEMD verification successful" outfile; then