Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/net/if_pppoe Add tests for "pppoectl {no}[ipcp|ipv6cp]"
details: https://anonhg.NetBSD.org/src/rev/3ee5925159fe
branches: trunk
changeset: 379102:3ee5925159fe
user: yamaguchi <yamaguchi%NetBSD.org@localhost>
date: Tue May 11 05:57:02 2021 +0000
description:
Add tests for "pppoectl {no}[ipcp|ipv6cp]"
diffstat:
tests/net/if_pppoe/t_pppoe.sh | 33 ++++++++++++++++++++++++++++++++-
1 files changed, 32 insertions(+), 1 deletions(-)
diffs (47 lines):
diff -r bfb675165a4a -r 3ee5925159fe tests/net/if_pppoe/t_pppoe.sh
--- a/tests/net/if_pppoe/t_pppoe.sh Tue May 11 05:51:42 2021 +0000
+++ b/tests/net/if_pppoe/t_pppoe.sh Tue May 11 05:57:02 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: t_pppoe.sh,v 1.30 2021/05/11 00:55:51 yamaguchi Exp $
+# $NetBSD: t_pppoe.sh,v 1.31 2021/05/11 05:57:02 yamaguchi Exp $
#
# Copyright (c) 2016 Internet Initiative Japan Inc.
# All rights reserved.
@@ -725,6 +725,37 @@ pppoe_params_body()
-x "${dumpcmd} | grep PADR"
atf_check -s exit:0 -o not-match:'\[AC-Name "ACNAME-TEST5\]"' -e ignore \
-x "${dumpcmd} | grep PADI"
+
+ export RUMP_SERVER=$CLIENT
+ atf_ifconfig pppoe0 down
+ export RUMP_SERVER=$SERVER
+ wait_for_disconnected
+
+ # ipcp & ipv6cp are enabled by default
+ export RUMP_SERVER=$CLIENT
+ atf_check -s exit:0 -o match:'ipcp: enable' \
+ -x "$HIJACKING pppoectl pppoe0"
+ atf_check -s exit:0 -o match:'ipv6cp: enable' \
+ -x "$HIJACKING pppoectl pppoe0"
+
+ # ipcp enable & ipv6cp disable
+ atf_pppoectl pppoe0 noipv6cp
+ atf_ifconfig pppoe0 up
+ wait_for_opened "IPCP"
+ atf_check -s exit:0 -o match:'IPv6CP state: initial' \
+ -x "$HIJACKING pppoectl -dd pppoe0"
+
+ atf_ifconfig pppoe0 down
+ export RUMP_SERVER=$SERVER
+ wait_for_disconnected
+
+ # ipcp disable & ipv6cp enable
+ export RUMP_SERVER=$CLIENT
+ atf_pppoectl pppoe0 noipcp ipv6cp
+ atf_ifconfig pppoe0 up
+ wait_for_opened "IPv6CP"
+ atf_check -s exit:0 -o match:'IPCP state: initial' \
+ -x "$HIJACKING pppoectl -dd pppoe0"
}
pppoe_params_cleanup()
Home |
Main Index |
Thread Index |
Old Index