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: shorten the expire time of neighbor cac...
details: https://anonhg.NetBSD.org/src/rev/b8542b7708de
branches: trunk
changeset: 461928:b8542b7708de
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Thu Jul 18 04:00:09 2019 +0000
description:
tests: shorten the expire time of neighbor caches to reduce the runtime of the tests
diffstat:
tests/net/ndp/t_ndp.sh | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diffs (37 lines):
diff -r e77ac497d743 -r b8542b7708de tests/net/ndp/t_ndp.sh
--- a/tests/net/ndp/t_ndp.sh Thu Jul 18 03:52:26 2019 +0000
+++ b/tests/net/ndp/t_ndp.sh Thu Jul 18 04:00:09 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: t_ndp.sh,v 1.32 2019/06/28 06:46:04 ozaki-r Exp $
+# $NetBSD: t_ndp.sh,v 1.33 2019/07/18 04:00:09 ozaki-r Exp $
#
# Copyright (c) 2015 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -121,10 +121,15 @@
setup_dst_server
setup_src_server
+ export RUMP_SERVER=$SOCKSRC
+
+ # Shorten the expire time of cache entries
+ atf_check -s exit:0 -o match:'basereachable=7s0ms' \
+ rump.ndp -i shmif0 basereachable=7000
+
#
# Check if a cache is expired expectedly
#
- export RUMP_SERVER=$SOCKSRC
atf_check -s exit:0 -o ignore rump.ping6 -n -X $TIMEOUT -c 1 $IP6DST
$DEBUG && rump.ndp -n -a
@@ -714,6 +719,10 @@
export RUMP_SERVER=$SOCKSRC
+ # Shorten the expire time of cache entries
+ atf_check -s exit:0 -o match:'basereachable=7s0ms' \
+ rump.ndp -i shmif0 basereachable=7000
+
#
# Reachability confirmation (RFC 4861 7.3.3)
#
Home |
Main Index |
Thread Index |
Old Index