Source-Changes-HG archive

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

[src/trunk]: src/tests/net/arp Check MAC address of ARP caches additionally



details:   https://anonhg.NetBSD.org/src/rev/0e9ca876c080
branches:  trunk
changeset: 809873:0e9ca876c080
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Fri Aug 07 05:32:12 2015 +0000

description:
Check MAC address of ARP caches additionally

diffstat:

 tests/net/arp/t_arp.sh |  11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diffs (54 lines):

diff -r c886ff8b6d39 -r 0e9ca876c080 tests/net/arp/t_arp.sh
--- a/tests/net/arp/t_arp.sh    Fri Aug 07 00:50:12 2015 +0000
+++ b/tests/net/arp/t_arp.sh    Fri Aug 07 05:32:12 2015 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: t_arp.sh,v 1.6 2015/07/31 10:16:36 ozaki-r Exp $
+#      $NetBSD: t_arp.sh,v 1.7 2015/08/07 05:32:12 ozaki-r Exp $
 #
 # Copyright (c) 2015 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -172,6 +172,7 @@
        $DEBUG && rump.arp -n -a
        atf_check -s exit:0 -o ignore rump.arp -s 10.0.1.10 b2:a0:20:00:00:10
        $DEBUG && rump.arp -n -a
+       atf_check -s exit:0 -o match:'b2:a0:20:00:00:10' rump.arp -n 10.0.1.10
        atf_check -s exit:0 -o match:'permanent' rump.arp -n 10.0.1.10
        atf_check -s exit:0 -o ignore rump.arp -d 10.0.1.10
        $DEBUG && rump.arp -n -a
@@ -188,10 +189,15 @@
        $DEBUG && rump.arp -n -a
        atf_check -s exit:0 -o ignore rump.arp -f ./list
        $DEBUG && rump.arp -n -a
+       atf_check -s exit:0 -o match:'b2:a0:20:00:00:11' rump.arp -n 10.0.1.11
        atf_check -s exit:0 -o match:'permanent' rump.arp -n 10.0.1.11
+       atf_check -s exit:0 -o match:'b2:a0:20:00:00:12' rump.arp -n 10.0.1.12
        atf_check -s exit:0 -o match:'permanent' rump.arp -n 10.0.1.12
+       atf_check -s exit:0 -o match:'b2:a0:20:00:00:13' rump.arp -n 10.0.1.13
        atf_check -s exit:0 -o match:'permanent' rump.arp -n 10.0.1.13
+       atf_check -s exit:0 -o match:'b2:a0:20:00:00:14' rump.arp -n 10.0.1.14
        atf_check -s exit:0 -o match:'permanent' rump.arp -n 10.0.1.14
+       atf_check -s exit:0 -o match:'b2:a0:20:00:00:15' rump.arp -n 10.0.1.15
        atf_check -s exit:0 -o match:'permanent' rump.arp -n 10.0.1.15
 
        # Test arp -a
@@ -215,6 +221,7 @@
        $DEBUG && rump.arp -n -a
        atf_check -s exit:0 -o ignore rump.arp -s 10.0.1.10 b2:a0:20:00:00:10 temp
        $DEBUG && rump.arp -n -a
+       atf_check -s exit:0 -o match:'b2:a0:20:00:00:10' rump.arp -n 10.0.1.10
        atf_check -s exit:0 -o not-match:'permanent' rump.arp -n 10.0.1.10
 
        # Hm? the cache doesn't expire...
@@ -294,10 +301,12 @@
        # Can overwrite a dynamic cache
        atf_check -s exit:0 -o ignore rump.arp -s $IP4DST b2:a0:20:00:00:00
        $DEBUG && rump.arp -n -a
+       atf_check -s exit:0 -o match:'b2:a0:20:00:00:00' rump.arp -n $IP4DST
        atf_check -s exit:0 -o match:'permanent' rump.arp -n $IP4DST
 
        atf_check -s exit:0 -o ignore rump.arp -s 10.0.1.10 b2:a0:20:00:00:10 temp
        $DEBUG && rump.arp -n -a
+       atf_check -s exit:0 -o match:'b2:a0:20:00:00:10' rump.arp -n 10.0.1.10
        atf_check -s exit:0 -o not-match:'permanent' rump.arp -n 10.0.1.10
        # Cannot overwrite a temp cache
        atf_check -s not-exit:0 -e ignore rump.arp -s 10.0.1.10 b2:a0:20:00:00:ff



Home | Main Index | Thread Index | Old Index