Skip to content

Commit 62e3c4d

Browse files
acervpevik
authored andcommitted
Add Linux Test eXecutor inside tools
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. Acked-by: Richard Palethorpe <rpalethorpe@suse.com> Reviewed-by: Petr Vorel <pvorel@suse.cz> Reviewed-by: Cyril Hrubis <chrubis@suse.cz> Signed-off-by: Andrea Cervesato <andrea.cervesato@suse.com> [ pvorel: Add Subproject commit 7e397fe1a2d34a100c7dbfa452bd5d86ca1ddb77 ] Signed-off-by: Petr Vorel <pvorel@suse.cz>
1 parent 5cedf2a commit 62e3c4d

File tree

3 files changed

+35
-0
lines changed

3 files changed

+35
-0
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@
77
[submodule "tools/kirk"]
88
path = tools/kirk
99
url = https://github.com/linux-test-project/kirk.git
10+
[submodule "tools/ltx/ltx-src"]
11+
path = tools/ltx/ltx-src
12+
url = https://github.com/linux-test-project/ltx.git

tools/ltx/Makefile

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# SPDX-License-Identifier: GPL-2.0-or-later
2+
# Copyright (c) 2023 Cyril Hrubis <chrubis@suse.cz>
3+
# Copyright (c) 2023 Andrea Cervesato <andrea.cervesato@suse.com>
4+
#
5+
# Install script for Linux Test eXecutor
6+
7+
top_srcdir ?= ../..
8+
9+
include $(top_srcdir)/include/mk/env_pre.mk
10+
11+
ifneq ($(wildcard $(abs_srcdir)/ltx-src/*),)
12+
13+
BINARY=ltx
14+
15+
MAKE_TARGETS := $(BINARY)
16+
17+
CFLAGS+=-I$(abs_srcdir)/ltx-src/ -I$(abs_srcdir)/ltx-src/msgpack/
18+
19+
$(BINARY): $(wildcard $(abs_srcdir)/ltx-src/*.c $(abs_srcdir)/ltx-src/msgpack/*.c)
20+
ifdef VERBOSE
21+
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $^ $(LDLIBS) -o $@
22+
else
23+
@echo CC $@
24+
@$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $^ $(LDLIBS) -o $@
25+
endif
26+
27+
INSTALL_DIR := $(prefix)
28+
29+
endif
30+
31+
include $(top_srcdir)/include/mk/generic_leaf_target.mk

tools/ltx/ltx-src

Submodule ltx-src added at d6d1509

0 commit comments

Comments
 (0)