TESTNAME=$1
echo_i "stopping resolver"
- $PERL $SYSTEMTESTTOP/stop.pl rpzrecurse ns2
+ $PERL $SYSTEMTESTTOP/stop.pl --use-rndc --port ${CONTROLPORT} rpzrecurse ns2
sleep 1
$DIG $DIGOPTS @10.53.0.2 -p ${PORT} www.test.example.org CNAME > dig.out.${t}
sleep 1
echo_i "suspending authority server"
+PID=`cat ns1/named.pid`
if [ "$CYGWIN" ]; then
- WINPID=`cat ns1/named.pid`
- PID=`ps | sed 's/^..//' | awk '$4 == '$WINPID | awk '{print $1}'`
+ $PSSUSPEND $PID
else
- PID=`cat ns1/named.pid`
+ kill -TSTP $PID
fi
-kill -TSTP $PID
echo_i "adding an NSDNAME policy"
cp ns2/db.6a.00.policy.local ns2/saved.policy.local
cp ns2/db.6b.00.policy.local ns2/db.6a.00.policy.local
-$RNDC -c ../common/rndc.conf -s 10.53.0.2 -p ${CONTROLPORT} reload 6a.00.policy.local 2>&1 | sed 's/^/I:ns2 /'
+$RNDC -c ../common/rndc.conf -s 10.53.0.2 -p ${CONTROLPORT} reload 6a.00.policy.local 2>&1 | sed 's/^/I:ns2 /' | cat_i
sleep 1
t=`expr $t + 1`
echo_i "running dig to follow CNAME (blocks, so runs in the background) (${t})"
sleep 1
echo_i "removing the NSDNAME policy"
cp ns2/db.6c.00.policy.local ns2/db.6a.00.policy.local
-$RNDC -c ../common/rndc.conf -s 10.53.0.2 -p ${CONTROLPORT} reload 6a.00.policy.local 2>&1 | sed 's/^/I:ns2 /'
+$RNDC -c ../common/rndc.conf -s 10.53.0.2 -p ${CONTROLPORT} reload 6a.00.policy.local 2>&1 | sed 's/^/I:ns2 /' | cat_i
sleep 1
echo_i "resuming authority server"
+PID=`cat ns1/named.pid`
if [ "$CYGWIN" ]; then
- WINPID=`cat ns1/named.pid`
- PID=`ps | sed 's/^..//' | awk '$4 == '$WINPID | awk '{print $1}'`
+ $PSSUSPEND -r $PID
else
- PID=`cat ns1/named.pid`
+ kill -CONT $PID
fi
-kill -CONT $PID
for n in 1 2 3 4 5 6 7 8 9; do
sleep 1
[ -s dig.out.${t} ] || continue
$DIG $DIGOPTS @10.53.0.2 -p ${PORT} www.test.example.org CNAME > dig.out.${t}
sleep 1
echo_i "suspending authority server"
+PID=`cat ns1/named.pid`
if [ "$CYGWIN" ]; then
- WINPID=`cat ns1/named.pid`
- PID=`ps | sed 's/^..//' | awk '$4 == '$WINPID | awk '{print $1}'`
+ $PSSUSPEND $PID
else
- PID=`cat ns1/named.pid`
+ kill -TSTP $PID
fi
-kill -TSTP $PID
echo_i "adding an NSDNAME policy"
cp ns2/db.6b.00.policy.local ns2/db.6a.00.policy.local
-$RNDC -c ../common/rndc.conf -s 10.53.0.2 -p ${CONTROLPORT} reload 6a.00.policy.local 2>&1 | sed 's/^/I:ns2 /'
+$RNDC -c ../common/rndc.conf -s 10.53.0.2 -p ${CONTROLPORT} reload 6a.00.policy.local 2>&1 | sed 's/^/I:ns2 /' | cat_i
sleep 1
t=`expr $t + 1`
echo_i "running dig to follow CNAME (blocks, so runs in the background) (${t})"
sleep 1
echo_i "removing the policy zone"
cp ns2/named.default.conf ns2/named.conf
-$RNDC -c ../common/rndc.conf -s 10.53.0.2 -p ${CONTROLPORT} reconfig 2>&1 | sed 's/^/I:ns2 /'
+$RNDC -c ../common/rndc.conf -s 10.53.0.2 -p ${CONTROLPORT} reconfig 2>&1 | sed 's/^/I:ns2 /' | cat_i
sleep 1
echo_i "resuming authority server"
+PID=`cat ns1/named.pid`
if [ "$CYGWIN" ]; then
- WINPID=`cat ns1/named.pid`
- PID=`ps | sed 's/^..//' | awk '$4 == '$WINPID | awk '{print $1}'`
+ $PSSUSPEND -r $PID
else
- PID=`cat ns1/named.pid`
+ kill -CONT $PID
fi
-kill -CONT $PID
for n in 1 2 3 4 5 6 7 8 9; do
sleep 1
[ -s dig.out.${t} ] || continue
"PLATFORM",
"PKCS11_TOOLS",
"prefix",
+ "PSSUSPEND",
"PYTHON",
"PYTHON_INSTALL_DIR",
"VCREDIST_PATH"),
"openssl",
"libxml2",
"pkcs11",
+ "pssuspend",
"python",
"readline",
"samples",
" with-gssapi[=PATH] build with MIT KfW GSSAPI yes|no|path\n",
" with-libxml2[=PATH] build with libxml2 library yes|no|path\n",
" with-geoip[=PATH] build with GeoIP support yes|no|path\n",
+" with-pssuspend[=COMMAND] specify pssuspend command\n",
" with-python[=COMMAND] specify python interpreter python|command\n",
" with-readline[=PATH] build with readline library support yes|no|path\n",
" with-idn[=PATH] build with IDN kit support yes|no|path\n",
my $geoip_path = "";
my $use_libxml2 = "auto";
my $libxml2_path = "..\\..\\";
+my $with_pssuspend = "no";
+my $pssuspend_command = "pssuspend.exe";
my $use_python = "auto";
my $python_command = "python.exe";
my $use_readline = "no";
$zlib_path = $val;
}
}
+ } elsif ($key =~ /^pssuspend$/i) {
+ if ($val =~ /^no$/i) {
+ $with_pssuspend = "no";
+ } else {
+ if ($val !~ /^yes$/i) {
+ $pssuspend_command = $val;
+ }
+ }
} elsif ($key =~ /^python$/i) {
if ($val =~ /^no$/i) {
$use_python = "no";
} else {
print "zlib-path: $zlib_path\n";
}
+ if ($with_pssuspend eq "no") {
+ print "pssuspend: disabled\n";
+ } else {
+ print "pssuspend-command: $pssuspend_command\n";
+ }
if ($use_python eq "no") {
print "python: disabled\n";
} else {
$configdll{"ZLIB_DLL"} = "$zlib_dll";
}
+if ($with_pssuspend ne "no") {
+ $configvar{"PSSUSPEND"} = "$pssuspend_command";
+}
+
# with-python
if ($use_python eq "no") {
if ($verbose) {