[master] Ensure consistent handling of -4/-6 command line options in all tools

4690.	[bug]		Command line options -4/-6 were handled inconsistently
			between tools. [RT #45632]
This commit is contained in:
Michał Kępień
2017-08-16 11:10:24 +02:00
parent 503223b800
commit d6814700de
11 changed files with 86 additions and 16 deletions

View File

@@ -490,6 +490,14 @@ if [ -x ${DELV} ] ; then
if [ $ret != 0 ]; then echo "I:failed"; fi
status=`expr $status + $ret`
n=`expr $n + 1`
echo "I:checking delv -4 -6 ($n)"
ret=0
$DELV $DELVOPTS @10.53.0.3 -4 -6 A a.example > delv.out.test$n 2>&1 && ret=1
grep "only one of -4 and -6 allowed" < delv.out.test$n > /dev/null || ret=1
if [ $ret != 0 ]; then echo "I:failed"; fi
status=`expr $status + $ret`
n=`expr $n + 1`
echo "I:checking delv with IPv6 on IPv4 does not work ($n)"
if $TESTSOCK6 fd92:7065:b8e:ffff::3 2>/dev/null