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/