Skip to contentSkip to conversation

network: run network tests from network.sh

RFC PATCH New Alexey Kodanev 2 participants 6 messages May 10, 2016 – May 16, 2016

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/3 network: run network tests from network.sh

* include network options from both networktests.sh and networkstress.sh
* invoke ltp-pan inside network.sh
* merge tcp_cmds_additions to tcp_cmds
* remove not used tcp_cmds_(no)expect runtest files

All network tests can be run from a single script:
e.g. to run 'tcp_cmds' test group

ENV_VARS ./network.sh -t

Also it is possible to define your own runtest file with '-f' option:

ENV_VARS ./network.sh -f runtest_file

---
 runtest/tcp_cmds       |    3 ++
 testscripts/network.sh |   82 ++++++++++++++++++++++++++++++++++++++++++++---
 2 files changed, 79 insertions(+), 6 deletions(-)
runtest/tcp_cmds +3 -0
index 6c3ace1..466718b 100644
@@ -21,3 +21,6 @@ telnet telnet01
 iptables iptables_tests.sh
 dhcpd dhcpd_tests.sh
 dnsmasq dnsmasq_tests.sh
+iproute ip_tests.sh
+traceroute traceroute_tests.sh
+xinetd xinetd_tests.sh
testscripts/network.sh +76 -6

91 lines not on this page · raw message

Signature · 1 line
1.7.1
#1 lore raw

RFC PATCH 2/3 network: remove outdated network runtests and scripts

---
 runtest/network_stress.selected |  133 ---------
 runtest/network_stress.whole    |  563 ---------------------------------------
 runtest/tcp_cmds_addition       |    7 -
 runtest/tcp_cmds_expect         |    8 -
 runtest/tcp_cmds_noexpect       |   18 --
 testscripts/networkstress.sh    |  104 -------
 testscripts/networktests.sh     |  116 --------
 7 files changed, 0 insertions(+), 949 deletions(-)
 delete mode 100644 runtest/network_stress.selected
 delete mode 100644 runtest/network_stress.whole
 delete mode 100644 runtest/tcp_cmds_addition
 delete mode 100644 runtest/tcp_cmds_expect
 delete mode 100644 runtest/tcp_cmds_noexpect
 delete mode 100755 testscripts/networkstress.sh
 delete mode 100755 testscripts/networktests.sh
runtest/network_stress.selected deleted +0 -133
deleted file mode 100644
index 1445ec1..0000000
@@ -1,133 +0,0 @@
-#
-# This command list is the selected network stress testcases
-# `network_stress.whole' has the whole list of network stress testcasses
-#
-
-#
-# Stress test for interface
-#
-
-if4-updown  if4-updown
-if4-addr-change if4-addr-change
-if4-alias-adddel  if4-alias-adddel
-if4-alias-addlarge  if4-alias-addlarge
-if4-route-adddel  if4-route-adddel
-if4-route-addlarge  if4-route-addlarge
-if4-mtu-change	if4-mtu-change
-
-if6-updown  if6-updown
-if6-addr-adddel	if6-addr-adddel
-if6-addr-addlarge if6-addr-addlarge
-if6-route-adddel  if6-route-adddel
-if6-route-addlarge if6-route-addlarge
-if6-mtu-change	if6-mtu-change
-
-
-#
-# Stress test for TCP/IP protocol stack (icmp, udp, tcp)
-#
-
-# ICMP
-icmp4-uni-basic01 icmp4-uni-basic01
-icmp4-uni-basic02 icmp4-uni-basic02
-icmp4-uni-basic03 icmp4-uni-basic03
-icmp4-uni-basic04 icmp4-uni-basic04
-icmp4-uni-basic05 icmp4-uni-basic05
-icmp4-uni-basic06 icmp4-uni-basic06
-icmp4-uni-basic07 icmp4-uni-basic07
-
-icmp6-uni-basic01 icmp6-uni-basic01
-icmp6-uni-basic02 icmp6-uni-basic02
-icmp6-uni-basic03 icmp6-uni-basic03
-icmp6-uni-basic04 icmp6-uni-basic04
-icmp6-uni-basic05 icmp6-uni-basic05
-icmp6-uni-basic06 icmp6-uni-basic06
-icmp6-uni-basic07 icmp6-uni-basic07
-
-# UDP
-udp4-uni-basic01 udp4-uni-basic01
-
-udp6-uni-basic01 udp6-uni-basic01
-
-udp4-multi-diffport01 udp4-multi-diffport01
-
-udp6-multi-diffport01 udp6-multi-diffport01
-
-# TCP
-tcp4-uni-basic01 tcp4-uni-basic01
-tcp4-uni-basic08 tcp4-uni-basic08
-
-tcp6-uni-basic01 tcp6-uni-basic01
-tcp6-uni-basic08 tcp6-uni-basic08
-
-tcp4-uni-smallsend01 tcp4-uni-smallsend01
-tcp4-uni-smallsend08 tcp4-uni-smallsend08
-
-tcp6-uni-smallsend01 tcp6-uni-smallsend01
-tcp6-uni-smallsend08 tcp6-uni-smallsend08
-
-tcp4-uni-winscale01 tcp4-uni-winscale01
-tcp4-uni-winscale08 tcp4-uni-winscale08
-
-tcp6-uni-winscale01 tcp6-uni-winscale01
-tcp6-uni-winscale08 tcp6-uni-winscale08
-
-tcp4-uni-tso01 tcp4-uni-tso01
-tcp4-uni-tso08 tcp4-uni-tso08
-
-tcp6-uni-tso01 tcp6-uni-tso01
-tcp6-uni-tso08 tcp6-uni-tso08
-
-tcp4-uni-pktlossdup01 tcp4-uni-pktlossdup01
-tcp4-uni-pktlossdup08 tcp4-uni-pktlossdup08
-
-tcp6-uni-pktlossdup01 tcp6-uni-pktlossdup01
-tcp6-uni-pktlossdup08 tcp6-uni-pktlossdup08
-
-tcp4-uni-dsackoff01 tcp4-uni-dsackoff01
-tcp4-uni-dsackoff08 tcp4-uni-dsackoff08
-
-tcp6-uni-dsackoff01 tcp6-uni-dsackoff01
-tcp6-uni-dsackoff08 tcp6-uni-dsackoff08
-
-tcp4-uni-sackoff01 tcp4-uni-sackoff01
-tcp4-uni-sackoff08 tcp4-uni-sackoff08
-
-tcp6-uni-sackoff01 tcp6-uni-sackoff01
-tcp6-uni-sackoff08 tcp6-uni-sackoff08
-
-tcp4-multi-sameport01 tcp4-multi-sameport01
-tcp4-multi-sameport08 tcp4-multi-sameport08
-
-tcp6-multi-sameport01 tcp6-multi-sameport01
-tcp6-multi-sameport08 tcp6-multi-sameport08
-
-tcp4-multi-diffport01 tcp4-multi-diffport01
-tcp4-multi-diffport08 tcp4-multi-diffport08
-
-tcp6-multi-diffport01 tcp6-multi-diffport01
-tcp6-multi-diffport08 tcp6-multi-diffport08
-
-
-#
-# Stress test for major application protocol (ssh, dns, http, ftp)
-#
-
-# ssh
-ssh4-stress ssh4-stress
-ssh6-stress ssh6-stress
-
-# dns
-dns4-stress dns4-stress
-dns6-stress dns6-stress
-
-# http
-http4-stress http4-stress
-http6-stress http6-stress
-
-# ftp
-ftp4-download-stress ftp4-download-stress
-ftp6-download-stress ftp6-download-stress
-
-ftp4-upload-stress ftp4-upload-stress
-ftp6-upload-stress ftp6-upload-stress
runtest/network_stress.whole deleted +0 -563

563 lines not on this page · raw message

runtest/tcp_cmds_addition deleted +0 -7
deleted file mode 100644
index 432cfca..0000000
@@ -1,7 +0,0 @@
-#DESCRIPTION: addtional TCP/IP commands tests
-# The tests described in tcp_cmds are being in the default tests long time
-# New tests for TCP/IP should be in this command file
-#
-iproute ip_tests.sh
-traceroute traceroute_tests.sh
-xinetd xinetd_tests.sh
runtest/tcp_cmds_expect deleted +0 -8
deleted file mode 100644
index 760cdb8..0000000
@@ -1,8 +0,0 @@
-#DESCRIPTION:TCP/IP commands tests that require expect
-#
-# PLEASE READ THE README FILE IN /tcp_cmds BEFORE RUNNING THESE.
-#
-rlogin rlogin01
-telnet telnet01
-iptables iptables_tests.sh
-dhcpd dhcpd_tests.sh
runtest/tcp_cmds_noexpect deleted +0 -18
deleted file mode 100644
index 8e47217..0000000
@@ -1,18 +0,0 @@
-#DESCRIPTION:TCP/IP commands tests that do not require expect
-#
-# PLEASE READ THE README FILE IN /tcp_cmds BEFORE RUNNING THESE.
-#
-arp arp01
-echo echo01
-finger finger01
-ftp ftp01
-host host01
-netstat netstat01
-perf_lan perf_lan
-ping ping01
-rcp rcp01
-rdist rdist01
-rsh rsh01
-rwho rwho01
-sendfile sendfile01
-tcpdump tcpdump01
testscripts/networkstress.sh deleted +0 -104

104 lines not on this page · raw message

testscripts/networktests.sh deleted +0 -116

116 lines not on this page · raw message

Signature · 1 line
1.7.1
#2 lore raw

RFC PATCH 3/3 network: rename runtest files, use 'net.' & 'net_stress.' prefix

In reply to Alexey Kodanev
---
 runtest/ipv6                     |    6 -
 runtest/ipv6_lib                 |    7 -
 runtest/multicast                |    8 -
 runtest/net.features             |   36 ++++
 runtest/net.ipv6                 |    6 +
 runtest/net.ipv6_lib             |    7 +
 runtest/net.multicast            |    8 +
 runtest/net.nfs                  |   33 ++++
 runtest/net.rpc                  |    8 +
 runtest/net.sctp                 |   43 +++++
 runtest/net.tcp_cmds             |   26 +++
 runtest/net_stress.appl          |   18 ++
 runtest/net_stress.broken_ip     |   17 ++
 runtest/net_stress.interfaces    |   19 +++
 runtest/net_stress.ipsec_icmp    |   69 ++++++++
 runtest/net_stress.ipsec_tcp     |  333 ++++++++++++++++++++++++++++++++++++++
 runtest/net_stress.ipsec_udp     |   67 ++++++++
 runtest/net_stress.multicast     |   29 ++++
 runtest/net_stress.route         |   17 ++
 runtest/network_stress.appl      |   18 --
 runtest/network_stress.broken_ip |   17 --
 runtest/network_stress.features  |   36 ----
 runtest/network_stress.icmp      |   69 --------
 runtest/network_stress.interface |   19 ---
 runtest/network_stress.multicast |   29 ----
 runtest/network_stress.route     |   17 --
 runtest/network_stress.tcp       |  333 --------------------------------------
 runtest/network_stress.udp       |   67 --------
 runtest/nfs                      |   33 ----
 runtest/rpc                      |    8 -
 runtest/sctp                     |   43 -----
 runtest/tcp_cmds                 |   26 ---
 scenario_groups/default          |    2 +-
 scenario_groups/network          |    8 +-
 testscripts/network.sh           |   30 ++--
 35 files changed, 756 insertions(+), 756 deletions(-)
 delete mode 100644 runtest/ipv6
 delete mode 100644 runtest/ipv6_lib
 delete mode 100644 runtest/multicast
 create mode 100644 runtest/net.features
 create mode 100644 runtest/net.ipv6
 create mode 100644 runtest/net.ipv6_lib
 create mode 100644 runtest/net.multicast
 create mode 100644 runtest/net.nfs
 create mode 100644 runtest/net.rpc
 create mode 100644 runtest/net.sctp
 create mode 100644 runtest/net.tcp_cmds
 create mode 100644 runtest/net_stress.appl
 create mode 100644 runtest/net_stress.broken_ip
 create mode 100644 runtest/net_stress.interfaces
 create mode 100644 runtest/net_stress.ipsec_icmp
 create mode 100644 runtest/net_stress.ipsec_tcp
 create mode 100644 runtest/net_stress.ipsec_udp
 create mode 100644 runtest/net_stress.multicast
 create mode 100644 runtest/net_stress.route
 delete mode 100644 runtest/network_stress.appl
 delete mode 100644 runtest/network_stress.broken_ip
 delete mode 100644 runtest/network_stress.features
 delete mode 100644 runtest/network_stress.icmp
 delete mode 100644 runtest/network_stress.interface
 delete mode 100644 runtest/network_stress.multicast
 delete mode 100644 runtest/network_stress.route
 delete mode 100644 runtest/network_stress.tcp
 delete mode 100644 runtest/network_stress.udp
 delete mode 100644 runtest/nfs
 delete mode 100644 runtest/rpc
 delete mode 100644 runtest/sctp
 delete mode 100644 runtest/tcp_cmds
runtest/ipv6 deleted +0 -6
deleted file mode 100644
index f910684..0000000
@@ -1,6 +0,0 @@
-#DESCRIPTION:IPV6 related tests
-ping601 ping01 -6
-sendfile601 sendfile01 -6
-tcpdump601 tcpdump01 -6
-dhcpd6 dhcpd_tests.sh -6
-dnsmasq6 dnsmasq_tests.sh -6
runtest/ipv6_lib deleted +0 -7
deleted file mode 100644
index 636232b..0000000
@@ -1,7 +0,0 @@
-#DESCRIPTION:IPV6 related tests
-in6_01 in6_01
-in6_02 in6_02
-getaddrinfo_01 getaddrinfo_01
-asapi_01 asapi_01
-asapi_02 asapi_02
-asapi_03 asapi_03
runtest/multicast deleted +0 -8
deleted file mode 100644
index 44c384a..0000000
@@ -1,8 +0,0 @@
-#DESCRIPTION:Multicast networking tests
-#
-# PLEASE READ THE README FILE IN /multicast BEFORE RUNNING THESE.
-#
-mc_cmds mc_cmds
-mc_commo mc_commo
-mc_member mc_member
-mc_opts mc_opts
runtest/net.features new file +36 -0
new file mode 100644
index 0000000..bb907e5
@@ -0,0 +1,36 @@
+#
+# Stress tests for various network features
+#
+
+busy_poll01 busy_poll01.sh
+busy_poll01_ipv6 busy_poll01.sh -6
+
+busy_poll02 busy_poll02.sh
+busy_poll02_ipv6 busy_poll02.sh -6
+
+tcp_fastopen tcp_fastopen_run.sh
+tcp_fastopen6 tcp_fastopen_run.sh -6
+
+vxlan01 vxlan01.sh
+vxlan02 vxlan02.sh
+
+vxlan_multi_03 vxlan03.sh -d multi
+vxlan_uni_03 vxlan03.sh -d uni
+
+vxlan_ipv6_multi_03 vxlan03.sh -6 -d multi
+vxlan_ipv6_uni_03 vxlan03.sh -6 -d uni
+
+vlan01 vlan01.sh
+vlan02 vlan02.sh
+vlan03 vlan03.sh
+
+macvlan01 macvlan01.sh
+macvtap01 macvtap01.sh
+
+ipvlan01 ipvlan01.sh
+
+gre_ipv4_01 gre01.sh
+gre_ipv6_01 gre01.sh -6
+
+dctcp_ipv4_01 dctcp01.sh
+dctcp_ipv6_01 dctcp01.sh -6
runtest/net.ipv6 new file +6 -0
new file mode 100644
index 0000000..f910684
@@ -0,0 +1,6 @@
+#DESCRIPTION:IPV6 related tests
+ping601 ping01 -6
+sendfile601 sendfile01 -6
+tcpdump601 tcpdump01 -6
+dhcpd6 dhcpd_tests.sh -6
+dnsmasq6 dnsmasq_tests.sh -6
runtest/net.ipv6_lib new file +7 -0
new file mode 100644
index 0000000..636232b
@@ -0,0 +1,7 @@
+#DESCRIPTION:IPV6 related tests
+in6_01 in6_01
+in6_02 in6_02
+getaddrinfo_01 getaddrinfo_01
+asapi_01 asapi_01
+asapi_02 asapi_02
+asapi_03 asapi_03
runtest/net.multicast new file +8 -0
new file mode 100644
index 0000000..44c384a
@@ -0,0 +1,8 @@
+#DESCRIPTION:Multicast networking tests
+#
+# PLEASE READ THE README FILE IN /multicast BEFORE RUNNING THESE.
+#
+mc_cmds mc_cmds
+mc_commo mc_commo
+mc_member mc_member
+mc_opts mc_opts
runtest/net.nfs new file +33 -0
new file mode 100644
index 0000000..43cf504
@@ -0,0 +1,33 @@
+#DESCRIPTION:Network filesystem stress
+#
+# PLEASE READ THE README FILE IN /nfs BEFORE RUNNING THESE.
+#
+nfs3_01 export VERSION=3 SOCKET_TYPE=udp; nfs01
+nfs4_01 export VERSION=4 SOCKET_TYPE=tcp; nfs01
+nfs3_ipv6_01 export VERSION=3 SOCKET_TYPE=udp; nfs01 -6
+nfs4_ipv6_01 export VERSION=4 SOCKET_TYPE=tcp; nfs01 -6
+
+nfs3_02 export VERSION=3 SOCKET_TYPE=udp; nfs02
+nfs4_02 export VERSION=4 SOCKET_TYPE=tcp; nfs02
+nfs3_ipv6_02 export VERSION=3 SOCKET_TYPE=udp; nfs02 -6
+nfs4_ipv6_02 export VERSION=4 SOCKET_TYPE=tcp; nfs02 -6
+
+nfs3_03 export VERSION=3 SOCKET_TYPE=udp; nfs03
+nfs4_03 export VERSION=4 SOCKET_TYPE=tcp; nfs03
+nfs3_ipv6_03 export VERSION=3 SOCKET_TYPE=udp; nfs03 -6
+nfs4_ipv6_03 export VERSION=4 SOCKET_TYPE=tcp; nfs03 -6
+
+nfs3_04 export VERSION=3 SOCKET_TYPE=udp; nfs04
+nfs4_04 export VERSION=4 SOCKET_TYPE=tcp; nfs04
+nfs3_ipv6_04 export VERSION=3 SOCKET_TYPE=udp; nfs04 -6
+nfs4_ipv6_04 export VERSION=4 SOCKET_TYPE=tcp; nfs04 -6
+
+nfs3_05 export VERSION=3 SOCKET_TYPE=udp; nfs05
+nfs4_05 export VERSION=4 SOCKET_TYPE=tcp; nfs05
+nfs3_ipv6_05 export VERSION=3 SOCKET_TYPE=udp; nfs05 -6
+nfs4_ipv6_05 export VERSION=4 SOCKET_TYPE=tcp; nfs05 -6
+
+nfslock01 export VERSION; TCbin=$LTPROOT/testcases/bin nfslock01
+
+nfsstat01 export VERSION; TCbin=$LTPROOT/testcases/bin nfsstat01
+nfsx-linux export VERSION SOCKET_TYPE; TCbin=$LTPROOT/testcases/bin fsx.sh
runtest/net.rpc new file +8 -0
new file mode 100644
index 0000000..b65268c
@@ -0,0 +1,8 @@
+#DESCRIPTION:Remote Procedure Call
+#
+# PLEASE READ THE README FILE IN /rpc BEFORE RUNNING THESE.
+#
+rpc01 rpc01
+rpcinfo rpcinfo01
+rup rup01
+rusers rusers01
runtest/net.sctp new file +43 -0

43 lines not on this page · raw message

runtest/net.tcp_cmds new file +26 -0
new file mode 100644
index 0000000..466718b
@@ -0,0 +1,26 @@
+#DESCRIPTION:TCP/IP commands tests
+#
+# PLEASE READ THE README FILE IN /tcp_cmds BEFORE RUNNING THESE.
+#
+arp arp01
+echo export TCbin=$LTPROOT/testcases/network/tcp_cmds/echo; echo01
+finger finger01
+ftp export TCbin=$LTPROOT/testcases/network/tcp_cmds/ftp; ftp01
+host host01
+netstat netstat01
+perf_lan export TCbin=$LTPROOT/testcases/network/tcp_cmds/perf_lan; perf_lan
+ping export LTPROOT; ping01
+rcp export TCbin=$LTPROOT/testcases/network/tcp_cmds/rcp; rcp01
+rdist export TCbin=$LTPROOT/testcases/network/tcp_cmds/rdist; rdist01
+rlogin rlogin01
+rsh rsh01
+rwho rwho01
+sendfile export TCbin=$LTPROOT/testcases/network/tcp_cmds/sendfile; sendfile01
+tcpdump tcpdump01
+telnet telnet01
+iptables iptables_tests.sh
+dhcpd dhcpd_tests.sh
+dnsmasq dnsmasq_tests.sh
+iproute ip_tests.sh
+traceroute traceroute_tests.sh
+xinetd xinetd_tests.sh
runtest/net_stress.appl new file +18 -0
new file mode 100644
index 0000000..c06af71
@@ -0,0 +1,18 @@
+#
+# Stress test for major application protocol (ssh, dns, http, ftp)
+#
+
+ssh4-stress ssh-stress
+ssh6-stress ssh-stress -6
+
+dns4-stress dns-stress
+dns6-stress dns-stress -6
+
+http4-stress http-stress
+http6-stress http-stress -6
+
+ftp4-download-stress ftp-download-stress
+ftp6-download-stress ftp-download-stress -6
+
+ftp4-upload-stress ftp-upload-stress
+ftp6-upload-stress ftp-upload-stress -6
runtest/net_stress.broken_ip new file +17 -0
new file mode 100644
index 0000000..c037f3e
@@ -0,0 +1,17 @@
+#
+# Stress test for TCP/IP protocol stack
+#
+
+# Broken IP packet
+broken_ip4-version broken_ip4-version
+broken_ip4-ihl broken_ip4-ihl
+broken_ip4-totlen broken_ip4-totlen
+broken_ip4-fragment broken_ip4-fragment
+broken_ip4-protcol broken_ip4-protcol
+broken_ip4-checksum broken_ip4-checksum
+broken_ip4-dstaddr broken_ip4-dstaddr
+
+broken_ip6-dstaddr broken_ip6-dstaddr
+broken_ip6-nexthdr broken_ip6-nexthdr
+broken_ip6-plen broken_ip6-plen
+broken_ip6-version broken_ip6-version
runtest/net_stress.interfaces new file +19 -0
new file mode 100644
index 0000000..97e9ce3
@@ -0,0 +1,19 @@
+#
+# Stress test for interface
+#
+
+if4-addr-change if4-addr-change
+
+if4-updown if-updown
+if4-addr-adddel if-addr-adddel
+if4-addr-addlarge if-addr-addlarge
+if4-route-adddel if-route-adddel
+if4-route-addlarge if-route-addlarge
+if4-mtu-change if-mtu-change
+
+if6-updown if-updown -6
+if6-addr-adddel if-addr-adddel -6
+if6-addr-addlarge if-addr-addlarge -6
+if6-route-adddel if-route-adddel -6
+if6-route-addlarge if-route-addlarge -6
+if6-mtu-change if-mtu-change -6
runtest/net_stress.ipsec_icmp new file +69 -0

69 lines not on this page · raw message

runtest/net_stress.ipsec_tcp new file +333 -0

333 lines not on this page · raw message

runtest/net_stress.ipsec_udp new file +67 -0

67 lines not on this page · raw message

runtest/net_stress.multicast new file +29 -0
new file mode 100644
index 0000000..445b08f
@@ -0,0 +1,29 @@
+#
+# Stress test for TCP/IP protocol stack (Multicast)
+#
+
+mcast4-grpope01 mcast4-grpope01
+mcast4-grpope02 mcast4-grpope02
+mcast4-grpope03 mcast4-grpope03
+mcast4-grpope04 mcast4-grpope04
+mcast4-pktfld01 mcast4-pktfld01
+mcast4-pktfld02 mcast4-pktfld02
+mcast4-queryfld01 mcast4-queryfld01
+mcast4-queryfld02 mcast4-queryfld02
+mcast4-queryfld03 mcast4-queryfld03
+mcast4-queryfld04 mcast4-queryfld04
+mcast4-queryfld05 mcast4-queryfld05
+mcast4-queryfld06 mcast4-queryfld06
+
+mcast6-grpope01 mcast6-grpope01
+mcast6-grpope02 mcast6-grpope02
+mcast6-grpope03 mcast6-grpope03
+mcast6-grpope04 mcast6-grpope04
+mcast6-pktfld01 mcast6-pktfld01
+mcast6-pktfld02 mcast6-pktfld02
+mcast6-queryfld01 mcast6-queryfld01
+mcast6-queryfld02 mcast6-queryfld02
+mcast6-queryfld03 mcast6-queryfld03
+mcast6-queryfld04 mcast6-queryfld04
+mcast6-queryfld05 mcast6-queryfld05
+mcast6-queryfld06 mcast6-queryfld06
runtest/net_stress.route new file +17 -0
new file mode 100644
index 0000000..00ce52f
@@ -0,0 +1,17 @@
+#
+# Stress test for routing table
+#
+
+route4-change-dst route4-change-dst
+route4-change-gw route4-change-gw
+route4-change-if route4-change-if
+route4-redirect route4-redirect
+route4-ifdown route4-ifdown
+route4-rmmod route4-rmmod
+
+route6-change-dst route6-change-dst
+route6-change-gw route6-change-gw
+route6-change-if route6-change-if
+route6-redirect route6-redirect
+route6-ifdown route6-ifdown
+route6-rmmod route6-rmmod
runtest/network_stress.appl deleted +0 -18
deleted file mode 100644
index c06af71..0000000
@@ -1,18 +0,0 @@
-#
-# Stress test for major application protocol (ssh, dns, http, ftp)
-#
-
-ssh4-stress ssh-stress
-ssh6-stress ssh-stress -6
-
-dns4-stress dns-stress
-dns6-stress dns-stress -6
-
-http4-stress http-stress
-http6-stress http-stress -6
-
-ftp4-download-stress ftp-download-stress
-ftp6-download-stress ftp-download-stress -6
-
-ftp4-upload-stress ftp-upload-stress
-ftp6-upload-stress ftp-upload-stress -6
runtest/network_stress.broken_ip deleted +0 -17
deleted file mode 100644
index c037f3e..0000000
@@ -1,17 +0,0 @@
-#
-# Stress test for TCP/IP protocol stack
-#
-
-# Broken IP packet
-broken_ip4-version broken_ip4-version
-broken_ip4-ihl broken_ip4-ihl
-broken_ip4-totlen broken_ip4-totlen
-broken_ip4-fragment broken_ip4-fragment
-broken_ip4-protcol broken_ip4-protcol
-broken_ip4-checksum broken_ip4-checksum
-broken_ip4-dstaddr broken_ip4-dstaddr
-
-broken_ip6-dstaddr broken_ip6-dstaddr
-broken_ip6-nexthdr broken_ip6-nexthdr
-broken_ip6-plen broken_ip6-plen
-broken_ip6-version broken_ip6-version
runtest/network_stress.features deleted +0 -36
deleted file mode 100644
index bb907e5..0000000
@@ -1,36 +0,0 @@
-#
-# Stress tests for various network features
-#
-
-busy_poll01 busy_poll01.sh
-busy_poll01_ipv6 busy_poll01.sh -6
-
-busy_poll02 busy_poll02.sh
-busy_poll02_ipv6 busy_poll02.sh -6
-
-tcp_fastopen tcp_fastopen_run.sh
-tcp_fastopen6 tcp_fastopen_run.sh -6
-
-vxlan01 vxlan01.sh
-vxlan02 vxlan02.sh
-
-vxlan_multi_03 vxlan03.sh -d multi
-vxlan_uni_03 vxlan03.sh -d uni
-
-vxlan_ipv6_multi_03 vxlan03.sh -6 -d multi
-vxlan_ipv6_uni_03 vxlan03.sh -6 -d uni
-
-vlan01 vlan01.sh
-vlan02 vlan02.sh
-vlan03 vlan03.sh
-
-macvlan01 macvlan01.sh
-macvtap01 macvtap01.sh
-
-ipvlan01 ipvlan01.sh
-
-gre_ipv4_01 gre01.sh
-gre_ipv6_01 gre01.sh -6
-
-dctcp_ipv4_01 dctcp01.sh
-dctcp_ipv6_01 dctcp01.sh -6
runtest/network_stress.icmp deleted +0 -69

69 lines not on this page · raw message

runtest/network_stress.interface deleted +0 -19
deleted file mode 100644
index 97e9ce3..0000000
@@ -1,19 +0,0 @@
-#
-# Stress test for interface
-#
-
-if4-addr-change if4-addr-change
-
-if4-updown if-updown
-if4-addr-adddel if-addr-adddel
-if4-addr-addlarge if-addr-addlarge
-if4-route-adddel if-route-adddel
-if4-route-addlarge if-route-addlarge
-if4-mtu-change if-mtu-change
-
-if6-updown if-updown -6
-if6-addr-adddel if-addr-adddel -6
-if6-addr-addlarge if-addr-addlarge -6
-if6-route-adddel if-route-adddel -6
-if6-route-addlarge if-route-addlarge -6
-if6-mtu-change if-mtu-change -6
runtest/network_stress.multicast deleted +0 -29
deleted file mode 100644
index 445b08f..0000000
@@ -1,29 +0,0 @@
-#
-# Stress test for TCP/IP protocol stack (Multicast)
-#
-
-mcast4-grpope01 mcast4-grpope01
-mcast4-grpope02 mcast4-grpope02
-mcast4-grpope03 mcast4-grpope03
-mcast4-grpope04 mcast4-grpope04
-mcast4-pktfld01 mcast4-pktfld01
-mcast4-pktfld02 mcast4-pktfld02
-mcast4-queryfld01 mcast4-queryfld01
-mcast4-queryfld02 mcast4-queryfld02
-mcast4-queryfld03 mcast4-queryfld03
-mcast4-queryfld04 mcast4-queryfld04
-mcast4-queryfld05 mcast4-queryfld05
-mcast4-queryfld06 mcast4-queryfld06
-
-mcast6-grpope01 mcast6-grpope01
-mcast6-grpope02 mcast6-grpope02
-mcast6-grpope03 mcast6-grpope03
-mcast6-grpope04 mcast6-grpope04
-mcast6-pktfld01 mcast6-pktfld01
-mcast6-pktfld02 mcast6-pktfld02
-mcast6-queryfld01 mcast6-queryfld01
-mcast6-queryfld02 mcast6-queryfld02
-mcast6-queryfld03 mcast6-queryfld03
-mcast6-queryfld04 mcast6-queryfld04
-mcast6-queryfld05 mcast6-queryfld05
-mcast6-queryfld06 mcast6-queryfld06
runtest/network_stress.route deleted +0 -17
deleted file mode 100644
index 00ce52f..0000000
@@ -1,17 +0,0 @@
-#
-# Stress test for routing table
-#
-
-route4-change-dst route4-change-dst
-route4-change-gw route4-change-gw
-route4-change-if route4-change-if
-route4-redirect route4-redirect
-route4-ifdown route4-ifdown
-route4-rmmod route4-rmmod
-
-route6-change-dst route6-change-dst
-route6-change-gw route6-change-gw
-route6-change-if route6-change-if
-route6-redirect route6-redirect
-route6-ifdown route6-ifdown
-route6-rmmod route6-rmmod
runtest/network_stress.tcp deleted +0 -333

333 lines not on this page · raw message

runtest/network_stress.udp deleted +0 -67

67 lines not on this page · raw message

runtest/nfs deleted +0 -33
deleted file mode 100644
index 43cf504..0000000
@@ -1,33 +0,0 @@
-#DESCRIPTION:Network filesystem stress
-#
-# PLEASE READ THE README FILE IN /nfs BEFORE RUNNING THESE.
-#
-nfs3_01 export VERSION=3 SOCKET_TYPE=udp; nfs01
-nfs4_01 export VERSION=4 SOCKET_TYPE=tcp; nfs01
-nfs3_ipv6_01 export VERSION=3 SOCKET_TYPE=udp; nfs01 -6
-nfs4_ipv6_01 export VERSION=4 SOCKET_TYPE=tcp; nfs01 -6
-
-nfs3_02 export VERSION=3 SOCKET_TYPE=udp; nfs02
-nfs4_02 export VERSION=4 SOCKET_TYPE=tcp; nfs02
-nfs3_ipv6_02 export VERSION=3 SOCKET_TYPE=udp; nfs02 -6
-nfs4_ipv6_02 export VERSION=4 SOCKET_TYPE=tcp; nfs02 -6
-
-nfs3_03 export VERSION=3 SOCKET_TYPE=udp; nfs03
-nfs4_03 export VERSION=4 SOCKET_TYPE=tcp; nfs03
-nfs3_ipv6_03 export VERSION=3 SOCKET_TYPE=udp; nfs03 -6
-nfs4_ipv6_03 export VERSION=4 SOCKET_TYPE=tcp; nfs03 -6
-
-nfs3_04 export VERSION=3 SOCKET_TYPE=udp; nfs04
-nfs4_04 export VERSION=4 SOCKET_TYPE=tcp; nfs04
-nfs3_ipv6_04 export VERSION=3 SOCKET_TYPE=udp; nfs04 -6
-nfs4_ipv6_04 export VERSION=4 SOCKET_TYPE=tcp; nfs04 -6
-
-nfs3_05 export VERSION=3 SOCKET_TYPE=udp; nfs05
-nfs4_05 export VERSION=4 SOCKET_TYPE=tcp; nfs05
-nfs3_ipv6_05 export VERSION=3 SOCKET_TYPE=udp; nfs05 -6
-nfs4_ipv6_05 export VERSION=4 SOCKET_TYPE=tcp; nfs05 -6
-
-nfslock01 export VERSION; TCbin=$LTPROOT/testcases/bin nfslock01
-
-nfsstat01 export VERSION; TCbin=$LTPROOT/testcases/bin nfsstat01
-nfsx-linux export VERSION SOCKET_TYPE; TCbin=$LTPROOT/testcases/bin fsx.sh
runtest/rpc deleted +0 -8
deleted file mode 100644
index b65268c..0000000
@@ -1,8 +0,0 @@
-#DESCRIPTION:Remote Procedure Call
-#
-# PLEASE READ THE README FILE IN /rpc BEFORE RUNNING THESE.
-#
-rpc01 rpc01
-rpcinfo rpcinfo01
-rup rup01
-rusers rusers01
runtest/sctp deleted +0 -43

43 lines not on this page · raw message

runtest/tcp_cmds deleted +0 -26
deleted file mode 100644
index 466718b..0000000
@@ -1,26 +0,0 @@
-#DESCRIPTION:TCP/IP commands tests
-#
-# PLEASE READ THE README FILE IN /tcp_cmds BEFORE RUNNING THESE.
-#
-arp arp01
-echo export TCbin=$LTPROOT/testcases/network/tcp_cmds/echo; echo01
-finger finger01
-ftp export TCbin=$LTPROOT/testcases/network/tcp_cmds/ftp; ftp01
-host host01
-netstat netstat01
-perf_lan export TCbin=$LTPROOT/testcases/network/tcp_cmds/perf_lan; perf_lan
-ping export LTPROOT; ping01
-rcp export TCbin=$LTPROOT/testcases/network/tcp_cmds/rcp; rcp01
-rdist export TCbin=$LTPROOT/testcases/network/tcp_cmds/rdist; rdist01
-rlogin rlogin01
-rsh rsh01
-rwho rwho01
-sendfile export TCbin=$LTPROOT/testcases/network/tcp_cmds/sendfile; sendfile01
-tcpdump tcpdump01
-telnet telnet01
-iptables iptables_tests.sh
-dhcpd dhcpd_tests.sh
-dnsmasq dnsmasq_tests.sh
-iproute ip_tests.sh
-traceroute traceroute_tests.sh
-xinetd xinetd_tests.sh
scenario_groups/default +1 -1
index 5d1c521..0b625bb 100644
@@ -31,5 +31,5 @@ pipes
 dma_thread_diotest
 can
 cpuhotplug
-ipv6_lib
+net.ipv6_lib
 input
scenario_groups/network +4 -4
index 72a4e16..bf857b0 100644
@@ -1,4 +1,4 @@
-tcp_cmds
-multicast
-rpc
-nfs
+net.tcp_cmds
+net.multicast
+net.rpc
+net.nfs
testscripts/network.sh +15 -15
index f7f4f93..826507b 100755
@@ -107,21 +107,21 @@ TEST_CASES=
 while getopts 6mnrstaebiTURMFf:Vv OPTION
 do
 	case $OPTION in
-	6) TEST_CASES="$TEST_CASES ipv6 ipv6_lib";;
-	m) TEST_CASES="$TEST_CASES multicast" ;;
-	n) TEST_CASES="$TEST_CASES nfs" ;;
-	r) TEST_CASES="$TEST_CASES rpc" ;;
-	s) TEST_CASES="$TEST_CASES sctp" ;;
-	t) TEST_CASES="$TEST_CASES tcp_cmds" ;;
-	a) TEST_CASES="$TEST_CASES network_stress.appl";;
-	e) TEST_CASES="$TEST_CASES network_stress.interface";;
-	b) TEST_CASES="$TEST_CASES network_stress.broken_ip";;
-	i) TEST_CASES="$TEST_CASES network_stress.icmp";;
-	T) TEST_CASES="$TEST_CASES network_stress.tcp";;
-	U) TEST_CASES="$TEST_CASES network_stress.udp";;
-	R) TEST_CASES="$TEST_CASES network_stress.route";;
-	M) TEST_CASES="$TEST_CASES network_stress.multicast";;
-	F) TEST_CASES="$TEST_CASES network_stress.features";;
+	6) TEST_CASES="$TEST_CASES net.ipv6 net.ipv6_lib";;
+	m) TEST_CASES="$TEST_CASES net.multicast" ;;
+	n) TEST_CASES="$TEST_CASES net.nfs" ;;
+	r) TEST_CASES="$TEST_CASES net.rpc" ;;
+	s) TEST_CASES="$TEST_CASES net.sctp" ;;
+	t) TEST_CASES="$TEST_CASES net.tcp_cmds" ;;
+	a) TEST_CASES="$TEST_CASES net_stress.appl";;
+	e) TEST_CASES="$TEST_CASES net_stress.interface";;
+	b) TEST_CASES="$TEST_CASES net_stress.broken_ip";;
+	i) TEST_CASES="$TEST_CASES net_stress.ipsec_icmp";;
+	T) TEST_CASES="$TEST_CASES net_stress.ipsec_tcp";;
+	U) TEST_CASES="$TEST_CASES net_stress.ipsec_udp";;
+	R) TEST_CASES="$TEST_CASES net_stress.route";;
+	M) TEST_CASES="$TEST_CASES net_stress.multicast";;
+	F) TEST_CASES="$TEST_CASES net.features";;
 	f) TEST_CASES=${OPTARG} ;;
 	V|v) VERBOSE="yes";;
 	*) echo "Error: invalid option..."; exit 1 ;;
Signature · 1 line
1.7.1
#3 lore raw

RFC PATCH 1/3 network: run network tests from network.sh

In reply to Alexey Kodanev

Hi!

Quoted 5 lines

* include network options from both networktests.sh and networkstress.sh
* invoke ltp-pan inside network.sh
* merge tcp_cmds_additions to tcp_cmds
* remove not used tcp_cmds_(no)expect runtest files

Quoted 8 lines

All network tests can be run from a single script:
e.g. to run 'tcp_cmds' test group

ENV_VARS ./network.sh -t

Also it is possible to define your own runtest file with '-f' option:

ENV_VARS ./network.sh -f runtest_file

This does not say what is the reason for this change.

How is this better than runing runtest files from runltp?

You supposedly define a few variables in the script that starts the testcases rather than having a common script that is sourced at the start of the network testcases. Is there any other thing I'm missing?

Signature · 2 lines
Cyril Hrubis
[email protected]
#4 lore raw

RFC PATCH 1/3 network: run network tests from network.sh

Hi!

Quoted 7 lines

This does not say what is the reason for this change.

How is this better than runing runtest files from runltp?

You supposedly define a few variables in the script that starts the testcases rather than having a common script that is sourced at the start of the network testcases. Is there any other thing I'm missing?

Looking into the networkstress.sh and networktest.sh it starts ltp-pan itself as well. So this more or less copies the functionality from there to network.sh.

I would say that the defaults for variables should not be defined in the script that runs selected (subset of) tests. That is because it should be possible to run just the test script and expect it to have the same defaults as when it's executed via the script. Why don't we stick the defaults to test_net.sh and keep just the code that selects testcases to run and start ltp-pan in the network.sh?

Signature · 2 lines
Cyril Hrubis
[email protected]
#5 lore raw

RFC PATCH 1/3 network: run network tests from network.sh

Hi,

Quoted 11 lines · Cyril Hrubis

Hi!

Quoted 7 lines

This does not say what is the reason for this change.

How is this better than runing runtest files from runltp?

You supposedly define a few variables in the script that starts the testcases rather than having a common script that is sourced at the start of the network testcases. Is there any other thing I'm missing?

Looking into the networkstress.sh and networktest.sh it starts ltp-pan itself as well. So this more or less copies the functionality from there to network.sh.

Yeah, just making the one as I don't see the point of having two, almost equal, scripts.

Quoted 8 lines

I would say that the defaults for variables should not be defined in the script that runs selected (subset of) tests. That is because it should be possible to run just the test script and expect it to have the same defaults as when it's executed via the script. Why don't we stick the defaults to test_net.sh and keep just the code that selects testcases to run and start ltp-pan in the network.sh?

Agree, we can do that, there will be no difference when running them from network.sh, and it will be possible to run tests individually with already pre-defined default variables.

Thanks,
Alexey