Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/net/arp Add tests for temp option
details: https://anonhg.NetBSD.org/src/rev/8d6b4d1fdcd8
branches: trunk
changeset: 809764:8d6b4d1fdcd8
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Fri Jul 31 02:35:09 2015 +0000
description:
Add tests for temp option
diffstat:
tests/net/arp/t_arp.sh | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diffs (27 lines):
diff -r 7cdf17949ad0 -r 8d6b4d1fdcd8 tests/net/arp/t_arp.sh
--- a/tests/net/arp/t_arp.sh Fri Jul 31 00:23:54 2015 +0000
+++ b/tests/net/arp/t_arp.sh Fri Jul 31 02:35:09 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: t_arp.sh,v 1.3 2015/07/30 08:41:18 ozaki-r Exp $
+# $NetBSD: t_arp.sh,v 1.4 2015/07/31 02:35:09 ozaki-r Exp $
#
# Copyright (c) 2015 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -203,6 +203,17 @@
atf_check -s not-exit:0 -e ignore rump.arp -n 10.0.1.14
atf_check -s not-exit:0 -e ignore rump.arp -n 10.0.1.15
atf_check -s not-exit:0 -e ignore rump.arp -n 10.0.1.1
+
+ # Test temp option
+ $DEBUG && rump.arp -n -a
+ atf_check -s exit:0 -o ignore rump.arp -s 10.0.1.10 b2:a0:20:00:00:10 temp
+ $DEBUG && rump.arp -n -a
+ atf_check -s exit:0 -o not-match:'permanent' rump.arp -n 10.0.1.10
+
+ # Hm? the cache doesn't expire...
+ atf_check -s exit:0 sleep $(($arp_keep + $arp_prune + $bonus))
+ $DEBUG && rump.arp -n -a
+ #atf_check -s exit:0 -o match:'incomplete' rump.arp -n 10.0.1.10
}
make_pkt_str()
Home |
Main Index |
Thread Index |
Old Index