diff options
| author | ozaki-r <ozaki-r@NetBSD.org> | 2019-07-18 04:00:09 +0000 |
|---|---|---|
| committer | ozaki-r <ozaki-r@NetBSD.org> | 2019-07-18 04:00:09 +0000 |
| commit | 43617ef5fed84a554e157ec978b61107e6dfc0d8 (patch) | |
| tree | 74eaf5912210aaa667dd3037f662f2dabe6bd693 /tests | |
| parent | f0fc3ee8dbb427da92501fe1b9406ee275528502 (diff) | |
tests: shorten the expire time of neighbor caches to reduce the runtime of the tests
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/net/ndp/t_ndp.sh | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/tests/net/ndp/t_ndp.sh b/tests/net/ndp/t_ndp.sh index e7114b986ef..8fa40fd105e 100644 --- a/tests/net/ndp/t_ndp.sh +++ b/tests/net/ndp/t_ndp.sh @@ -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) # |
