Debian Codegraph @

testdata/fwd_capsid_strip.tdir/fwd_capsid_strip.test

raw
1 # #-- fwd_capsid_strip.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
6
7 PRE="../.."
8 # do the test
9 echo "> dig www.example.com."
10 dig @127.0.0.1 -p $UNBOUND_PORT wwwabcdefghijklmnopqrstuvwxyzwww.example.com | tee outfile
11 echo "> cat logfiles"
12 cat fwd.log
13 cat fwd2.log
14 cat unbound.log
15 echo "> check answer"
16 if grep "10.20.30.40" outfile; then
17 echo "OK"
18 else
19 echo "Not OK"
20 exit 1
21 fi
22
23 exit 0