linux-kselftest.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] selftests/futex: Create test for robust list
@ 2024-10-10  1:11 André Almeida
  2024-10-10  1:11 ` [PATCH v3 1/2] selftests/futex: Add ASSERT_ macros André Almeida
  2024-10-10  1:11 ` [PATCH v3 2/2] selftests/futex: Create test for robust list André Almeida
  0 siblings, 2 replies; 4+ messages in thread
From: André Almeida @ 2024-10-10  1:11 UTC (permalink / raw)
  To: Thomas Gleixner, Ingo Molnar, Peter Zijlstra, Darren Hart,
	Davidlohr Bueso, Shuah Khan
  Cc: linux-kernel, linux-kselftest, kernel-dev, André Almeida

This patchset creates a selftest for the robust list interface, to track
regressions and assure that the interface keeps working as expected.

In this version I removed the kselftest_harness include, but I expanded the
current futex selftest API a little bit with basic ASSERT_ macros to make the
test easier to write and read. In the future, hopefully we can move all futex
selftests to the kselftest_harness API anyway.

Changes from v2:
- Create ASSERT_ macros for futex selftests
- Dropped kselftest_harness include, using just futex test API
- This is the expected output:
    
TAP version 13
1..6
ok 1 test_robustness
ok 2 test_set_robust_list_invalid_size
ok 3 test_get_robust_list_self
ok 4 test_get_robust_list_child
ok 5 test_set_list_op_pending
ok 6 test_robust_list_multiple_elements
# Totals: pass:6 fail:0 xfail:0 xpass:0 skip:0 error:0
https://lore.kernel.org/lkml/20240903134033.816500-1-andrealmeid@igalia.com

André Almeida (2):
  selftests/futex: Add ASSERT_ macros
  selftests/futex: Create test for robust list

 .../selftests/futex/functional/.gitignore     |   1 +
 .../selftests/futex/functional/Makefile       |   3 +-
 .../selftests/futex/functional/robust_list.c  | 512 ++++++++++++++++++
 .../testing/selftests/futex/include/logging.h |  28 +
 4 files changed, 543 insertions(+), 1 deletion(-)
 create mode 100644 tools/testing/selftests/futex/functional/robust_list.c

-- 
2.46.0


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

end of thread, other threads:[~2024-10-11 23:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-10  1:11 [PATCH v3 0/2] selftests/futex: Create test for robust list André Almeida
2024-10-10  1:11 ` [PATCH v3 1/2] selftests/futex: Add ASSERT_ macros André Almeida
2024-10-10  1:11 ` [PATCH v3 2/2] selftests/futex: Create test for robust list André Almeida
2024-10-11 23:03   ` kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).