1*561252a2Schristos# #-- dnstap_tcp.post --# 2*561252a2Schristos# source the master var file when it's there 3*561252a2Schristos[ -f ../.tpkg.var.master ] && source ../.tpkg.var.master 4*561252a2Schristos# source the test var file when it's there 5*561252a2Schristos[ -f .tpkg.var.test ] && source .tpkg.var.test 6*561252a2Schristos# 7*561252a2Schristos# do your teardown here 8*561252a2Schristos. ../common.sh 9*561252a2SchristosPRE="../.." 10*561252a2Schristosif grep "define USE_DNSTAP 1" $PRE/config.h; then echo test enabled; else echo test skipped; exit 0; fi 11*561252a2Schristoskill_pid $DNSTAP_SOCKET_PID 12*561252a2Schristoskill_pid $FWD_PID 13*561252a2Schristoskill $UNBOUND_PID 14*561252a2Schristoskill $UNBOUND_PID >/dev/null 2>&1 15*561252a2Schristoscat unbound.log 16*561252a2Schristosecho "> tap logfiles" 17*561252a2Schristoscat tap.log 18*561252a2Schristoscat tap.errlog 19*561252a2Schristosecho "> tap2 logfiles" 20*561252a2Schristosif test -f tap2.log; then cat tap2.log; fi 21*561252a2Schristosif test -f tap2.errlog; then cat tap2.errlog; fi 22*561252a2Schristoscat fwd.log 23*561252a2Schristosexit 0 24