Source-Changes-HG archive

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

[src/trunk]: src/tests/net/ndp tests: add tests for the validateion of net.in...



details:   https://anonhg.NetBSD.org/src/rev/ea0630d82d59
branches:  trunk
changeset: 460298:ea0630d82d59
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Wed Oct 16 07:42:22 2019 +0000

description:
tests: add tests for the validateion of net.inet6.ip6.temppltime

diffstat:

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

diffs (25 lines):

diff -r 27b642abda11 -r ea0630d82d59 tests/net/ndp/t_ra.sh
--- a/tests/net/ndp/t_ra.sh     Wed Oct 16 07:41:28 2019 +0000
+++ b/tests/net/ndp/t_ra.sh     Wed Oct 16 07:42:22 2019 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: t_ra.sh,v 1.32 2017/11/25 07:58:47 kre Exp $
+#      $NetBSD: t_ra.sh,v 1.33 2019/10/16 07:42:22 ozaki-r Exp $
 #
 # Copyright (c) 2015 Internet Initiative Japan Inc.
 # All rights reserved.
@@ -695,6 +695,15 @@
        # autoconf, temporal address should be used as the source address
        check_echo_request_pkt bus1 $ip_temp $IP6SRV
 
+       #
+       # Testing the validation of net.inet6.ip6.temppltime
+       #
+       # XXX should move to a better place
+       atf_check -s not-exit:0 -e match:'Invalid argument' \
+           rump.sysctl -w net.inet6.ip6.temppltime=$((600 + 5))
+       atf_check -s exit:0 -o match:'86400 -> 606' \
+           rump.sysctl -w net.inet6.ip6.temppltime=$((600 + 5 + 1))
+
        unset RUMP_SERVER
 
        terminate_rtadvd $PIDFILE



Home | Main Index | Thread Index | Old Index