xref: /netbsd-src/external/bsd/unbound/dist/testdata/05-asynclook.tdir/05-asynclook.pre (revision 3587d6f89c746bbb4f886219ddacd41ace480ecf)
1# #-- 05-asynclook.pre--#
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. ../common.sh
8get_random_port 2
9FWD_PORT=$(($RND_PORT + 1))
10echo "FWD_PORT=$FWD_PORT" >> .tpkg.var.test
11
12# start forwarder
13get_ldns_testns
14$LDNS_TESTNS -p $FWD_PORT 05-asynclook.testns >fwd.log 2>&1 &
15FWD_PID=$!
16echo "FWD_PID=$FWD_PID" >> .tpkg.var.test
17
18cat .tpkg.var.test
19
20wait_ldns_testns_up fwd.log
21