You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hmz007 36ed224bac
Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a)
1 year ago
..
busy_poll Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a) 1 year ago
can Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a) 1 year ago
dccp Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a) 1 year ago
dhcp Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a) 1 year ago
iproute Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a) 1 year ago
iptables Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a) 1 year ago
lib6 Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a) 1 year ago
mpls Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a) 1 year ago
multicast Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a) 1 year ago
netstress Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a) 1 year ago
nfs Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a) 1 year ago
nfsv4 Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a) 1 year ago
packet Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a) 1 year ago
rpc Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a) 1 year ago
sctp Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a) 1 year ago
sockets Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a) 1 year ago
stress Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a) 1 year ago
tcp_cc Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a) 1 year ago
tcp_cmds Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a) 1 year ago
tcp_fastopen Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a) 1 year ago
traceroute Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a) 1 year ago
virt Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a) 1 year ago
xinetd Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a) 1 year ago
.gitignore Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a) 1 year ago
Makefile Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a) 1 year ago
README.md Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a) 1 year ago
generate.sh Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a) 1 year ago

README.md

LTP Network Tests

Single Host Configuration

It's the default configuration (if the RHOST environment variable is not defined). LTP adds ltp_ns network namespace and auto-configure veth pair according to LTP network environment variables.

Two Host Configuration

This setup requires the RHOST environment variable to be set properly and configured SSH access to a remote host.

The RHOST variable must be set to the hostname of the server (test management link) and public key setup or login without password is required.

SSH server needs to be configured to allow root login and use Public Key Authentication (PermitRootLogin yes and PubkeyAuthentication yes in /etc/ssh/sshd_config).

Some of the network stress tests which hasn't been ported to network API were designed to be tested with rsh via LTP_RSH environment variable. Now it's by default used ssh, for details see testcases/network/stress/README.

Server Services Configuration

Tests have various external dependencies, exit with TCONF when not installed. Some tests require additional setup.

FTP and telnet setup

FTP stress tests and telnet server tests require environment variables RHOST (remote machine), RUSER (remote user) and PASSWD (remote password). NOTE: RHOST will imply two host configuration for other tests.

If RUSER is set to root, either of these steps is required:

  • In /etc/ftpusers (or /etc/vsftpd.ftpusers), comment the line containing "root" string. This file lists all those users who are not given access to do ftp on the current system.

  • If you dont want to do the previous step, put following entry into /root/.netrc:

machine <remote_server_name>
login root
password <remote_root_password>

HTTP setup

HTTP stress tests require configured and running web server (Apache2, Nginx, etc.).

NFS setup

NFS tests require running NFS server, enable and start nfs-server.service (Debian/Ubuntu and openSUSE/SLES: nfs-kernel-server package, others: nfs-server package).

There is no detection whether service is running, test will simply fail without warning.

TI-RPC / Sun RPC setup

TI-RPC (or glibc legacy Sun RPC) tests require running rpcbind (or portmap on old distributions), enable and start rpcbind.service.

LTP setup

Install LTP testsuite (see INSTALL). In case of two hosts configuration, LTP needs to be installed the same exact location and LTPROOT and PATH environment variables set on both client and server machines. This is required because some tests expect to find server files in certain locations.

Example for the default prefix /opt/ltp:

export LTPROOT="/opt/ltp"; export PATH="$LTPROOT/testcases/bin:$PATH"

Running the tests

The network tests are executed by running the network.sh script:

TEST_VARS ./network.sh OPTIONS

Where

  • TEST_VARS - non-default network parameters
  • OPTIONS - test group(s), use -h to see available ones.

Default values for all LTP network parameters are set in testcases/lib/tst_net.sh. Network stress parameters are documented in testcases/network/stress/README.

Debugging

Both single and two host configurations support debugging via TST_NET_RHOST_RUN_DEBUG=1 environment variable.