Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/net/net Add tests for combination use of -g option and...



details:   https://anonhg.NetBSD.org/src/rev/162d67e83a3d
branches:  trunk
changeset: 348782:162d67e83a3d
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Mon Nov 07 05:44:48 2016 +0000

description:
Add tests for combination use of -g option and hops optional argument

diffstat:

 tests/net/net/t_ping6_opts.sh |  19 ++++++++++++++++++-
 1 files changed, 18 insertions(+), 1 deletions(-)

diffs (33 lines):

diff -r 6a7a339c6536 -r 162d67e83a3d tests/net/net/t_ping6_opts.sh
--- a/tests/net/net/t_ping6_opts.sh     Mon Nov 07 05:25:36 2016 +0000
+++ b/tests/net/net/t_ping6_opts.sh     Mon Nov 07 05:44:48 2016 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: t_ping6_opts.sh,v 1.3 2016/11/07 05:25:37 ozaki-r Exp $
+#      $NetBSD: t_ping6_opts.sh,v 1.4 2016/11/07 05:44:48 ozaki-r Exp $
 #
 # Copyright (c) 2016 Internet Initiative Japan Inc.
 # All rights reserved.
@@ -398,6 +398,23 @@
            $IP6SRCGW2 $IP6DST
        check_echo_request_pkt_with_macaddr_and_rthdr0 \
            $my_macaddr $gw_shmif2_macaddr $IP6SRC $IP6SRCGW2 $IP6DST
+
+       # ping6 -g <gateway> hops
+       atf_check -s not-exit:0 -o ignore rump.ping6 -n -c 1 -X $TIMEOUT \
+           -g $IP6SRCGW $IP6SRCGW $IP6DST
+       check_echo_request_pkt_with_macaddr_and_rthdr0 \
+           $my_macaddr $gw_shmif0_macaddr $IP6SRC $IP6SRCGW $IP6DST
+
+       atf_check -s not-exit:0 -o ignore rump.ping6 -n -c 1 -X $TIMEOUT \
+           -g $IP6SRCGW2 $IP6SRCGW2 $IP6DST
+       check_echo_request_pkt_with_macaddr_and_rthdr0 \
+           $my_macaddr $gw_shmif2_macaddr $IP6SRC $IP6SRCGW2 $IP6DST
+
+       # ping6 -g <gateway> hops, but different nexthops (is it valid?)
+       atf_check -s not-exit:0 -o ignore rump.ping6 -n -c 1 -X $TIMEOUT \
+           -g $IP6SRCGW $IP6SRCGW2 $IP6DST
+       check_echo_request_pkt_with_macaddr_and_rthdr0 \
+           $my_macaddr $gw_shmif0_macaddr $IP6SRC $IP6SRCGW2 $IP6DST
 }
 
 ping6_opts_hops_cleanup()



Home | Main Index | Thread Index | Old Index