aboutsummaryrefslogtreecommitdiff
path: root/contrib/unbound/testdata/fast_reload_fwd.tdir/fast_reload_fwd.pre
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/unbound/testdata/fast_reload_fwd.tdir/fast_reload_fwd.pre')
-rw-r--r--contrib/unbound/testdata/fast_reload_fwd.tdir/fast_reload_fwd.pre56
1 files changed, 0 insertions, 56 deletions
diff --git a/contrib/unbound/testdata/fast_reload_fwd.tdir/fast_reload_fwd.pre b/contrib/unbound/testdata/fast_reload_fwd.tdir/fast_reload_fwd.pre
deleted file mode 100644
index 42e680d8f041..000000000000
--- a/contrib/unbound/testdata/fast_reload_fwd.tdir/fast_reload_fwd.pre
+++ /dev/null
@@ -1,56 +0,0 @@
-# #-- fast_reload_fwd.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
-
-PRE="../.."
-. ../common.sh
-# if no threads; exit
-if grep -e "define HAVE_PTHREAD 1" -e "define HAVE_SOLARIS_THREADS 1" -e "define HAVE_WINDOWS_THREADS 1" $PRE/config.h; then
- echo "have threads"
-else
- skip_test "no threads"
-fi
-if grep -e "define ENABLE_LOCK_CHECKS 1" $PRE/config.h; then
- get_make
- echo "> (cd $PRE ; $MAKE lock-verify)"
- (cd $PRE ; $MAKE lock-verify)
-fi
-
-get_random_port 3
-UNBOUND_PORT=$RND_PORT
-NS1_PORT=$(($RND_PORT + 1))
-NS2_PORT=$(($RND_PORT + 2))
-echo "UNBOUND_PORT=$UNBOUND_PORT" >> .tpkg.var.test
-echo "NS1_PORT=$NS1_PORT" >> .tpkg.var.test
-echo "NS2_PORT=$NS2_PORT" >> .tpkg.var.test
-
-# make config files
-CONTROL_PATH=/tmp
-CONTROL_PID=$$
-sed -e 's/@PORT\@/'$UNBOUND_PORT'/' -e 's/@NS1_PORT\@/'$NS1_PORT'/' -e 's/@NS2_PORT\@/'$NS2_PORT'/' -e 's?@CONTROL_PATH\@?'$CONTROL_PATH'?' -e 's/@CONTROL_PID@/'$CONTROL_PID'/' < fast_reload_fwd.conf > ub.conf
-sed -e 's/@PORT\@/'$UNBOUND_PORT'/' -e 's/@NS1_PORT\@/'$NS1_PORT'/' -e 's/@NS2_PORT\@/'$NS2_PORT'/' -e 's?@CONTROL_PATH\@?'$CONTROL_PATH'?' -e 's/@CONTROL_PID@/'$CONTROL_PID'/' < fast_reload_fwd.conf2 > ub.conf2
-
-# start forwarders
-get_ldns_testns
-$LDNS_TESTNS -p $NS1_PORT fast_reload_fwd.ns1 >ns1.log 2>&1 &
-NS1_PID=$!
-echo "NS1_PID=$NS1_PID" >> .tpkg.var.test
-
-$LDNS_TESTNS -p $NS2_PORT fast_reload_fwd.ns2 >ns2.log 2>&1 &
-NS2_PID=$!
-echo "NS2_PID=$NS2_PID" >> .tpkg.var.test
-
-# start unbound in the background
-PRE="../.."
-$PRE/unbound -d -c ub.conf >unbound.log 2>&1 &
-UNBOUND_PID=$!
-echo "UNBOUND_PID=$UNBOUND_PID" >> .tpkg.var.test
-echo "CONTROL_PATH=$CONTROL_PATH" >> .tpkg.var.test
-echo "CONTROL_PID=$CONTROL_PID" >> .tpkg.var.test
-
-cat .tpkg.var.test
-wait_ldns_testns_up ns1.log
-wait_ldns_testns_up ns2.log
-wait_unbound_up unbound.log