Skip to contentSkip to conversation

selftests: net: add tests for PPP

PATCH Superseded Qingfang Deng 2 participants 2 messages Mar 27 – Mar 28

Subsystems (4)

v6 of 7 Superseded Latest is v7 →

lore
Share & tools
lore
#0 lore raw

PATCH v6 1/1 selftests: net: add tests for PPP

Add ping and iperf3 tests for ppp_async.c and pppoe.c.

---
v6: fix SC2329 scope
https://lore.kernel.org/netdev/[email protected]/

 MAINTAINERS                                   |  1 +
 tools/testing/selftests/Makefile              |  1 +
 tools/testing/selftests/net/ppp/Makefile      | 15 +++++++
 tools/testing/selftests/net/ppp/config        |  9 ++++
 tools/testing/selftests/net/ppp/ppp_async.sh  | 44 +++++++++++++++++++
 tools/testing/selftests/net/ppp/ppp_common.sh | 44 +++++++++++++++++++
 .../selftests/net/ppp/pppoe-server-options    |  2 +
 tools/testing/selftests/net/ppp/pppoe.sh      | 41 +++++++++++++++++
 8 files changed, 157 insertions(+)
 create mode 100644 tools/testing/selftests/net/ppp/Makefile
 create mode 100644 tools/testing/selftests/net/ppp/config
 create mode 100755 tools/testing/selftests/net/ppp/ppp_async.sh
 create mode 100644 tools/testing/selftests/net/ppp/ppp_common.sh
 create mode 100644 tools/testing/selftests/net/ppp/pppoe-server-options
 create mode 100755 tools/testing/selftests/net/ppp/pppoe.sh
MAINTAINERS +1 -0
index 7a2ffd9d37d5..b922e154b9e7 100644
@@ -21080,6 +21080,7 @@ PPP PROTOCOL DRIVERS AND COMPRESSORS
 L:	[email protected]
 S:	Orphan
 F:	drivers/net/ppp/ppp_*
+F:	tools/testing/selftests/net/ppp/
 
 PPS SUPPORT
 M:	Rodolfo Giometti <[email protected]>
tools/testing/selftests/Makefile +1 -0
index 450f13ba4cca..65f84e8a0cf0 100644
@@ -78,6 +78,7 @@ TARGETS += net/netfilter
 TARGETS += net/openvswitch
 TARGETS += net/ovpn
 TARGETS += net/packetdrill
+TARGETS += net/ppp
 TARGETS += net/rds
 TARGETS += net/tcp_ao
 TARGETS += nolibc
tools/testing/selftests/net/ppp/Makefile new file +15 -0
new file mode 100644
index 000000000000..b39b0abadde6
@@ -0,0 +1,15 @@
+# SPDX-License-Identifier: GPL-2.0
+
+top_srcdir = ../../../../..
+
+TEST_PROGS := \
+	ppp_async.sh \
+	pppoe.sh \
+# end of TEST_PROGS
+
+TEST_FILES := \
+	ppp_common.sh \
+	pppoe-server-options \
+# end of TEST_FILES
+
+include ../../lib.mk
tools/testing/selftests/net/ppp/config new file +9 -0
new file mode 100644
index 000000000000..b45d25c5b970
@@ -0,0 +1,9 @@
+CONFIG_IPV6=y
+CONFIG_PACKET=y
+CONFIG_PPP=m
+CONFIG_PPP_ASYNC=m
+CONFIG_PPP_BSDCOMP=m
+CONFIG_PPP_DEFLATE=m
+CONFIG_PPPOE=m
+CONFIG_PPPOE_HASH_BITS_4=y
+CONFIG_VETH=y
tools/testing/selftests/net/ppp/ppp_async.sh new file +44 -0

44 lines not on this page · raw message

tools/testing/selftests/net/ppp/ppp_common.sh new file +44 -0

44 lines not on this page · raw message

tools/testing/selftests/net/ppp/pppoe-server-options new file +2 -0
new file mode 100644
index 000000000000..66c8c9d319e9
@@ -0,0 +1,2 @@
+noauth
+noipdefault
tools/testing/selftests/net/ppp/pppoe.sh new file +41 -0

41 lines not on this page · raw message

Signature · 1 line
2.43.0