From: Jelte Jansen Date: Wed, 19 Dec 2012 16:03:58 +0000 (+0100) Subject: [master] Update systests X-Git-Tag: bind10-1.0.0-beta-release~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a4642ad16734522436855cfd8e4d09c5ce32d06;p=thirdparty%2Fkea.git [master] Update systests Merge of #2380 missed a couple of cases, and added a few more sleeps to help with background loading checks. --- diff --git a/tests/system/bindctl/setup.sh b/tests/system/bindctl/setup.sh index 31b1016e1b..7a9a323561 100755 --- a/tests/system/bindctl/setup.sh +++ b/tests/system/bindctl/setup.sh @@ -22,5 +22,5 @@ SUBTEST_TOP=${TEST_TOP}/bindctl cp ${SUBTEST_TOP}/nsx1/b10-config.db.template ${SUBTEST_TOP}/nsx1/b10-config.db rm -f ${SUBTEST_TOP}/*/zone.sqlite3 -${B10_LOADZONE} -c '{"database_file": "'${SUBTEST_TOP}/nsx1/zone.sqlite3'"}' \ +${B10_LOADZONE} -i 1 -c "{\"database_file\": \"${SUBTEST_TOP}/nsx1/zone.sqlite3\"}" \ . ${SUBTEST_TOP}//nsx1/root.db diff --git a/tests/system/bindctl/tests.sh b/tests/system/bindctl/tests.sh index 9611c9048d..75c91def69 100755 --- a/tests/system/bindctl/tests.sh +++ b/tests/system/bindctl/tests.sh @@ -85,6 +85,7 @@ config commit quit ' | $RUN_BINDCTL \ --csv-file-dir=$BINDCTL_CSV_DIR 2>&1 > /dev/null || status=1 +sleep 2 $DIG +norec @10.53.0.1 -p 53210 ns.example.com. A >dig.out.$n || status=1 # perform a simple check on the output (digcomp would be too much for this) grep 192.0.2.1 dig.out.$n > /dev/null || status=1 @@ -118,6 +119,7 @@ config commit quit " | $RUN_BINDCTL \ --csv-file-dir=$BINDCTL_CSV_DIR > bindctl.out.$n || status=1 +sleep 2 $DIG +norec @10.53.0.1 -p 53210 ns.example.com. A >dig.out.$n || status=1 grep 192.0.2.2 dig.out.$n > /dev/null || status=1 if [ $status != 0 ]; then echo "I:failed"; fi @@ -148,6 +150,7 @@ quit ' | $RUN_BINDCTL \ --csv-file-dir=$BINDCTL_CSV_DIR 2>&1 > /dev/null || status=1 done +sleep 2 $DIG +norec @10.53.0.1 -p 53210 ns.example.com. A >dig.out.$n || status=1 grep 192.0.2.2 dig.out.$n > /dev/null || status=1 if [ $status != 0 ]; then echo "I:failed"; fi @@ -183,6 +186,7 @@ quit ' | $RUN_BINDCTL \ --csv-file-dir=$BINDCTL_CSV_DIR 2>&1 > /dev/null || status=1 done +sleep 2 $DIG +norec @10.53.0.1 -p 53210 ns.example.com. A >dig.out.$n || status=1 grep 192.0.2.2 dig.out.$n > /dev/null || status=1 if [ $status != 0 ]; then echo "I:failed"; fi diff --git a/tests/system/glue/setup.sh.in b/tests/system/glue/setup.sh.in index dc5b28aa3d..2f9f886241 100755 --- a/tests/system/glue/setup.sh.in +++ b/tests/system/glue/setup.sh.in @@ -18,8 +18,8 @@ SYSTEMTESTTOP=.. . $SYSTEMTESTTOP/conf.sh rm -f */zone.sqlite3 -${B10_LOADZONE} -o . -d @builddir@/nsx1/zone.sqlite3 @builddir@/nsx1/root.db -${B10_LOADZONE} -o root-servers.nil -d @builddir@/nsx1/zone.sqlite3 \ +${B10_LOADZONE} -i 1 -c '{"database_file": "@builddir@/nsx1/zone.sqlite3"}' . @builddir@/nsx1/root.db +${B10_LOADZONE} -i 1 -c '{"database_file": "@builddir@/nsx1/zone.sqlite3"}' root-servers.nil \ @builddir@/nsx1/root-servers.nil.db -${B10_LOADZONE} -o com -d @builddir@/nsx1/zone.sqlite3 @builddir@/nsx1/com.db -${B10_LOADZONE} -o net -d @builddir@/nsx1/zone.sqlite3 @builddir@/nsx1/net.db +${B10_LOADZONE} -i 1 -c '{"database_file": "@builddir@/nsx1/zone.sqlite3"}' com @builddir@/nsx1/com.db +${B10_LOADZONE} -i 1 -c '{"database_file": "@builddir@/nsx1/zone.sqlite3"}' net @builddir@/nsx1/net.db diff --git a/tests/system/ixfr/in-1/setup.sh.in b/tests/system/ixfr/in-1/setup.sh.in index d4c3978292..433293015a 100644 --- a/tests/system/ixfr/in-1/setup.sh.in +++ b/tests/system/ixfr/in-1/setup.sh.in @@ -27,4 +27,4 @@ cp -f $IXFR_TOP/db.example.n4 ns1/db.example # Set up the IXFR client - load the same version of the zone. cp -f $IXFR_TOP/b10-config.db nsx2/b10-config.db -${B10_LOADZONE} -o . -d $IXFR_TOP/zone.sqlite3 $IXFR_TOP/db.example.n4 +${B10_LOADZONE} -c "{\"database_file\": \"$IXFR_TOP/zone.sqlite3\"}" example. $IXFR_TOP/db.example.n4 diff --git a/tests/system/ixfr/in-2/setup.sh.in b/tests/system/ixfr/in-2/setup.sh.in index a5f64e5b02..a210636576 100644 --- a/tests/system/ixfr/in-2/setup.sh.in +++ b/tests/system/ixfr/in-2/setup.sh.in @@ -26,4 +26,4 @@ cp -f $IXFR_TOP/db.example.n6 ns1/db.example # Set up the IXFR client - load an earlier version of the zone cp -f $IXFR_TOP/b10-config.db nsx2/b10-config.db -${B10_LOADZONE} -o . -d $IXFR_TOP/zone.sqlite3 $IXFR_TOP/db.example.n6 +${B10_LOADZONE} -c "{\"database_file\": \"$IXFR_TOP/zone.sqlite3\"}" example. $IXFR_TOP/db.example.n6 diff --git a/tests/system/ixfr/in-3/setup.sh.in b/tests/system/ixfr/in-3/setup.sh.in index 867e06eff5..2a08c588ee 100644 --- a/tests/system/ixfr/in-3/setup.sh.in +++ b/tests/system/ixfr/in-3/setup.sh.in @@ -26,4 +26,4 @@ cp -f $IXFR_TOP/db.example.n0 ns1/db.example # Set up the IXFR client - load a previous version of the zone. cp -f $IXFR_TOP/b10-config.db nsx2/b10-config.db -${B10_LOADZONE} -o . -d $IXFR_TOP/zone.sqlite3 $IXFR_TOP/db.example.n2 +${B10_LOADZONE} -c "{\"database_file\": \"$IXFR_TOP/zone.sqlite3\"}" example. $IXFR_TOP/db.example.n2 diff --git a/tests/system/ixfr/in-4/setup.sh.in b/tests/system/ixfr/in-4/setup.sh.in index 7419e276d1..1c2e9c864b 100644 --- a/tests/system/ixfr/in-4/setup.sh.in +++ b/tests/system/ixfr/in-4/setup.sh.in @@ -27,4 +27,4 @@ cp -f $IXFR_TOP/db.example.n2.refresh ns1/db.example # Set up the IXFR client - load a previous version of the zone with a short # refresh time. cp -f $IXFR_TOP/b10-config.db nsx2/b10-config.db -${B10_LOADZONE} -o . -d $IXFR_TOP/zone.sqlite3 $IXFR_TOP/db.example.n2.refresh +${B10_LOADZONE} -c "{\"database_file\": \"$IXFR_TOP/zone.sqlite3\"}" example. $IXFR_TOP/db.example.n2.refresh