All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH v2 0/2] openposix: Run the Open POSIX tests with kirk
@ 2026-11-04 22:50 Anders Roxell
  2026-11-04 22:50 ` [LTP] [PATCH v2 1/2] openposix: Install the .args files Anders Roxell
  2026-11-04 22:50 ` [LTP] [PATCH v2 2/2] openposix: Add runtest files for kirk Anders Roxell
  0 siblings, 2 replies; 7+ messages in thread
From: Anders Roxell @ 2026-11-04 22:50 UTC (permalink / raw)
  To: ltp, pvorel

Hi,

There are no runtest files for the Open POSIX tests, so kirk can not
run them. Patch 1 installs the missing .args files.

Patch 2 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 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.

Tested on arm64. I cross built the series and ran make install into a
DESTDIR with an old pthread_detach_1-2.run-test in it. The runtest
files have 1735 tests, and pthread_detach_1-2 is not one of them.

Then I ran them with kirk in QEMU (tuxrun), and 2 of the 1735 tests
fail. pthread_rwlock_unlock_3-1 fails like in v1. fork_7-1 is
unresolved because the rootfs has no gencat.

v1: https://lore.kernel.org/ltp/20261023123436.1274448-1-anders.roxell@linaro.org/

Cheers,
Anders

Anders Roxell (2):
  openposix: Install the .args files
  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 ++++++++++++++
 .../include/mk/config.mk.in                   |  3 ++
 .../scripts/generate-makefiles.sh             |  1 +
 .../scripts/generate-runtest.sh               | 38 +++++++++++++++++++
 6 files changed, 86 insertions(+), 2 deletions(-)
 create mode 100755 testcases/open_posix_testsuite/bin/openposix_run.sh
 create mode 100755 testcases/open_posix_testsuite/scripts/generate-runtest.sh

-- 
2.53.0


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

^ permalink raw reply	[flat|nested] 7+ messages in thread
* [LTP] [PATCH 1/2] openposix: Install the .args files
@ 2026-10-23 12:34 Anders Roxell
  2026-10-23 17:50 ` [LTP] " linuxtestproject.agent
  0 siblings, 1 reply; 7+ messages in thread
From: Anders Roxell @ 2026-10-23 12:34 UTC (permalink / raw)
  To: ltp, pvorel

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)/)
 	@if [ -d speculative ]; then \$(MAKE) -C speculative install; fi

 .PHONY: test
--
2.53.0


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

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-11-09 13:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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   ` [LTP] [PATCH v2 1/2] " Petr Vorel
2026-11-04 22:50 ` [LTP] [PATCH v2 2/2] openposix: Add runtest files for kirk Anders Roxell
  -- strict thread matches above, loose matches on Subject: below --
2026-10-23 12:34 [LTP] [PATCH 1/2] openposix: Install the .args files Anders Roxell
2026-10-23 17:50 ` [LTP] " linuxtestproject.agent
2026-10-29  7:03   ` Anders Roxell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.