From: Petr Vorel <pvorel@suse.cz>
To: Cyril Hrubis <chrubis@suse.cz>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH v3 2/4] Add support for mixing C and shell code
Date: Tue, 3 Sep 2024 10:24:15 +0200 [thread overview]
Message-ID: <20240903082415.GB728268@pevik> (raw)
In-Reply-To: <20240827120237.25805-3-chrubis@suse.cz>
Hi Cyril,
...
> diff --git a/testcases/lib/run_tests.sh b/testcases/lib/run_tests.sh
I hoped testcases/lib/run_tests.sh could be run in CI (and manually).
We have in the toplevel Makefile other test targets, could we add
testcases/lib/run_tests.sh to test-shell target?
1) Add test target to testcases/lib/tests/Makefile (similar to
metadata/tests/Makefile).
test:
@echo == Run C - shell integration tests ===
@./run_tests.sh
2) Add test target to testcases/lib/Makefile which would call test target in the
test/ directory (similar to metadata/Makefile).
test:
$(MAKE) -C $(abs_srcdir)/tests/ test
3) Add testing to the toplevel test-shell target + build dependency to testcases/lib/.
test-shell: lib-all
ifneq ($(build),$(host))
$(error running tests on cross-compile build not supported)
endif
$(call _test,-s)
$(MAKE) -C $(abs_top_builddir)/testcases/lib
$(MAKE) -C $(abs_top_srcdir)/testcases/lib test
> --- /dev/null
> +++ b/testcases/lib/run_tests.sh
> @@ -0,0 +1,11 @@
> +#!/bin/sh
> +
> +testdir=$(realpath $(dirname $0))
Not sure if there should be some quotes.
> +export PATH=$PATH:$testdir:$testdir/tests/
Also quotes here.
...
> diff --git a/testcases/lib/tests/Makefile b/testcases/lib/tests/Makefile
> new file mode 100644
> index 000000000..5a5cf5310
> --- /dev/null
> +++ b/testcases/lib/tests/Makefile
> @@ -0,0 +1,11 @@
> +# SPDX-License-Identifier: GPL-2.0-or-later
> +# Copyright (C) 2009, Cisco Systems Inc.
nit: Maybe LTP copyright? (copy paste error)
> +# Ngie Cooper, August 2009
nit: and you, or just replace Ngie?
> +
> +top_srcdir ?= ../../..
> +
> +include $(top_srcdir)/include/mk/testcases.mk
> +
> +INSTALL_TARGETS=
> +
> +include $(top_srcdir)/include/mk/generic_leaf_target.mk
The rest LGTM, but I'll have a deeper look today or tomorrow and try to play
with it.
Kind regards,
Petr
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2024-09-03 8:24 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-27 12:02 [LTP] [PATCH v3 0/4] Shell test library v3 Cyril Hrubis
2024-08-27 12:02 ` [LTP] [PATCH v3 1/4] include: tst_clone.h: Fix possible MUSL build failures Cyril Hrubis
2024-09-03 7:46 ` Petr Vorel
2024-09-03 8:02 ` Cyril Hrubis
2024-08-27 12:02 ` [LTP] [PATCH v3 2/4] Add support for mixing C and shell code Cyril Hrubis
2024-08-30 12:40 ` Andrea Cervesato via ltp
2024-09-03 7:29 ` Li Wang
2024-09-03 8:24 ` Petr Vorel [this message]
2024-09-16 9:52 ` Cyril Hrubis
2024-09-06 7:34 ` Li Wang
2024-09-06 9:53 ` Cyril Hrubis
2024-09-06 10:03 ` Cyril Hrubis
2024-09-06 10:09 ` Li Wang
2024-09-06 11:22 ` Cyril Hrubis
2024-09-06 13:28 ` Cyril Hrubis
2024-09-07 1:29 ` Li Wang
2024-09-06 10:19 ` Li Wang
2024-09-06 11:06 ` Li Wang
2024-08-27 12:02 ` [LTP] [PATCH v3 3/4] libs: Vendor ujson library Cyril Hrubis
2024-08-30 12:41 ` Andrea Cervesato via ltp
2024-09-16 9:58 ` Cyril Hrubis
2024-08-27 12:02 ` [LTP] [PATCH v3 4/4] testcaes/lib: Add shell loader Cyril Hrubis
2024-08-30 12:47 ` Andrea Cervesato via ltp
2024-09-16 10:04 ` Cyril Hrubis
2024-08-30 12:50 ` Andrea Cervesato via ltp
2024-09-16 10:02 ` Cyril Hrubis
2024-09-09 9:03 ` Li Wang
2024-09-16 10:08 ` [LTP] [PATCH v3 0/4] Shell test library v3 Cyril Hrubis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240903082415.GB728268@pevik \
--to=pvorel@suse.cz \
--cc=chrubis@suse.cz \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox