[LTP] [PATCH v3 0/4] openposix: Run the Open POSIX tests with kirk
Anders Roxell
anders.roxell@linaro.org
Wed Nov 25 22:09:29 CET 2026
Hi,
There are no runtest files for the Open POSIX tests, so kirk can not
run them.
Patch 1 and 2 make the two mqueues_multi_send_rev tests use one thread
by default and remove the .args files. Patch 3 rebuilds run.sh when
the Makefile changes. Patch 4 generates runtest/openposix-* at install
time. Each line calls a small wrapper that maps the Open POSIX exit
codes to the LTP ones.
Changes in v3:
- Drop "openposix: Install the .args files". Instead use one thread by
default in multi_send_rev_1 and multi_send_rev_2, and remove the
.args files and the code in run-tests.sh that reads them. (Petr)
- The runtest files do not read .args files any more.
- New patch: rebuild run.sh when the Makefile changes.
Changes in v2:
- Take the list of tests from the installed run.sh files. v1 used all
the files in DESTDIR, so it picked up old tests left from an earlier
install, like pthread_detach_1-2. (LTP AI Reviewer)
This does not cover a removed test directory: its old run.sh stays in
DESTDIR, so its tests are still listed.
openposix_run.sh does not use t0 like run-tests.sh does. So a hung test
is stopped by the kirk timeout and not after 300 seconds. The kirk
default is 1h for one test and also 1h for the whole suite.
I ran all three runtest files with kirk on qemu-arm64, with a 6.18.54
kernel and a Debian forky rootfs. 1735 tests ran in about 17 minutes:
1694 pass, 40 TCONF and 1 fail (pthread_rwlock_unlock_3-1). The
mqueues_multi_send_rev tests pass with the default of one thread.
v2: https://lore.kernel.org/ltp/20261104225051.402911-1-anders.roxell@linaro.org/
v1: https://lore.kernel.org/ltp/20261023123436.1274448-1-anders.roxell@linaro.org/
Cheers,
Anders
Anders Roxell (4):
openposix: mqueues: Use one thread by default
openposix: Remove the .args files
openposix: Rebuild run.sh when the Makefile changes
openposix: Add runtest files for kirk
testcases/open_posix_testsuite/Makefile | 11 +++++-
testcases/open_posix_testsuite/bin/Makefile | 6 +++-
.../open_posix_testsuite/bin/openposix_run.sh | 29 +++++++++++++++
.../open_posix_testsuite/bin/run-tests.sh | 2 +-
.../include/mk/config.mk.in | 3 ++
.../scripts/generate-makefiles.sh | 2 +-
.../scripts/generate-runtest.sh | 35 +++++++++++++++++++
.../mqueues/mqueues_multi_send_rev_1.args | 1 -
.../mqueues/mqueues_multi_send_rev_2.args | 1 -
.../stress/mqueues/multi_send_rev_1.c | 8 +++--
.../stress/mqueues/multi_send_rev_2.c | 8 +++--
11 files changed, 94 insertions(+), 12 deletions(-)
create mode 100755 testcases/open_posix_testsuite/bin/openposix_run.sh
create mode 100755 testcases/open_posix_testsuite/scripts/generate-runtest.sh
delete mode 100644 testcases/open_posix_testsuite/stress/mqueues/mqueues_multi_send_rev_1.args
delete mode 100644 testcases/open_posix_testsuite/stress/mqueues/mqueues_multi_send_rev_2.args
--
2.53.0
More information about the ltp
mailing list