From: Petr Vorel <pvorel@suse.cz>
To: Anders Roxell <anders.roxell@linaro.org>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH v2 1/2] openposix: Install the .args files
Date: Mon, 9 Nov 2026 14:00:49 +0100 [thread overview]
Message-ID: <20261109130049.GA631538@pevik> (raw)
In-Reply-To: <20261104225051.402911-2-anders.roxell@linaro.org>
Hi Anders,
> run-tests.sh reads the arguments for a test from a .args file next to
> it, but make install does not copy the .args files. So on an installed
> system the two mqueues_multi_send_rev tests run without the number of
> threads and fail with a usage message.
> Install the .args files together with the tests.
> Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
> ---
> testcases/open_posix_testsuite/scripts/generate-makefiles.sh | 1 +
> 1 file changed, 1 insertion(+)
> diff --git a/testcases/open_posix_testsuite/scripts/generate-makefiles.sh b/testcases/open_posix_testsuite/scripts/generate-makefiles.sh
> index 1c12a456cc41..19c781ba8054 100755
> --- a/testcases/open_posix_testsuite/scripts/generate-makefiles.sh
> +++ b/testcases/open_posix_testsuite/scripts/generate-makefiles.sh
> @@ -182,6 +182,7 @@ install: \$(INSTALL_DIR) run.sh
> \$(INSTALL_DIR)/\$\$file; \\
> fi; \\
> done
> + \$(if \$(wildcard \$(srcdir)/*.args),install -m 00644 \$(wildcard \$(srcdir)/*.args) \$(INSTALL_DIR)/)
We talk about these 2 files:
$ git ls-files |grep args$
testcases/open_posix_testsuite/stress/mqueues/mqueues_multi_send_rev_1.args
testcases/open_posix_testsuite/stress/mqueues/mqueues_multi_send_rev_2.args
Looking at the use:
sh -c "$SCRIPT_DIR/t0 $TIMEOUT_VAL ./$1 $(cat ./$(echo "$1" | sed 's,\.[^\.]*,,').args 2>/dev/null)" > $complog 2>&1
Uh, that ugly run-tests.sh should be rewritten.
Ideally, we would get rid of these 2 files, i.e. the in multi_send_rev_[12].c I
would #define some constant for the default value and replace
if ((2 != argc) || ((num = atoi(argv[1])) <= 0)) {
fprintf(stderr, "Usage: %s number_of_threads\n", argv[0]);
return PTS_FAIL;
}
with using it if argc < 2.
(+ remove <getopt.h>)
And update run-tests.sh to remove that section.
Would you mind to send v2 doing it?
Kind regards,
Petr
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2026-11-09 13:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-04 22:50 [LTP] [PATCH v2 0/2] openposix: Run the Open POSIX tests with kirk Anders Roxell
2026-11-04 22:50 ` [LTP] [PATCH v2 1/2] openposix: Install the .args files Anders Roxell
2026-11-05 0:39 ` [LTP] " linuxtestproject.agent
2026-11-09 13:00 ` Petr Vorel [this message]
2026-11-04 22:50 ` [LTP] [PATCH v2 2/2] openposix: Add runtest files for kirk Anders Roxell
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=20261109130049.GA631538@pevik \
--to=pvorel@suse.cz \
--cc=anders.roxell@linaro.org \
--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