dnssec-coverage: fix handling of zones without trailing dots

After change 5143, zones listed on the command line without trailing
dots were ignored.
This commit is contained in:
Tony Finch
2019-02-07 19:00:43 +00:00
committed by Evan Hunt
parent cfdf457d3c
commit a159675f44
3 changed files with 15 additions and 1 deletions

View File

@@ -81,5 +81,17 @@ for dir in [0-9][0-9]-*; do
status=`expr $status + $ret`
done
dir=dotted-dotless
[ -d $dir ] || mkdir $dir
echo_i "$dir"
zsk1=`$KEYGEN -q -K $dir -a rsasha256 one.example`
zsk2=`$KEYGEN -q -K $dir -a rsasha256 two.example`
$COVERAGE -K $dir one.example. two.example > coverage.$n 2>&1
grep one.example coverage.$n >/dev/null 2>&1 || ret=1
grep two.example coverage.$n >/dev/null 2>&1 || ret=1
n=`expr $n + 1`
if [ $ret != 0 ]; then echo_i "failed"; fi
status=`expr $status + $ret`
echo_i "exit status: $status"
[ $status -eq 0 ] || exit 1