Skip to contentSkip to conversation

Add kirk & ltx tools

PATCH Superseded Andrea Cervesato 4 participants 6 messages Sep 18, 2023

v5 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#0 lore raw

v5 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        |  9 ++++++---
 tools/kirk         |  1 +
 tools/ltx/Makefile | 31 +++++++++++++++++++++++++++++++
 tools/ltx/ltx-src  |  1 +
 tools/runltp-ng    |  1 -
 5 files changed, 39 insertions(+), 4 deletions(-)
 create mode 160000 tools/kirk
 create mode 100644 tools/ltx/Makefile
 create mode 160000 tools/ltx/ltx-src
 delete mode 160000 tools/runltp-ng
Signature · 5 lines
2.35.3


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
#1 lore raw

PATCH v5 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 removes runltp-ng, which is now replaced by kirk. All runltp-ng features are present in kirk and even more.

---
 .gitmodules     | 6 +++---
 tools/kirk      | 1 +
 tools/runltp-ng | 1 -
 3 files changed, 4 insertions(+), 4 deletions(-)
 create mode 160000 tools/kirk
 delete mode 160000 tools/runltp-ng
.gitmodules +3 -3
index d1d558b9e..088023039 100644
@@ -4,6 +4,6 @@
 [submodule "tools/sparse/sparse-src"]
 	path = tools/sparse/sparse-src
 	url = git://git.kernel.org/pub/scm/devel/sparse/sparse.git
-[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
new file mode 160000
index 000000000..b9e4d1bd3
@@ -0,0 +1 @@
+Subproject commit b9e4d1bd3898b25d315706863f182cfeda8aab81
tools/runltp-ng deleted +0 -1
deleted file mode 160000
index e842511ed..000000000
@@ -1 +0,0 @@
-Subproject commit e842511ed2c680e3b2ea6dec790913a41d5ed937
Signature · 5 lines
2.35.3


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
#2 lore raw

Re: [LTP] [PATCH v5 1/2] Replace runltp-ng with kirk framework

Hi Andrea, Cyril,

I dared to send yet another fix for kirk Makefile:
https://patchwork.ozlabs.org/project/ltp/patch/[email protected]/

kirk should remain as the original file, runltp-ng is the link name.

If you agree with it, I'll merge the fix to kirk repo and update the git has in this patch.

Kind regards,
Petr

Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
#3 lore raw

Re: [LTP] [PATCH v5 1/2] Replace runltp-ng with kirk framework

Hi!

Quoted 7 lines

I dared to send yet another fix for kirk Makefile:
https://patchwork.ozlabs.org/project/ltp/patch/[email protected]/

kirk should remain as the original file, runltp-ng is the link name.

If you agree with it, I'll merge the fix to kirk repo and update the git has in this patch.

Green light from me. Feel free to also merge the Add kirk & ltx tools but do not forget about ack from Ritchie and please add also my Reviewed-by.

Signature · 5 lines
Cyril Hrubis
[email protected]

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
#4 lore raw

Re: [LTP] [PATCH v5 1/2] Replace runltp-ng with kirk framework

In reply to Petr Vorel

Hi,
I fixed and sent v6.

Andrea

Quoted 12 lines · Petr Vorel

Hi Andrea, Cyril,

I dared to send yet another fix for kirk Makefile:
https://patchwork.ozlabs.org/project/ltp/patch/[email protected]/

kirk should remain as the original file, runltp-ng is the link name.

If you agree with it, I'll merge the fix to kirk repo and update the git has in this patch.

Kind regards,
Petr

Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
#5 lore raw

PATCH v5 2/2 Add Linux Test eXecutor inside tools

In reply to Andrea Cervesato

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.

---
 .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
index 088023039..c9a6eea31 100644
@@ -7,3 +7,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
new file mode 100644
index 000000000..4810ec8df
@@ -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
new file mode 160000
index 000000000..d6d150947
@@ -0,0 +1 @@
+Subproject commit d6d1509479537f4fdfa9b5adcb67eb6312714999
Signature · 5 lines
2.35.3


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