Skip to content

openposix: Run the Open POSIX tests with kirk

Anders Roxell ltp 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 1 replyIn review
  2. v22 patches 2 repliesSuperseded
  3. v12 patches 2 repliesSuperseded

Changes in v3 from the cover letter

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

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4openposix: mqueues: Use one thread by defaulttestcases/open_posix_testsuite/stress/mqueues/multi_send_rev_1.c testcases/open_posix_testsuite/stress/mqueues/multi_send_rev_2.c+10 -61 reply
2/4openposix: Remove the .args filestestcases/open_posix_testsuite/bin/run-tests.sh testcases/open_posix_testsuite/stress/mqueues/mqueues_multi_send_rev_1.args testcases/open_posix_testsuite/stress/mqueues/mqueues_multi_send_rev_2.args+1 -30 replies
3/4openposix: Rebuild run.sh when the Makefile changestestcases/open_posix_testsuite/scripts/generate-makefiles.sh+1 -10 replies
4/4openposix: Add runtest files for kirktestcases/open_posix_testsuite/Makefile testcases/open_posix_testsuite/bin/Makefile testcases/open_posix_testsuite/bin/openposix_run.sh +2 more+82 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [LTP] [PATCH v3 0/4] openposix: Run the Open POSIX tests with kirk

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/[email protected]/
v1: https://lore.kernel.org/ltp/[email protected]/

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
Signature · 5 lines
2.53.0


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