Source-Changes-HG archive

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

[src/trunk]: src/tests/net/if_ipsec Fix PR kern/53848. Add missing "ifconfig ...



details:   https://anonhg.NetBSD.org/src/rev/c491d8824e1e
branches:  trunk
changeset: 996019:c491d8824e1e
user:      knakahara <knakahara%NetBSD.org@localhost>
date:      Tue Jan 15 05:34:37 2019 +0000

description:
Fix PR kern/53848. Add missing "ifconfig -w".

diffstat:

 tests/net/if_ipsec/t_ipsec.sh |  13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diffs (57 lines):

diff -r fa57816993ad -r c491d8824e1e tests/net/if_ipsec/t_ipsec.sh
--- a/tests/net/if_ipsec/t_ipsec.sh     Tue Jan 15 05:33:42 2019 +0000
+++ b/tests/net/if_ipsec/t_ipsec.sh     Tue Jan 15 05:34:37 2019 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: t_ipsec.sh,v 1.8 2019/01/15 05:33:42 knakahara Exp $
+#      $NetBSD: t_ipsec.sh,v 1.9 2019/01/15 05:34:37 knakahara Exp $
 #
 # Copyright (c) 2017 Internet Initiative Japan Inc.
 # All rights reserved.
@@ -99,6 +99,10 @@
        rump_server_add_iface $sock shmif1 bus1
 
        export RUMP_SERVER=${sock}
+
+       atf_check -s exit:0 rump.sysctl -q -w net.inet.ip.dad_count=0
+       atf_check -s exit:0 rump.sysctl -q -w net.inet6.ip6.dad_count=0
+
        if [ ${lan_mode} = "ipv6" ]; then
                atf_check -s exit:0 rump.ifconfig shmif0 inet6 ${lan}
        else
@@ -113,10 +117,9 @@
                atf_check -s exit:0 rump.ifconfig shmif1 inet ${wan} netmask 0xff000000
        fi
        atf_check -s exit:0 rump.ifconfig shmif1 up
+       atf_check -s exit:0 rump.ifconfig -w 10
        $DEBUG && rump.ifconfig shmif1
 
-       atf_check -s exit:0 rump.sysctl -q -w net.inet.ip.dad_count=0
-       atf_check -s exit:0 rump.sysctl -q -w net.inet6.ip6.dad_count=0
        unset RUMP_SERVER
 }
 
@@ -250,6 +253,8 @@
                atf_check -s exit:0 -o ignore rump.route add -inet ${peernet} ${addr}
        fi
 
+       atf_check -s exit:0 rump.ifconfig -w 10
+
        $DEBUG && rump.ifconfig ipsec0
        $DEBUG && rump.route -nL show
 }
@@ -428,6 +433,7 @@
        else
                atf_check -s exit:0 rump.ifconfig ipsec1 inet ${addr}/32 ${remote}
        fi
+       atf_check -s exit:0 rump.ifconfig -w 10
 
        $DEBUG && rump.ifconfig ipsec1
        unset RUMP_SERVER
@@ -569,6 +575,7 @@
        else
                atf_check -s exit:0 rump.ifconfig ${ipsec} inet ${addr}/32 ${remote}
        fi
+       atf_check -s exit:0 rump.ifconfig -w 10
        setup_if_ipsec_sa $sock ${src} ${dst} ${inner} ${proto} ${algo} ${dir}
 
        export RUMP_SERVER=${sock}



Home | Main Index | Thread Index | Old Index