Remove runltp
cover Remove runltp
Hi all,
we finally decided to remove runltp [1].
Kirk is the replacement [2] (embedded also as a submodule in LTP).
Kind regards,
Petr
[1] https://lore.kernel.org/ltp/[email protected]/
[2] https://github.com/linux-test-project/kirk
Petr Vorel (4):
doc: INSTALL: dma_thread_diotest.c: Remove runltp from doc testscripts/lvmtest.sh: Replace runltp with kirk
runltp: Remove
kirk: Remove runltp-ng symlink
INSTALL | 4 +- Makefile | 2 +- doc/developers/test_case_tutorial.rst | 6 +- doc/developers/todo.rst | 10 - metadata/README.md | 2 +- runltp | 959 ------------------ .../kernel/fs/fs_readonly/test_robind.sh | 2 +- .../kernel/io/direct_io/dma_thread_diotest.c | 3 +- testcases/kernel/security/smack/README | 2 +- testcases/network/can/filter-tests/INSTALL | 2 +- testcases/network/rpc/rpc-tirpc/README | 2 +- testscripts/Readme_ROBind | 4 +- testscripts/lvmtest.sh | 2 +- tools/kirk/Makefile | 2 - 14 files changed, 16 insertions(+), 986 deletions(-) delete mode 100755 runltp
Signature · 5 lines
2.51.0 -- Mailing list info: https://lists.linux.it/listinfo/ltp
PATCH 1/4 doc: INSTALL: dma_thread_diotest.c: Remove runltp from doc
Remove runltp from all doc, replace it with kirk.
Also replace the old runltp-ng with kirk.
--- INSTALL | 4 +++- doc/developers/test_case_tutorial.rst | 6 +++--- doc/developers/todo.rst | 10 ---------- metadata/README.md | 2 +- testcases/kernel/fs/fs_readonly/test_robind.sh | 2 +- testcases/kernel/io/direct_io/dma_thread_diotest.c | 3 +-- testcases/kernel/security/smack/README | 2 +- testcases/network/can/filter-tests/INSTALL | 2 +- testcases/network/rpc/rpc-tirpc/README | 2 +- testscripts/Readme_ROBind | 4 ++-- 10 files changed, 14 insertions(+), 23 deletions(-)
INSTALL +3 -1
@@ -105,9 +105,9 @@ Quick Start $ ./configure $ make all # make install - $ /opt/ltp/runltp *NOTE: +- For running tests use kirk [1], individual test you can run directly. - LTP assumes the existence of the nobody, bin, and daemon users and their groups. If these IDs do not exist, certain tests will fail. The respective user and group IDs should be the same, i.e. if `nobody's' user ID is 99, then
@@ -117,6 +117,8 @@ its group ID should also be 99. The names of the groups are irrelevant. DESTDIR= is also honored for install and will install into $DESTDIR/$prefix, if you want to install into a chroot or a rootfs for instance. +[1] https://github.com/linux-test-project/kirk + Detailed Installation ---------------------
doc/developers/test_case_tutorial.rst +3 -3
@@ -205,9 +205,9 @@ please do: This should build the test and then run it. However, even though the test is in :master:`testcases/kernel/syscalls` directory it won't be automatically ran -as part of the syscalls test group (e.g. not run via ``kirk -r math`` or -``./runltp -f syscalls``). For this we need to add it to the runtest file. So -open :master:`runtest/syscalls` and add the lines starting with a ``+``. +as part of the syscalls test group (e.g. not run via ``kirk -r math``. For +this we need to add it to the runtest file. So open :master:`runtest/syscalls` +and add the lines starting with a ``+``. .. code-block::
doc/developers/todo.rst +0 -10
@@ -7,16 +7,6 @@ This is a comprehensive list of tasks where LTP maintainers are currently working on. Priorities might change over time, but these are the most important points which are currently being achieved. -Fade out old tests runner -------------------------- - -:master:`runltp` script is old and unmaintaned. We are slowly shifting to -`kirk <https://github.com/linux-test-project/kirk>`_, that will be our official -tests runner in the future. - -Kirk provides support for remote testing via Qemu, SSH, LTX, parallel -execution and much more. - Test new syscalls -----------------
metadata/README.md +1 -1
@@ -245,4 +245,4 @@ things and how to format them. So far this proof of concept generates a metadata file. I guess that we need actual consumers which will help to settle things down, I will try to look into -making use of this in the runltp-ng at least as a reference implementation. +making use of this in the kirk at least as a reference implementation.
testcases/kernel/fs/fs_readonly/test_robind.sh +1 -1
@@ -25,7 +25,7 @@ # DESCRIPTION: Performs filesystems tests for RO mount. # For filesystem, like ext2, ext3, reiserfs, jfs & xfs, # This test needs a big block device(>=500MB is ok), and you can specify -# it by -z option when running runltp. +# it by exporting LTP_BIG_DEV environment variable. # a) mounts on dir1, # b) mount --bind dir2 # c) mount -o remount,ro
testcases/kernel/io/direct_io/dma_thread_diotest.c +1 -2
@@ -389,8 +389,7 @@ static void setup(void)/* * verify whether the current directory has enough free space, -* if it is not satisfied, we will use the LTP_BIG_DEV, which -* will be exported by runltp with "-z" option. +* if it is not satisfied, we will use the LTP_BIG_DEV. */ if (!directflag || !tst_fs_has_free (NULL ,"." ,1300 ,TST_MB )) { device =getenv ("LTP_BIG_DEV" );
testcases/kernel/security/smack/README +1 -1
@@ -20,7 +20,7 @@ using the default make target. (cd testcases/kernel/security/smack; make && make install) 5) Running the tests: - ./runltp -f smack + kirk -f smack Each test exits with 0 on success and an error code on failure.
testcases/network/can/filter-tests/INSTALL +1 -1
@@ -16,7 +16,7 @@ $ ./can_filter $ ./can_rcv_own_msgs 3) To let LTP run the tests from $LTPROOT, execute: -$ ./runltp -f can +$ kirk -f can 4) Clean up using: $ make clean
testcases/network/rpc/rpc-tirpc/README +1 -1
@@ -46,6 +46,6 @@ instead of a bunch of scripts from the above web page. The basic group of test cases can be executed from * runtest/net.rpc_tests - for TS-RPC testing * runtest/net.tirpc_tests - for TI-RPC testing -using the LTP framework (ltp-pan, runltp and etc). +using kirk. Additional test cases (like stress, complex and etc) are to be integrated.
testscripts/Readme_ROBind +2 -2
@@ -3,9 +3,9 @@ the {LTPROOT}/testcases/kernel/fs . EXECUTING TESTS ================== -The tests can be executed through runltp like: +The tests can be executed with kirk: -./runltp -f fs_readonly +kirk -f fs_readonly Following tests are executed when the above is invoked:
Signature · 5 lines
2.51.0 -- Mailing list info: https://lists.linux.it/listinfo/ltp
PATCH 2/4 testscripts/lvmtest.sh: Replace runltp with kirk
In reply to Petr Vorel---
Martin,
is this safe enough, right?
Kind regards,
Petr
testscripts/lvmtest.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
testscripts/lvmtest.sh +1 -1
@@ -14,5 +14,5 @@ fi export PATH="${PATH}:${LTPROOT}:${LTPROOT}/bin:${LTPROOT}/testcases/bin" -generate_lvm_runfile.sh && prepare_lvm.sh && runltp -f lvm.local +generate_lvm_runfile.sh && prepare_lvm.sh && kirk -f lvm.local cleanup_lvm.sh
Signature · 5 lines
2.51.0 -- Mailing list info: https://lists.linux.it/listinfo/ltp
PATCH 3/4 runltp: Remove
In reply to Petr VorelIt was replaced with kirk.
https://github.com/linux-test-project/kirk
--- Makefile | 2 +- runltp | 959 ------------------------------------------------------- 2 files changed, 1 insertion(+), 960 deletions(-) delete mode 100755 runltp
Makefile +1 -1
@@ -137,7 +137,7 @@ clean:: $(CLEAN_TARGETS) $(foreach tgt,$(MAKE_TARGETS) include-all lib-all $(filter-out clean_install_dir,$(CLEAN_TARGETS)) $(INSTALL_TARGETS) include-install lib-install,$(eval $(call target_to_dir_dep_mapping,$(tgt)))) -SRCDIR_INSTALL_SCRIPTS := IDcheck.sh runltp ver_linux +SRCDIR_INSTALL_SCRIPTS := IDcheck.sh ver_linux SRCDIR_INSTALL_READONLY := Version SRCDIR_INSTALL_TARGETS := $(SRCDIR_INSTALL_SCRIPTS) $(SRCDIR_INSTALL_READONLY)
runltp deleted +0 -959
959 lines not on this page · raw message
Signature · 5 lines
2.51.0 -- Mailing list info: https://lists.linux.it/listinfo/ltp
Re: [LTP] [PATCH 3/4] runltp: Remove
Quoted 8 lines · Petr Vorel
It was replaced with kirk.
https://github.com/linux-test-project/kirk
Signed-off-by Petr Vorel <[email protected]>--- Makefile | 2 +- runltp | 959 -------------------------------------------------------
Perhaps we could create a symbolic link in the root directory pointing to /tool/kirk/kirk-src/kirk?
Otherwise, people might be confused because they can't find the LTP runner in the root dir.
Signature · 6 lines
Regards, Li Wang -- Mailing list info: https://lists.linux.it/listinfo/ltp
Re: [LTP] [PATCH 3/4] runltp: Remove
Quoted 11 lines
Quoted 8 lines · Petr Vorel
It was replaced with kirk.
https://github.com/linux-test-project/kirk
Signed-off-by Petr Vorel <[email protected]>--- Makefile | 2 +- runltp | 959 -------------------------------------------------------
Quoted 5 lines
Perhaps we could create a symbolic link in the root directory pointing to /tool/kirk/kirk-src/kirk?
Otherwise, people might be confused because they can't find the LTP runner in the root dir.
We have /opt/ltp/kirk. Andrea suggested under 4th patch to symlink it to runltp, but it'd be good to modify it to print warning it's not runltp, but kirk. See:
https://lore.kernel.org/ltp/20260204124640.GA244528@pevik/
Kind regards,
Petr
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
Re: [LTP] [PATCH 3/4] runltp: Remove
Hi!
Quoted 2 lines
We have
/opt/ltp/kirk. Andrea suggested under 4th patch to symlink it to runltp, but it'd be good to modify it to print warning it's not runltp, but kirk. See:
I would put a simple runltp script in there that would just say to switch to kirk:
$ cat runtlp #/bin/sh
echo "runltp was removed from LTP use kirk instead"
Signature · 5 lines
Cyril Hrubis [email protected] -- Mailing list info: https://lists.linux.it/listinfo/ltp
Re: [LTP] [PATCH 3/4] runltp: Remove
Quoted 6 lines · Cyril Hrubis
Hi!
Quoted 1 line
We have
/opt/ltp/kirk. Andrea suggested under 4th patch to symlink it torunltp,
Quoted 1 line
but it'd be good to modify it to print warning it's not runltp, but
kirk. See:
Quoted 8 lines
I would put a simple runltp script in there that would just say to switch to kirk:
$ cat runtlp #/bin/shecho "runltp was removed from LTP use kirk instead"
This is a good idea, better to plus kirk simple usage (or where to find it).
Signature · 5 lines
Regards, Li Wang -- Mailing list info: https://lists.linux.it/listinfo/ltp
Re: [LTP] [PATCH 3/4] runltp: Remove
In reply to Cyril HrubisQuoted 11 lines
Hi!
Quoted 2 lines
We have
/opt/ltp/kirk. Andrea suggested under 4th patch to symlink it to runltp, but it'd be good to modify it to print warning it's not runltp, but kirk. See:I would put a simple runltp script in there that would just say to switch to kirk:
$ cat runtlp #/bin/shecho "runltp was removed from LTP use kirk instead"
+1, followed by exit 1 :).
Kind regards,
Petr
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
Re: [LTP] [PATCH 3/4] runltp: Remove
In reply to Li Wang via ltpQuoted 11 lines · Li Wang
Quoted 8 lines · Petr Vorel
It was replaced with kirk.
https://github.com/linux-test-project/kirk
Signed-off-by Petr Vorel <[email protected]>--- Makefile | 2 +- runltp | 959 -------------------------------------------------------
Quoted 5 lines
Perhaps we could create a symbolic link in the root directory pointing to /tool/kirk/kirk-src/kirk?
Otherwise, people might be confused because they can't find the LTP runner in the root dir.
I wouldn't use symlinks, they are not reliable. It's better to have the current setup with a script in the home directory pointing to the libkirk library.
Signature · 7 lines
Andrea Cervesato SUSE QE Automation Engineer Linux [email protected] -- Mailing list info: https://lists.linux.it/listinfo/ltp
PATCH 4/4 kirk: Remove runltp-ng symlink
In reply to Petr Vorelkirk is here long enough to remove the symlink.
--- tools/kirk/Makefile | 2 -- 1 file changed, 2 deletions(-)
tools/kirk/Makefile +0 -2
@@ -17,8 +17,6 @@ ifneq ($(wildcard $(abs_srcdir)/kirk-src/libkirk/*.py),) install -m 00644 $(abs_srcdir)/kirk-src/libkirk/*.py $(BASE_DIR)/libkirk install -m 00644 $(abs_srcdir)/kirk-src/libkirk/channels/*.py $(BASE_DIR)/libkirk/channels install -m 00775 $(abs_srcdir)/kirk-src/kirk $(BASE_DIR)/kirk - - cd $(BASE_DIR) && ln -sf kirk runltp-ng endif include $(top_srcdir)/include/mk/generic_leaf_target.mk
Signature · 5 lines
2.51.0 -- Mailing list info: https://lists.linux.it/listinfo/ltp
Re: [LTP] [PATCH 4/4] kirk: Remove runltp-ng symlink
Hi!
Quoted 12 lines · Petr Vorel
kirk is here long enough to remove the symlink.
Signed-off-by Petr Vorel <[email protected]>--- tools/kirk/Makefile | 2 -- 1 file changed, 2 deletions(-)tools/kirk/Makefile +0
-0
tools/kirk/Makefile ifneq ($(wildcard $(abs_srcdir)/kirk-src/libkirk/*.py),) · line 22
Quoted 8 lines
tools/kirk/Makefile +0
-2@@ -17,8 +17,6 @@ ifneq ($(wildcard $(abs_srcdir)/kirk-src/libkirk/*.py),) install -m 00644 $(abs_srcdir)/kirk-src/libkirk/*.py $(BASE_DIR)/libkirk install -m 00644 $(abs_srcdir)/kirk-src/libkirk/channels/*.py $(BASE_DIR)/libkirk/channels install -m 00775 $(abs_srcdir)/kirk-src/kirk $(BASE_DIR)/kirk - - cd $(BASE_DIR) && ln -sf kirk runltp-ng endif include $(top_srcdir)/include/mk/generic_leaf_target.mk
This is the only point where im not 100% sure. I'm wondering if we should keep a symlink to runltp, just in case people will have CI working on LTP.
Signature · 7 lines
Andrea Cervesato SUSE QE Automation Engineer Linux [email protected] -- Mailing list info: https://lists.linux.it/listinfo/ltp
Re: [LTP] [PATCH 4/4] kirk: Remove runltp-ng symlink
Hi Andrea, all,
Quoted 22 lines
Hi!
Quoted 18 lines · Petr Vorel
kirk is here long enough to remove the symlink.
Signed-off-by Petr Vorel <[email protected]>--- tools/kirk/Makefile | 2 -- 1 file changed, 2 deletions(-)tools/kirk/Makefile +0
-2@@ -17,8 +17,6 @@ ifneq ($(wildcard $(abs_srcdir)/kirk-src/libkirk/*.py),) install -m 00644 $(abs_srcdir)/kirk-src/libkirk/*.py $(BASE_DIR)/libkirk install -m 00644 $(abs_srcdir)/kirk-src/libkirk/channels/*.py $(BASE_DIR)/libkirk/channels install -m 00775 $(abs_srcdir)/kirk-src/kirk $(BASE_DIR)/kirk - - cd $(BASE_DIR) && ln -sf kirk runltp-ng endif
Quoted 5 lines
tools/kirk/Makefile ifneq ($(wildcard $(abs_srcdir)/kirk-src/libkirk/*.py),) · line 22
Quoted 1 line
tools/kirk/Makefile +0
-0include $(top_srcdir)/include/mk/generic_leaf_target.mkThis is the only point where im not 100% sure. I'm wondering if we should keep a symlink to
runltp, just in case people will have CI working on LTP.
I'm not sure if hiding 'kirk' under 'runltp' symlink is a good idea. If yes, there should be a big warning if people run it via symlink (detect in kirk-src/kirk that it was run via 'runltp').
Do you agree with removing 'runltp-ng' symlink?
Kind regards,
Petr
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
Re: [LTP] [PATCH 4/4] kirk: Remove runltp-ng symlink
Quoted 3 lines
Do you agree with removing 'runltp-ng' symlink?
In general I would say yes. If we want to keep the runtltp script name, tho, we can do something like:
install -m 00775 $(abs_srcdir)/kirk-src/kirk $(BASE_DIR)/runltp
inside the tools/kirk/Makefile. In this way we keep the same structure of the previous LTP installation, having a script name that is also more clear for the regular user. I'm pretty sure a lot of people won't understand what kirk is, inside the main installation folder.
Signature · 7 lines
Andrea Cervesato SUSE QE Automation Engineer Linux [email protected] -- Mailing list info: https://lists.linux.it/listinfo/ltp
Re: [LTP] [PATCH 4/4] kirk: Remove runltp-ng symlink
Quoted 7 lines
Quoted 2 lines
Do you agree with removing 'runltp-ng' symlink?
In general I would say yes. If we want to keep the
runtltpscript name, tho, we can do something like:
Quoted 6 lines
install -m 00775 $(abs_srcdir)/kirk-src/kirk $(BASE_DIR)/runltpinside the
tools/kirk/Makefile. In this way we keep the same structure of the previous LTP installation, having a script name that is also more clear for the regular user. I'm pretty sure a lot of people won't understand whatkirkis, inside the main installation folder.
I'm not sure if kirk installed as runltp would not cause even more confusion. I'd prefer even not have a symlink.
Kind regards,
Petr
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
Hi!
Quoted 8 lines
INSTALL | 4 +- Makefile | 2 +- doc/developers/test_case_tutorial.rst | 6 +- doc/developers/todo.rst | 10 - metadata/README.md | 2 +- runltp | 959 ------------------ .../kernel/fs/fs_readonly/test_robind.sh | 2 +- .../kernel/io/direct_io/dma_thread_diotest.c | 3 +-
Quoted 8 lines
testcases/kernel/security/smack/README | 2 +- testcases/network/can/filter-tests/INSTALL | 2 +- testcases/network/rpc/rpc-tirpc/README | 2 +- testscripts/Readme_ROBind | 4 +- testscripts/lvmtest.sh | 2 +- tools/kirk/Makefile | 2 - 14 files changed, 16 insertions(+), 986 deletions(-) delete mode 100755 runltp
This is missing the pan/ directory and old scripts that use ltp-pan. Just do git grep ltp-pan to see what should be removed as well.
And also the scripts that format the output from runltp into html that's toos/genhtml.pl and html_report_header.txt.
Signature · 5 lines
Cyril Hrubis [email protected] -- Mailing list info: https://lists.linux.it/listinfo/ltp
Quoted 18 lines
Hi!
Quoted 8 lines
INSTALL | 4 +- Makefile | 2 +- doc/developers/test_case_tutorial.rst | 6 +- doc/developers/todo.rst | 10 - metadata/README.md | 2 +- runltp | 959 ------------------ .../kernel/fs/fs_readonly/test_robind.sh | 2 +- .../kernel/io/direct_io/dma_thread_diotest.c | 3 +-Quoted 8 lines
testcases/kernel/security/smack/README | 2 +- testcases/network/can/filter-tests/INSTALL | 2 +- testcases/network/rpc/rpc-tirpc/README | 2 +- testscripts/Readme_ROBind | 4 +- testscripts/lvmtest.sh | 2 +- tools/kirk/Makefile | 2 - 14 files changed, 16 insertions(+), 986 deletions(-) delete mode 100755 runltp
Quoted 2 lines
This is missing the pan/ directory and old scripts that use ltp-pan. Just do git grep ltp-pan to see what should be removed as well.
+1 (I was thinking about it, but in the end forgot).
Quoted 2 lines
And also the scripts that format the output from runltp into html that's
toos/genhtml.pland html_report_header.txt.
+1.
Kind regards,
Petr
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp