mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
Introduce kasp.sh
Add a script similar to conf.sh to include common functions and variables for testing KASP. Currently used in kasp, keymgr2kasp, and nsec3.
This commit is contained in:
1109
bin/tests/system/kasp.sh
Normal file
1109
bin/tests/system/kasp.sh
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -11,6 +11,8 @@
|
||||
|
||||
# shellcheck source=conf.sh
|
||||
. ../conf.sh
|
||||
# shellcheck source=kasp.sh
|
||||
. ../kasp.sh
|
||||
|
||||
# Log errors and increment $ret.
|
||||
log_error() {
|
||||
@@ -28,11 +30,6 @@ rndccmd() {
|
||||
"$RNDC" -c ../common/rndc.conf -p "$CONTROLPORT" -s "$@"
|
||||
}
|
||||
|
||||
# Set server key-directory ($1) and address ($2) for testing nsec3.
|
||||
set_server() {
|
||||
DIR=$1
|
||||
SERVER=$2
|
||||
}
|
||||
# Set zone name ($1) and policy ($2) for testing nsec3.
|
||||
set_zone_policy() {
|
||||
ZONE=$1
|
||||
@@ -80,18 +77,6 @@ wait_for_zone_is_signed() {
|
||||
status=$((status+ret))
|
||||
}
|
||||
|
||||
# Test: dnssec-verify zone $1.
|
||||
dnssec_verify()
|
||||
{
|
||||
n=$((n+1))
|
||||
echo_i "dnssec-verify zone ${ZONE} ($n)"
|
||||
ret=0
|
||||
dig_with_opts "$ZONE" "@${SERVER}" AXFR > dig.out.test$n.axfr || log_error "dig ${ZONE} AXFR failed"
|
||||
$VERIFY -z -o "$ZONE" dig.out.test$n.axfr > /dev/null || log_error "dnssec verify zone $ZONE failed"
|
||||
test "$ret" -eq 0 || echo_i "failed"
|
||||
status=$((status+ret))
|
||||
}
|
||||
|
||||
# Test: check NSEC in answers
|
||||
_check_nsec_nsec3param()
|
||||
{
|
||||
|
Reference in New Issue
Block a user