mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/4] selftests: openat2: migrate to kselftest harness
@ 2026-04-01  0:28 Aleksa Sarai
  2026-04-01  0:28 ` [PATCH v2 1/4] selftests: move openat2 tests to selftests/filesystems/ Aleksa Sarai
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Aleksa Sarai @ 2026-04-01  0:28 UTC (permalink / raw)
  To: Shuah Khan
  Cc: Christian Brauner, linux-fsdevel, linux-kernel, linux-kselftest,
	Aleksa Sarai, Aleksa Sarai

These tests were written in the early days of selftests' TAP support,
the more modern kselftest harness is much easier to follow and maintain.
The actual contents of the tests are unchanged by this change.

Signed-off-by: Aleksa Sarai <aleksa@amutable.com>
---
Changes in v2:
- move openat2 tests to selftests/filesystems [Christian]
- v1: <https://lore.kernel.org/r/20260401-openat2-selftests-kunit-v1-0-5819ac6cadf5@amutable.com>

---
Aleksa Sarai (4):
      selftests: move openat2 tests to selftests/filesystems/
      selftests: openat2: move helpers to header
      selftests: openat2: switch from custom ARRAY_LEN to ARRAY_SIZE
      selftests: openat2: migrate to kselftest harness

 .../selftests/{ => filesystems}/openat2/.gitignore |   0
 .../selftests/{ => filesystems}/openat2/Makefile   |   5 +-
 .../selftests/filesystems/openat2/helpers.h        | 168 ++++++++++
 .../{ => filesystems}/openat2/openat2_test.c       | 223 ++++++-------
 .../filesystems/openat2/rename_attack_test.c       | 159 +++++++++
 .../{ => filesystems}/openat2/resolve_test.c       | 368 ++++++++++++---------
 tools/testing/selftests/openat2/helpers.c          | 109 ------
 tools/testing/selftests/openat2/helpers.h          | 108 ------
 .../testing/selftests/openat2/rename_attack_test.c | 160 ---------
 9 files changed, 631 insertions(+), 669 deletions(-)
---
base-commit: 84f524dca4b8bc9e9aca8ea1dbbd2aa3a239d998
change-id: 20260317-openat2-selftests-kunit-6939af23ee27


Kind regards,
-- 
Aleksa Sarai
https://www.cyphar.com/


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

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

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-04-01  0:28 [PATCH v2 0/4] selftests: openat2: migrate to kselftest harness Aleksa Sarai
2026-04-01  0:28 ` [PATCH v2 1/4] selftests: move openat2 tests to selftests/filesystems/ Aleksa Sarai
2026-04-01  0:28 ` [PATCH v2 2/4] selftests: openat2: move helpers to header Aleksa Sarai
2026-04-01  0:28 ` [PATCH v2 3/4] selftests: openat2: switch from custom ARRAY_LEN to ARRAY_SIZE Aleksa Sarai
2026-04-01  0:28 ` [PATCH v2 4/4] selftests: openat2: migrate to kselftest harness Aleksa Sarai
2026-04-09 13:30 ` [PATCH v2 0/4] " Christian Brauner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®