Module Name:    src
Committed By:   ozaki-r
Date:           Thu Jul 30 08:41:18 UTC 2015

Modified Files:
        src/tests/net/arp: t_arp.sh

Log Message:
Add tests for arp -a option


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/net/arp/t_arp.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/arp/t_arp.sh
diff -u src/tests/net/arp/t_arp.sh:1.2 src/tests/net/arp/t_arp.sh:1.3
--- src/tests/net/arp/t_arp.sh:1.2	Thu Jul 30 02:51:05 2015
+++ src/tests/net/arp/t_arp.sh	Thu Jul 30 08:41:18 2015
@@ -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 @@ command_body()
 	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

Reply via email to