From: Aleksa Sarai <aleksa@amutable.com>
To: Shuah Khan <shuah@kernel.org>
Cc: Christian Brauner <brauner@kernel.org>,
linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-kselftest@vger.kernel.org,
Aleksa Sarai <cyphar@cyphar.com>,
Aleksa Sarai <aleksa@amutable.com>
Subject: [PATCH v2 0/4] selftests: openat2: migrate to kselftest harness
Date: Wed, 01 Apr 2026 11:28:01 +1100 [thread overview]
Message-ID: <20260401-openat2-selftests-kunit-v2-0-ad153a07da0c@amutable.com> (raw)
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/
next reply other threads:[~2026-04-01 0:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-01 0:28 Aleksa Sarai [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260401-openat2-selftests-kunit-v2-0-ad153a07da0c@amutable.com \
--to=aleksa@amutable.com \
--cc=brauner@kernel.org \
--cc=cyphar@cyphar.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=shuah@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®