Linux Test Project
 help / color / mirror / Atom feed
* [LTP] [RFC PATCH 0/4] testscripts: Remove outdated scripts (ltp-pan)
@ 2026-09-03 12:46 Petr Vorel
  2026-09-03 12:46 ` [LTP] [RFC PATCH 1/4] Remove testscripts/network.sh Petr Vorel
                   ` (5 more replies)
  0 siblings, 6 replies; 10+ messages in thread
From: Petr Vorel @ 2026-09-03 12:46 UTC (permalink / raw)
  To: ltp; +Cc: Tim Bird, Steffen Jaeckel, automated-testing

Hi all,

Steffen reported we still have scripts and doc mentioning ltp-pan.

These tests scripts should not be used by anybody as we have kirk.
Also, they are not working since ltp-pan removal anyway.

I also wonder if these controllers scripts should still have that ending
part, which wait for pid. (I'm not even commenting "echo helloworld >
myfifo").

I'd also prefer to remove realtime scripts:

testcases/realtime/Makefile
testcases/realtime/run.sh
testcases/realtime/scripts/Makefile
testcases/realtime/scripts/__init__.py
testcases/realtime/scripts/parser.py
testcases/realtime/scripts/run_c_files.sh
testcases/realtime/scripts/setenv.sh
testscripts/test_realtime.sh

Well I'd prefer to convert port pi_perf, prio-wake to rt-tests and
delete the whole testsuite.

https://github.com/linux-test-project/ltp/issues/1078#issuecomment-2212913818

NOTE: I already dared to remove outdated doc without a review:
https://github.com/linux-test-project/ltp/commit/e2a35f746e6c7893129f1d19eb20d15de0f33d75
https://github.com/linux-test-project/ltp/commit/252f56dcf371be59abd906654d9e77184a9239e4

Kind regards,
Petr


Petr Vorel (4):
  Remove testscripts/network.sh
  Remove testscripts/tpm_tools.sh
  Remove testscripts/ltp-aiodio.sh
  controllers: Remove obsolete references to ltp-pan

 .../cpuctl/run_cpuctl_stress_test.sh          |   2 +-
 .../controllers/cpuctl/run_cpuctl_test.sh     |   4 +-
 testscripts/ltp-aiodio.sh                     | 327 ------------------
 testscripts/network.sh                        | 118 -------
 testscripts/tpm_tools.sh                      | 173 ---------
 testscripts/yesenter.txt                      |   2 -
 6 files changed, 3 insertions(+), 623 deletions(-)
 delete mode 100755 testscripts/ltp-aiodio.sh
 delete mode 100755 testscripts/network.sh
 delete mode 100755 testscripts/tpm_tools.sh
 delete mode 100644 testscripts/yesenter.txt

-- 
2.55.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply	[flat|nested] 10+ messages in thread
* [LTP] [PATCH v2 1/4] Remove testscripts/network.sh
@ 2026-09-04  8:55 Petr Vorel
  2026-09-04  9:19 ` [LTP] " linuxtestproject.agent
  0 siblings, 1 reply; 10+ messages in thread
From: Petr Vorel @ 2026-09-04  8:55 UTC (permalink / raw)
  To: ltp; +Cc: Tim Bird, Steffen Jaeckel, automated-testing

Script was using ltp-pan (already removed), kirk should now be used.

Fixes: 5e5fd4a1ae ("pan: Remove")
Reported-by: Steffen Jaeckel <sjaeckel@suse.de>
Acked-by: Andrea Cervesato <andrea.cervesato@suse.com>
Acked-by: Avinesh Kumar <avinesh.kumar@suse.com>
Acked-by: Jan Stancek <jstancek@redhat.com>
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
Changes v1->v2:
* Remove network.sh from doc, mention kirk.

 testcases/network/README.md |  12 ++--
 testscripts/network.sh      | 118 ------------------------------------
 2 files changed, 7 insertions(+), 123 deletions(-)
 delete mode 100755 testscripts/network.sh

diff --git a/testcases/network/README.md b/testcases/network/README.md
index 2a8bd3d33c..d6f7ae03b0 100644
--- a/testcases/network/README.md
+++ b/testcases/network/README.md
@@ -54,14 +54,16 @@ export LTPROOT="/opt/ltp"; export PATH="$LTPROOT/testcases/bin:$PATH"
 ```
 
 ## Running the tests
-The network tests are executed by running the network.sh script:
+
+To run the network testcases, use the official LTP executor kirk:
+https://github.com/linux-test-project/kirk.
+
+To pass environment variables use `--env` with list of key=value separated by `:`
 
 ```sh
-TEST_VARS ./network.sh OPTIONS
+kirk --run-suite net.features \
+     --env 'VIRT_PERF_THRESHOLD=180:LTP_NET_FEATURES_IGNORE_PERFORMANCE_FAILURE=1'
 ```
-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`.
diff --git a/testscripts/network.sh b/testscripts/network.sh
deleted file mode 100755
index afe9c7a977..0000000000
--- a/testscripts/network.sh
+++ /dev/null
@@ -1,118 +0,0 @@
-#!/bin/sh
-# SPDX-License-Identifier: GPL-2.0-or-later
-# Copyright (c) Linux Test Project, 2013-2019
-
-cd $(dirname $0)
-export LTPROOT=${LTPROOT:-"$PWD"}
-echo $LTPROOT | grep -q testscripts
-if [ $? -eq 0 ]; then
-	cd ..
-	export LTPROOT=${PWD}
-fi
-
-export TMPDIR=/tmp/netpan-$$
-mkdir -p $TMPDIR
-CMDFILE=${TMPDIR}/network.tests
-VERBOSE="no"
-NO_KMSG=
-QUIET_MODE=
-TEST_CASES=
-
-export PATH="${PATH}:${LTPROOT}/testcases/bin"
-
-usage()
-{
-	echo "Usage: $0 OPTIONS"
-	echo "  -6    IPv6 tests"
-	echo "  -m    multicast tests"
-	echo "  -n    NFS tests"
-	echo "  -s    SCTP tests"
-	echo "  -t    TCP/IP command tests"
-	echo "  -c    RPC and TI-RPC tests"
-	echo "  -d    TS-RPC tests"
-	echo "  -a    Application stress tests (HTTP, SSH, DNS)"
-	echo "  -e    Interface stress tests"
-	echo "  -b    Stress tests with malformed ICMP packets"
-	echo "  -i    IPsec ICMP stress tests"
-	echo "  -T    IPsec TCP stress tests"
-	echo "  -U    IPsec UDP stress tests"
-	echo "  -D    IPsec DCCP stress tests"
-	echo "  -S    IPsec SCTP stress tests"
-	echo "  -R    route stress tests"
-	echo "  -M    multicast stress tests"
-	echo "  -F    network features tests (TFO, vxlan, etc.)"
-	echo "  -f x  where x is a runtest file"
-	echo "  -q    quiet mode (this implies not logging start of test"
-	echo "        in kernel log)"
-	echo "  -Q    don't log start of test in kernel log"
-	echo "  -V|v  verbose"
-	echo "  -h    print this help"
-}
-
-while getopts 6mnrstaebcdiTUDSRMFf:qQVvh OPTION
-do
-	case $OPTION in
-	6) TEST_CASES="$TEST_CASES net.ipv6 net.ipv6_lib";;
-	m) TEST_CASES="$TEST_CASES net.multicast";;
-	n) TEST_CASES="$TEST_CASES net.nfs";;
-	s) TEST_CASES="$TEST_CASES net.sctp";;
-	t) TEST_CASES="$TEST_CASES net.tcp_cmds";;
-	c) TEST_CASES="$TEST_CASES net.rpc_tests";;
-	d) TEST_CASES="$TEST_CASES net.tirpc_tests";;
-	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";;
-	D) TEST_CASES="$TEST_CASES net_stress.ipsec_dccp";;
-	S) TEST_CASES="$TEST_CASES net_stress.ipsec_sctp";;
-	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};;
-	q) QUIET_MODE="-q";;
-	Q) NO_KMSG="-Q";;
-	V|v) VERBOSE="yes";;
-	h) usage; exit 0;;
-	*) echo "Error: invalid option..."; usage; exit 1;;
-	esac
-done
-
-if [ "$OPTIND" -eq 1 ]; then
-	echo "Error: option is required"
-	usage
-	exit 1
-fi
-shift $(($OPTIND - 1))
-
-rm -f $CMDFILE
-
-for t in $TEST_CASES; do
-	cat  ${LTPROOT}/runtest/$t >> $CMDFILE
-done
-
-cd $TMPDIR
-
-cmd="${LTPROOT}/bin/ltp-pan $QUIET_MODE $NO_KMSG -e -l /tmp/netpan.log -S -a ltpnet -n ltpnet -f $CMDFILE"
-
-if [ ${VERBOSE} = "yes" ]; then
-	echo "Network parameters:"
-	echo " - ${LHOST_IFACES} local interface (MAC address: ${LHOST_HWADDRS})"
-	echo " - ${RHOST_IFACES} remote interface (MAC address: ${RHOST_HWADDRS})"
-
-	cat $CMDFILE
-	${LTPROOT}/ver_linux
-	echo ""
-	echo $cmd
-fi
-
-$cmd
-
-if [ $? -eq "0" ]; then
-	echo ltp-pan reported PASS
-else
-	echo ltp-pan reported FAIL
-fi
-
-rm -rf $TMPDIR
-- 
2.55.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2026-09-04  9:19 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-03 12:46 [LTP] [RFC PATCH 0/4] testscripts: Remove outdated scripts (ltp-pan) Petr Vorel
2026-09-03 12:46 ` [LTP] [RFC PATCH 1/4] Remove testscripts/network.sh Petr Vorel
2026-09-03 13:31   ` Avinesh Kumar via ltp
2026-09-03 15:59   ` [LTP] " linuxtestproject.agent
2026-09-03 12:46 ` [LTP] [RFC PATCH 2/4] Remove testscripts/tpm_tools.sh Petr Vorel
2026-09-03 12:46 ` [LTP] [RFC PATCH 3/4] Remove testscripts/ltp-aiodio.sh Petr Vorel
2026-09-03 12:46 ` [LTP] [RFC PATCH 4/4] controllers: Remove obsolete references to ltp-pan Petr Vorel
2026-09-03 13:38 ` [LTP] [RFC PATCH 0/4] testscripts: Remove outdated scripts (ltp-pan) Andrea Cervesato via ltp
2026-09-04  7:55 ` Jan Stancek via ltp
  -- strict thread matches above, loose matches on Subject: below --
2026-09-04  8:55 [LTP] [PATCH v2 1/4] Remove testscripts/network.sh Petr Vorel
2026-09-04  9:19 ` [LTP] " linuxtestproject.agent

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox