Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/net/route Check existence of ARP/NDP entries
details: https://anonhg.NetBSD.org/src/rev/df54a5ddb9e7
branches: trunk
changeset: 354726:df54a5ddb9e7
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Tue Jun 27 04:52:45 2017 +0000
description:
Check existence of ARP/NDP entries
Checking ARP/NDP entries is valid rather than checking routes.
diffstat:
tests/net/route/t_flags.sh | 5 ++++-
tests/net/route/t_flags6.sh | 8 +++++++-
2 files changed, 11 insertions(+), 2 deletions(-)
diffs (69 lines):
diff -r 8b384064662b -r df54a5ddb9e7 tests/net/route/t_flags.sh
--- a/tests/net/route/t_flags.sh Tue Jun 27 02:22:08 2017 +0000
+++ b/tests/net/route/t_flags.sh Tue Jun 27 04:52:45 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: t_flags.sh,v 1.15 2016/12/21 02:46:08 ozaki-r Exp $
+# $NetBSD: t_flags.sh,v 1.16 2017/06/27 04:52:45 ozaki-r Exp $
#
# Copyright (c) 2015 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -163,6 +163,7 @@
# Shouldn't be created
check_route_no_entry 10.0.0.1
+ atf_check -s not-exit:0 -e match:'no entry' rump.arp -n 10.0.0.1
}
test_reject()
@@ -185,6 +186,7 @@
# Shouldn't be created
check_route_no_entry 10.0.0.1
+ atf_check -s not-exit:0 -e match:'no entry' rump.arp -n 10.0.0.1
# Gateway is lo0 (RTF_GATEWAY)
@@ -204,6 +206,7 @@
# Shouldn't be created
check_route_no_entry 10.0.0.1
+ atf_check -s not-exit:0 -e match:'no entry' rump.arp -n 10.0.0.1
# Gateway is lo0 (RTF_HOST)
diff -r 8b384064662b -r df54a5ddb9e7 tests/net/route/t_flags6.sh
--- a/tests/net/route/t_flags6.sh Tue Jun 27 02:22:08 2017 +0000
+++ b/tests/net/route/t_flags6.sh Tue Jun 27 04:52:45 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: t_flags6.sh,v 1.12 2016/12/21 02:46:08 ozaki-r Exp $
+# $NetBSD: t_flags6.sh,v 1.13 2017/06/27 04:52:45 ozaki-r Exp $
#
# Copyright (c) 2016 Internet Initiative Japan Inc.
# All rights reserved.
@@ -149,6 +149,8 @@
# Shouldn't be created
check_route_no_entry $IP6_PEER
+ atf_check -s not-exit:0 -o ignore -e match:'no entry' \
+ rump.ndp -n $IP6_PEER
}
test_reject6()
@@ -173,6 +175,8 @@
# Shouldn't be created
check_route_no_entry $IP6_PEER
+ atf_check -s not-exit:0 -o ignore -e match:'no entry' \
+ rump.ndp -n $IP6_PEER
# Gateway is lo0 (RTF_GATEWAY)
@@ -193,6 +197,8 @@
# Shouldn't be created
check_route_no_entry $IP6_PEER
+ atf_check -s not-exit:0 -o ignore -e match:'no entry' \
+ rump.ndp -n $IP6_PEER
# Gateway is lo0 (RTF_HOST)
Home |
Main Index |
Thread Index |
Old Index