Add kirk & ltx tools
v3 cover Add kirk & ltx tools
From: Andrea Cervesato <[email protected]>
Replaced runltp-ng with kirk and added ltx tool for parallel execution.
Andrea Cervesato (2):
Replace runltp-ng with kirk framework
Add Linux Test eXecutor inside tools
.gitmodules | 6 ++++++ tools/kirk | 1 + tools/ltx/Makefile | 31 +++++++++++++++++++++++++++++++ tools/ltx/ltx-src | 1 + 4 files changed, 39 insertions(+) create mode 160000 tools/kirk create mode 100644 tools/ltx/Makefile create mode 160000 tools/ltx/ltx-src
Signature · 5 lines
2.35.3 -- Mailing list info: https://lists.linux.it/listinfo/ltp
PATCH v3 1/2 Replace runltp-ng with kirk framework
From: Andrea Cervesato <[email protected]>
Kirk application is the runltp-ng successor and it aims to merge multiple Linux testing frameworks in one tool, providing support for remote testing via Qemu, SSH, LTX, parallel execution and much more.
This patch deprecates runltp-ng, which is not replaced by kirk. All runltp-ng features are present in kirk and even more.
--- .gitmodules | 3 +++ tools/kirk | 1 + 2 files changed, 4 insertions(+) create mode 160000 tools/kirk
.gitmodules +3 -0
@@ -7,3 +7,6 @@ [submodule "tools/runltp-ng"] path = tools/runltp-ng url = https://github.com/linux-test-project/runltp-ng.git +[submodule "tools/kirk"] + path = tools/kirk + url = https://github.com/linux-test-project/kirk.git
tools/kirk new file +1 -0
@@ -0,0 +1 @@ +Subproject commit c7419dd6f73d90f3f02aa17d30270e895e30c88e
Signature · 5 lines
2.35.3 -- Mailing list info: https://lists.linux.it/listinfo/ltp
Re: [LTP] [PATCH v3 1/2] Replace runltp-ng with kirk framework
Hi Andrea,
...
.gitmodules line 12
Quoted 8 lines
+++ b/.gitmodules
.gitmodules +3
-0@@ -7,3 +7,6 @@ [submodule "tools/runltp-ng"] path = tools/runltp-ng url = https://github.com/linux-test-project/runltp-ng.git +[submodule "tools/kirk"] + path = tools/kirk + url = https://github.com/linux-test-project/kirk.git
I'm not sure if anybody asked you to keep runltp-ng, but I'd prefer to remove runltp-ng as you did in v2. I don't think runltp-ng was really adopted a lot
We should have runltp-ng symlink to kirk at least in LTP:
cd tools/kirk && make install
install -m 00644 ../../tools/kirk/libkirk/*.py /opt/ltp/libkirk install -m 00775 ../../tools/kirk/kirk /opt/ltp/kirk
...
Here I would add
ln -s /opt/ltp/kirk /opt/ltp/runltp-ng
...
tools/kirk line 1
Quoted 3 lines
+++ b/tools/kirk
tools/kirk new file +1
-0@@ -0,0 +1 @@ +Subproject commit c7419dd6f73d90f3f02aa17d30270e895e30c88e
+1 for fixing this.
Kind regards,
Petr
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
Re: [LTP] [PATCH v3 1/2] Replace runltp-ng with kirk framework
Hi,
Quoted 13 lines · Petr Vorel
Hi Andrea,
...
.gitmodules line 12
Quoted 8 lines
+++ b/.gitmodules
.gitmodules +3
-0@@ -7,3 +7,6 @@ [submodule "tools/runltp-ng"] path = tools/runltp-ng url = https://github.com/linux-test-project/runltp-ng.git +[submodule "tools/kirk"] + path = tools/kirk + url = https://github.com/linux-test-project/kirk.gitI'm not sure if anybody asked you to keep runltp-ng, but I'd prefer to remove runltp-ng as you did in v2. I don't think runltp-ng was really adopted a lot
Yes, I forgot to do git rm on that folder.
Quoted 9 lines
We should have runltp-ng symlink to kirk at least in LTP:
cd
tools/kirk&& make install
install -m 00644 ../../tools/kirk/libkirk/*.py/opt/ltp/libkirkinstall -m 00775 ../../tools/kirk/kirk/opt/ltp/kirk
...
Here I would add
ln -s/opt/ltp/kirk/opt/ltp/runltp-ng
This has to be done in the kirk repo.
Quoted 8 lines
...
tools/kirk line 1
Quoted 3 lines
+++ b/tools/kirk
tools/kirk new file +1
-0@@ -0,0 +1 @@ +Subproject commit c7419dd6f73d90f3f02aa17d30270e895e30c88e+1 for fixing this.
Kind regards,
Petr
Andrea
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
PATCH v3 2/2 Add Linux Test eXecutor inside tools
In reply to Andrea CervesatoFrom: Andrea Cervesato <[email protected]>
The ltx program runs on the system under test (SUT). It's primary purpose is to run test executables in parallel and serialise the results.
--- .gitmodules | 3 +++ tools/ltx/Makefile | 31 +++++++++++++++++++++++++++++++ tools/ltx/ltx-src | 1 + 3 files changed, 35 insertions(+) create mode 100644 tools/ltx/Makefile create mode 160000 tools/ltx/ltx-src
.gitmodules +3 -0
@@ -10,3 +10,6 @@ [submodule "tools/kirk"] path = tools/kirk url = https://github.com/linux-test-project/kirk.git +[submodule "tools/ltx/ltx-src"] + path = tools/ltx/ltx-src + url = https://github.com/linux-test-project/ltx.git
tools/ltx/Makefile new file +31 -0
@@ -0,0 +1,31 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# Copyright (c) 2023 Cyril Hrubis <[email protected]> +# Copyright (c) 2023 Andrea Cervesato <[email protected]> +# +# Install script for Linux Test eXecutor + +top_srcdir ?= ../.. + +include $(top_srcdir)/include/mk/env_pre.mk + +ifneq ($(wildcard $(abs_srcdir)/ltx-src/*),) + +BINARY=ltx + +MAKE_TARGETS := $(BINARY) + +CFLAGS+=-I$(abs_srcdir)/ltx-src/ -I$(abs_srcdir)/ltx-src/msgpack/ + +$(BINARY): $(wildcard $(abs_srcdir)/ltx-src/*.c $(abs_srcdir)/ltx-src/msgpack/*.c) +ifdef VERBOSE + $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $^ $(LDLIBS) -o $@ +else + @echo CC $@ + @$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $^ $(LDLIBS) -o $@ +endif + +INSTALL_DIR := $(prefix) + +endif + +include $(top_srcdir)/include/mk/generic_leaf_target.mk
tools/ltx/ltx-src new file +1 -0
@@ -0,0 +1 @@ +Subproject commit d6d1509479537f4fdfa9b5adcb67eb6312714999
Signature · 5 lines
2.35.3 -- Mailing list info: https://lists.linux.it/listinfo/ltp
Re: [LTP] [PATCH v3 2/2] Add Linux Test eXecutor inside tools
Quoted 47 lines
From: Andrea Cervesato <[email protected]>
The ltx program runs on the system under test (SUT). It's primary purpose is to run test executables in parallel and serialise the results.
Signed-off-by Andrea Cervesato <[email protected]>--- .gitmodules | 3 +++ tools/ltx/Makefile | 31 +++++++++++++++++++++++++++++++ tools/ltx/ltx-src | 1 + 3 files changed, 35 insertions(+) create mode 100644 tools/ltx/Makefile create mode 160000 tools/ltx/ltx-src.gitmodules +3
-0@@ -10,3 +10,6 @@ [submodule "tools/kirk"] path = tools/kirk url = https://github.com/linux-test-project/kirk.git +[submodule "tools/ltx/ltx-src"] + path = tools/ltx/ltx-src + url = https://github.com/linux-test-project/ltx.gittools/ltx/Makefile new file +15
-0@@ -0,0 +1,31 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# Copyright (c) 2023 Cyril Hrubis <[email protected]> +# Copyright (c) 2023 Andrea Cervesato <[email protected]> +# +# Install script for Linux Test eXecutor + +top_srcdir ?= ../.. + +include $(top_srcdir)/include/mk/env_pre.mk + +ifneq ($(wildcard $(abs_srcdir)/ltx-src/*),) + +BINARY=ltx + +MAKE_TARGETS := $(BINARY)
tools/ltx/Makefile line 25
Quoted 10 lines
tools/ltx/Makefile new file +10
-0+ +CFLAGS+=-I$(abs_srcdir)/ltx-src/ -I$(abs_srcdir)/ltx-src/msgpack/ + +$(BINARY): $(wildcard $(abs_srcdir)/ltx-src/*.c $(abs_srcdir)/ltx-src/msgpack/*.c) +ifdef VERBOSE + $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $^ $(LDLIBS) -o $@ +else + @echo CC $@ + @$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $^ $(LDLIBS) -o $@ +endif
This works, but why we don't use approach used for sparc, i.e.
$(MAKE) -C ltx-src
That way we would not have to redefine the default rules.
Also it detects missing git clone and runs
git submodule update --init if needed.
I'm asking for a same approach, not only because later we can unify and reuse the code in some make helper, but also because it'd be more user friendly if our new git submodules work the same way.
But if there is not enough time before release I would not be against this.
Kind regards,
Petr
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
Re: [LTP] [PATCH v3 2/2] Add Linux Test eXecutor inside tools
Hi,
Sorry but I seen this review when I already sent the patch 1 or 2 minutes later.
Quoted 63 lines · Petr Vorel
Quoted 44 lines
From: Andrea Cervesato<[email protected]>
The ltx program runs on the system under test (SUT). It's primary purpose is to run test executables in parallel and serialise the results.Signed-off-by Andrea Cervesato<[email protected]>--- .gitmodules | 3 +++ tools/ltx/Makefile | 31 +++++++++++++++++++++++++++++++ tools/ltx/ltx-src | 1 + 3 files changed, 35 insertions(+)create mode 100644
tools/ltx/Makefile
create mode 160000tools/ltx/ltx-src.gitmodules +3
-0@@ -10,3 +10,6 @@ [submodule "tools/kirk"] path = tools/kirk url =https://github.com/linux-test-project/kirk.git +[submodule "tools/ltx/ltx-src"] + path = tools/ltx/ltx-src + url =https://github.com/linux-test-project/ltx.gittools/ltx/Makefile new file +15
-0@@ -0,0 +1,31 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# Copyright (c) 2023 Cyril Hrubis<[email protected]> +# Copyright (c) 2023 Andrea Cervesato<[email protected]> +# +# Install script for Linux Test eXecutor + +top_srcdir ?= ../.. + +include $(top_srcdir)/include/mk/env_pre.mk + +ifneq ($(wildcard $(abs_srcdir)/ltx-src/*),) + +BINARY=ltx + +MAKE_TARGETS := $(BINARY)tools/ltx/Makefile line 25
Quoted 10 lines
tools/ltx/Makefile new file +10
-0+ +CFLAGS+=-I$(abs_srcdir)/ltx-src/ -I$(abs_srcdir)/ltx-src/msgpack/ + +$(BINARY): $(wildcard $(abs_srcdir)/ltx-src/*.c $(abs_srcdir)/ltx-src/msgpack/*.c) +ifdef VERBOSE + $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $^ $(LDLIBS) -o $@ +else + @echo CC $@ + @$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $^ $(LDLIBS) -o $@ +endifThis works, but why we don't use approach used for sparc, i.e.
$(MAKE) -C ltx-src
That way we would not have to redefine the default rules.
Also it detects missing git clone and runs
git submodule update --init if needed.
Quoted 9 lines
I'm asking for a same approach, not only because later we can unify and reuse the code in some make helper, but also because it'd be more user friendly if our new git submodules work the same way.
But if there is not enough time before release I would not be against this.
Kind regards,
Petr
I don't see reasons to change Makefile if it's using the right LTP variables and approach to tools installation within the LTP folder.
Andrea
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
Re: [LTP] [PATCH v3 2/2] Add Linux Test eXecutor inside tools
In reply to Petr VorelHi!
Quoted 5 lines
This works, but why we don't use approach used for sparc, i.e.
$(MAKE) -C ltx-src
That way we would not have to redefine the default rules.
Unfortunately this does not work well either because the ltx does not have install targed and trying to install a file from a subdirectory is not possible with the LTP build system. I've tried that and it didn't work.
Let's merge this version that works, we can try to do make things better later on.
Quoted 6 lines
Also it detects missing git clone and runs
git submodule update --init if needed.I'm asking for a same approach, not only because later we can unify and reuse the code in some make helper, but also because it'd be more user friendly if our new git submodules work the same way.
Now this needs to be discussed first. Currently the submodule is installed when user writes make check. That means that it's not triggered in default build and the default build works without network connection. I do not think that we should attempt to download additional repositories on default build.
Quoted 1 line
But if there is not enough time before release I would not be against this.
I'm would say that there is not enough time for a proper discussion, so I would really keep things as they are in the latest patchset and leave the discussion for later.
Signature · 5 lines
Cyril Hrubis [email protected] -- Mailing list info: https://lists.linux.it/listinfo/ltp
Re: [LTP] [PATCH v3 2/2] Add Linux Test eXecutor inside tools
Hi!
Quoted 7 lines
Unfortunately this does not work well either because the ltx does not have install targed and trying to install a file from a subdirectory is not possible with the LTP build system. I've tried that and it didn't work.
Let's merge this version that works, we can try to do make things better later on.
Also one more point $(MAKE) -C ltx-src does not support out-of-tree build and while it's probably fine for 'make check' not to support it, since that is a developer tooling, it should work fine for ltx that is going to be packaged/installed on the SUT.
So I suppose that we are stuck with the LTP ltx Makefile unless we:
- add support for out-of-tree build to ltx/Makefile
- drop out-of-tree build support from LTP
Signature · 5 lines
Cyril Hrubis [email protected] -- Mailing list info: https://lists.linux.it/listinfo/ltp
Re: [LTP] [PATCH v3 2/2] Add Linux Test eXecutor inside tools
Quoted 6 lines
Hi!
Quoted 4 lines
Unfortunately this does not work well either because the ltx does not have install targed and trying to install a file from a subdirectory is not possible with the LTP build system. I've tried that and it didn't work.
Quoted 7 lines
Quoted 2 lines
Let's merge this version that works, we can try to do make things better later on.
Also one more point $(MAKE) -C ltx-src does not support out-of-tree build and while it's probably fine for 'make check' not to support it, since that is a developer tooling, it should work fine for ltx that is going to be packaged/installed on the SUT.
Very good point! It'd be nice to note this reason in the git commit message.
Quoted 4 lines
So I suppose that we are stuck with the LTP ltx
Makefileunless we:- add support for out-of-tree build to ltx/Makefile
- drop out-of-tree build support from LTP
I guess even Buildroot and Yocto does not use out-of-tree build. Maybe we should really remove the support.
Kind regards,
Petr
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
Re: [LTP] [PATCH v3 2/2] Add Linux Test eXecutor inside tools
In reply to Cyril HrubisQuoted 7 lines
Hi!
Quoted 5 lines
This works, but why we don't use approach used for sparc, i.e.
$(MAKE) -C ltx-src
That way we would not have to redefine the default rules.
Quoted 7 lines
Unfortunately this does not work well either because the ltx does not have install targed and trying to install a file from a subdirectory is not possible with the LTP build system. I've tried that and it didn't work.
Let's merge this version that works, we can try to do make things better later on.
Sure. BTW I prefer v4, which replaces runltp-ng instead of keeping it.
Quoted 7 lines
Quoted 6 lines
Also it detects missing git clone and runs
git submodule update --init if needed.I'm asking for a same approach, not only because later we can unify and reuse the code in some make helper, but also because it'd be more user friendly if our new git submodules work the same way.
Quoted 5 lines
Now this needs to be discussed first. Currently the submodule is installed when user writes make check. That means that it's not triggered in default build and the default build works without network connection. I do not think that we should attempt to download additional repositories on default build.
Make sense.
Quoted 5 lines
Quoted 1 line
But if there is not enough time before release I would not be against this.
I'm would say that there is not enough time for a proper discussion, so I would really keep things as they are in the latest patchset and leave the discussion for later.
Sure.
Kind regards,
Petr
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp