Home | History | Annotate | Line # | Download | only in dnstap.tdir
dnstap.post revision 1.1
      1  1.1  christos # #-- dnstap.post --#
      2  1.1  christos # source the master var file when it's there
      3  1.1  christos [ -f ../.tpkg.var.master ] && source ../.tpkg.var.master
      4  1.1  christos # source the test var file when it's there
      5  1.1  christos [ -f .tpkg.var.test ] && source .tpkg.var.test
      6  1.1  christos #
      7  1.1  christos # do your teardown here
      8  1.1  christos . ../common.sh
      9  1.1  christos PRE="../.."
     10  1.1  christos if grep "define USE_DNSTAP 1" $PRE/config.h; then echo test enabled; else echo test skipped; exit 0; fi
     11  1.1  christos kill_pid $DNSTAP_SOCKET_PID
     12  1.1  christos kill_pid $FWD_PID
     13  1.1  christos kill $UNBOUND_PID
     14  1.1  christos kill $UNBOUND_PID >/dev/null 2>&1
     15  1.1  christos cat unbound.log
     16  1.1  christos exit 0
     17