Skip to content

Commit

Permalink
inet_dns: support TSIG (TO BE SQUASHED)
Browse files Browse the repository at this point in the history
Tweak skip printouts to show the vital information
on the overview level of daily test results.
  • Loading branch information
jimdigriz authored and RaimoNiskanen committed Jul 17, 2023
1 parent 7711b75 commit 3c059f1
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions lib/kernel/test/inet_res_SUITE_data/run-ns
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
## * Terminate name server and wait for it.
##
## Prints status lines starting with tag and colon (think mail header):
## Error: have given up, no name server started
## Skip: have given up; no point in starting this name server
## Error: have given up; failed to start name server
## Running: name server is running, waiting for "quit"
## Other tags: diagnostics info
#
Expand Down Expand Up @@ -84,9 +85,9 @@ test :"$3" != : || \
error "Empty argument 3: Work/Zone subdir!"
SRCDIR="`dirname "$ME"`/$3"
test -d "$SRCDIR" || \
error "Missing zone directory $SRCDIR !"
error "Missing zone directory: $SRCDIR !"
test -f "$SRCDIR/$INC_FILE" || \
error "Missing file: $SRCDIR/$INC_FILE !"
error "Missing include file: $SRCDIR/$INC_FILE !"
DIR="$3"

# Locate name server and check version.
Expand All @@ -96,17 +97,17 @@ do
done

NS_VER="`"$NS" -V 2>&1`" || \
skip "Name server ($NS) not found!"
skip "$NS: Not found!"
NS_VER="`echo "$NS_VER" | head -1`"
{ echo "$NS_VER" |
grep -q -e ' 2[.]9[.]' -e ' 2[.][1-9][0-9][0-9]*[.]' \
-e ' [3-9][.]' -e ' [1-9][0-9][0-9]*[.]'
} || skip "Name server $NS_VER < 2.9"
} || skip "$NS_VER < 2.9"

# Create working directory and cd to it
mkdir "$DIR" >/dev/null 2>&1
cd "$DIR" >/dev/null 2>&1 || \
error "Can not cd: $DIR !"
error "Cannot cd: $DIR !"
DIR="$(pwd)"

# Create $CONF_FILE
Expand Down

0 comments on commit 3c059f1

Please sign in to comment.