diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2018-05-12 11:55:17 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2018-05-12 11:55:17 +0000 |
commit | a6c5280ea59f940be13fd6eb0f94ab8360d3d6c9 (patch) | |
tree | cbe088761a83cf2025bbdf36e1574f38c3e988f5 /testdata/05-asynclook.tdir/05-asynclook.pre | |
parent | 8c2647a7dc721c8e5349bd194b8e8e178412057e (diff) | |
download | src-test2-a6c5280ea59f940be13fd6eb0f94ab8360d3d6c9.tar.gz src-test2-a6c5280ea59f940be13fd6eb0f94ab8360d3d6c9.zip |
Notes
Diffstat (limited to 'testdata/05-asynclook.tdir/05-asynclook.pre')
-rw-r--r-- | testdata/05-asynclook.tdir/05-asynclook.pre | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/testdata/05-asynclook.tdir/05-asynclook.pre b/testdata/05-asynclook.tdir/05-asynclook.pre new file mode 100644 index 000000000000..708f7f6e2d3e --- /dev/null +++ b/testdata/05-asynclook.tdir/05-asynclook.pre @@ -0,0 +1,20 @@ +# #-- 05-asynclook.pre--# +# source the master var file when it's there +[ -f ../.tpkg.var.master ] && source ../.tpkg.var.master +# use .tpkg.var.test for in test variable passing +[ -f .tpkg.var.test ] && source .tpkg.var.test + +. ../common.sh +get_random_port 2 +FWD_PORT=$(($RND_PORT + 1)) +echo "FWD_PORT=$FWD_PORT" >> .tpkg.var.test + +# start forwarder +get_ldns_testns +$LDNS_TESTNS -p $FWD_PORT 05-asynclook.testns >fwd.log 2>&1 & +FWD_PID=$! +echo "FWD_PID=$FWD_PID" >> .tpkg.var.test + +cat .tpkg.var.test + +wait_ldns_testns_up fwd.log |