Source-Changes-HG archive

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

[src/trunk]: src/tests/net Test dumping states before destroying interfaces



details:   https://anonhg.NetBSD.org/src/rev/ca8f61662945
branches:  trunk
changeset: 820453:ca8f61662945
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Tue Jan 10 05:55:10 2017 +0000

description:
Test dumping states before destroying interfaces

diffstat:

 tests/net/net_common.sh |  12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r 11f3f4f53e67 -r ca8f61662945 tests/net/net_common.sh
--- a/tests/net/net_common.sh   Tue Jan 10 05:54:03 2017 +0000
+++ b/tests/net/net_common.sh   Tue Jan 10 05:55:10 2017 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: net_common.sh,v 1.9 2016/11/28 07:29:56 ozaki-r Exp $
+#      $NetBSD: net_common.sh,v 1.10 2017/01/10 05:55:10 ozaki-r Exp $
 #
 # Copyright (c) 2016 Internet Initiative Japan Inc.
 # All rights reserved.
@@ -219,6 +219,16 @@
        local backup=$RUMP_SERVER
 
        $DEBUG && cat $_rump_server_ifaces
+
+       # Try to dump states before destroying interfaces
+       for sock in $(cat $_rump_server_socks); do
+               export RUMP_SERVER=$sock
+               atf_check -s exit:0 -o ignore rump.ifconfig
+               atf_check -s exit:0 -o ignore rump.netstat -nr
+               atf_check -s exit:0 -o ignore rump.arp -na
+               atf_check -s exit:0 -o ignore rump.ndp -na
+       done
+
        # XXX using pipe doesn't work. See PR bin/51667
        #cat $_rump_server_ifaces | while read sock ifname; do
        while read sock ifname; do



Home | Main Index | Thread Index | Old Index