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 arp -a option
details: https://anonhg.NetBSD.org/src/rev/7bec83e7e3b0
branches: trunk
changeset: 339610:7bec83e7e3b0
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Thu Jul 30 08:41:18 2015 +0000
description:
Add tests for arp -a option
diffstat:
tests/net/arp/t_arp.sh | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diffs (23 lines):
diff -r 34ee8159d648 -r 7bec83e7e3b0 tests/net/arp/t_arp.sh
--- a/tests/net/arp/t_arp.sh Thu Jul 30 08:11:44 2015 +0000
+++ b/tests/net/arp/t_arp.sh Thu Jul 30 08:41:18 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: t_arp.sh,v 1.2 2015/07/30 02:51:05 ozaki-r Exp $
+# $NetBSD: t_arp.sh,v 1.3 2015/07/30 08:41:18 ozaki-r Exp $
#
# Copyright (c) 2015 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -187,6 +187,13 @@
atf_check -s exit:0 -o match:'permanent' rump.arp -n 10.0.1.14
atf_check -s exit:0 -o match:'permanent' rump.arp -n 10.0.1.15
+ # Test arp -a
+ atf_check -s exit:0 -o match:'10.0.1.11' rump.arp -n -a
+ atf_check -s exit:0 -o match:'10.0.1.12' rump.arp -n -a
+ atf_check -s exit:0 -o match:'10.0.1.13' rump.arp -n -a
+ atf_check -s exit:0 -o match:'10.0.1.14' rump.arp -n -a
+ atf_check -s exit:0 -o match:'10.0.1.15' rump.arp -n -a
+
# Flush all entries
$DEBUG && rump.arp -n -a
atf_check -s exit:0 -o ignore rump.arp -d -a
Home |
Main Index |
Thread Index |
Old Index