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 <aleksa@amutable.com>,
Aleksa Sarai <cyphar@cyphar.com>
Subject: [PATCH 0/3] selftests: openat2: migrate to kselftests harness
Date: Wed, 01 Apr 2026 00:43:30 +1100 [thread overview]
Message-ID: <20260401-openat2-selftests-kunit-v1-0-5819ac6cadf5@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>
---
Aleksa Sarai (3):
selftests: openat2: move helpers to header
selftests: openat2: switch from custom ARRAY_LEN to ARRAY_SIZE
selftests: openat2: migrate to kselftest harness
tools/testing/selftests/openat2/Makefile | 2 -
tools/testing/selftests/openat2/helpers.c | 109 ------
tools/testing/selftests/openat2/helpers.h | 164 ++++++---
tools/testing/selftests/openat2/openat2_test.c | 223 ++++++-------
.../testing/selftests/openat2/rename_attack_test.c | 161 +++++----
tools/testing/selftests/openat2/resolve_test.c | 368 ++++++++++++---------
6 files changed, 494 insertions(+), 533 deletions(-)
---
base-commit: 5e4e16d498eccca363db526433803932921dd74f
change-id: 20260317-openat2-selftests-kunit-6939af23ee27
Kind regards,
--
Aleksa Sarai
https://www.cyphar.com/
next reply other threads:[~2026-03-31 13:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-31 13:43 Aleksa Sarai [this message]
2026-03-31 13:43 ` [PATCH 1/3] selftests: openat2: move helpers to header Aleksa Sarai
2026-03-31 13:43 ` [PATCH 2/3] selftests: openat2: switch from custom ARRAY_LEN to ARRAY_SIZE Aleksa Sarai
2026-03-31 13:43 ` [PATCH 3/3] selftests: openat2: migrate to kselftest harness Aleksa Sarai
2026-03-31 14:27 ` [PATCH 0/3] selftests: openat2: migrate to kselftests harness Christian Brauner
2026-03-31 15:10 ` Aleksa Sarai
2026-04-07 10:31 ` 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-v1-0-5819ac6cadf5@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®