Skip to content

Commit 22fc4a9

Browse files
committed
tst_net.sh: Add more doc
Link: https://lore.kernel.org/ltp/20250117135539.773036-2-pvorel@suse.cz/ Signed-off-by: Petr Vorel <pvorel@suse.cz>
1 parent 89d95c6 commit 22fc4a9

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

testcases/lib/tst_net.sh

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,29 @@ tst_net_usage()
4242
if [ -n "$TST_USAGE_CALLER" ]; then
4343
$TST_USAGE_CALLER
4444
else
45-
echo "Usage: $0 [-6]"
46-
echo "OPTIONS"
45+
cat << EOF
46+
Usage: $0 [-6]
47+
48+
OPTIONS (network tests only)
49+
----------------------------
50+
EOF
4751
fi
48-
echo "-6 IPv6 tests"
52+
53+
cat << EOF
54+
-6 IPv6 tests
55+
56+
Environment Variables (network tests only)
57+
------------------------------------------
58+
TST_NET_RHOST_RUN_DEBUG=1
59+
Print commands used by tst_rhost_run()
60+
61+
LTP_NET_FEATURES_IGNORE_PERFORMANCE_FAILURE=1
62+
Ignore performance failure and test only the network functionality in tests
63+
which use tst_netload_compare().
64+
65+
OPTIONS
66+
-------
67+
EOF
4968
}
5069

5170
tst_net_remote_tmpdir()

0 commit comments

Comments
 (0)