Module Name: src
Committed By: ozaki-r
Date: Thu Jul 18 04:00:09 UTC 2019
Modified Files:
src/tests/net/ndp: t_ndp.sh
Log Message:
tests: shorten the expire time of neighbor caches to reduce the runtime of the
tests
To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/tests/net/ndp/t_ndp.sh
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tests/net/ndp/t_ndp.sh
diff -u src/tests/net/ndp/t_ndp.sh:1.32 src/tests/net/ndp/t_ndp.sh:1.33
--- src/tests/net/ndp/t_ndp.sh:1.32 Fri Jun 28 06:46:04 2019
+++ src/tests/net/ndp/t_ndp.sh Thu Jul 18 04:00:09 2019
@@ -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 @@ ndp_cache_expiration_body()
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 @@ ndp_cache_state_body()
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)
#