public inbox for linux-kselftest@vger.kernel.org
 help / color / mirror / Atom feed
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 1/4] selftests: move openat2 tests to selftests/filesystems/
Date: Wed, 01 Apr 2026 11:28:02 +1100	[thread overview]
Message-ID: <20260401-openat2-selftests-kunit-v2-1-ad153a07da0c@amutable.com> (raw)
In-Reply-To: <20260401-openat2-selftests-kunit-v2-0-ad153a07da0c@amutable.com>

These tests really should've always belonged there, doubly so now that
they include a lot of other generic filesystem-related tests.

Suggested-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Aleksa Sarai <aleksa@amutable.com>
---
 tools/testing/selftests/{ => filesystems}/openat2/.gitignore           | 0
 tools/testing/selftests/{ => filesystems}/openat2/Makefile             | 3 ++-
 tools/testing/selftests/{ => filesystems}/openat2/helpers.c            | 0
 tools/testing/selftests/{ => filesystems}/openat2/helpers.h            | 0
 tools/testing/selftests/{ => filesystems}/openat2/openat2_test.c       | 0
 tools/testing/selftests/{ => filesystems}/openat2/rename_attack_test.c | 0
 tools/testing/selftests/{ => filesystems}/openat2/resolve_test.c       | 0
 7 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/testing/selftests/openat2/.gitignore b/tools/testing/selftests/filesystems/openat2/.gitignore
similarity index 100%
rename from tools/testing/selftests/openat2/.gitignore
rename to tools/testing/selftests/filesystems/openat2/.gitignore
diff --git a/tools/testing/selftests/openat2/Makefile b/tools/testing/selftests/filesystems/openat2/Makefile
similarity index 91%
rename from tools/testing/selftests/openat2/Makefile
rename to tools/testing/selftests/filesystems/openat2/Makefile
index 185dc76ebb5f..f36dedccedb6 100644
--- a/tools/testing/selftests/openat2/Makefile
+++ b/tools/testing/selftests/filesystems/openat2/Makefile
@@ -1,5 +1,6 @@
 # SPDX-License-Identifier: GPL-2.0-or-later
 
+CFLAGS += $(KHDR_INCLUDES)
 CFLAGS += -Wall -O2 -g -fsanitize=address -fsanitize=undefined
 TEST_GEN_PROGS := openat2_test resolve_test rename_attack_test
 
@@ -13,6 +14,6 @@ endif
 
 LOCAL_HDRS += helpers.h
 
-include ../lib.mk
+include ../../lib.mk
 
 $(TEST_GEN_PROGS): helpers.c
diff --git a/tools/testing/selftests/openat2/helpers.c b/tools/testing/selftests/filesystems/openat2/helpers.c
similarity index 100%
rename from tools/testing/selftests/openat2/helpers.c
rename to tools/testing/selftests/filesystems/openat2/helpers.c
diff --git a/tools/testing/selftests/openat2/helpers.h b/tools/testing/selftests/filesystems/openat2/helpers.h
similarity index 100%
rename from tools/testing/selftests/openat2/helpers.h
rename to tools/testing/selftests/filesystems/openat2/helpers.h
diff --git a/tools/testing/selftests/openat2/openat2_test.c b/tools/testing/selftests/filesystems/openat2/openat2_test.c
similarity index 100%
rename from tools/testing/selftests/openat2/openat2_test.c
rename to tools/testing/selftests/filesystems/openat2/openat2_test.c
diff --git a/tools/testing/selftests/openat2/rename_attack_test.c b/tools/testing/selftests/filesystems/openat2/rename_attack_test.c
similarity index 100%
rename from tools/testing/selftests/openat2/rename_attack_test.c
rename to tools/testing/selftests/filesystems/openat2/rename_attack_test.c
diff --git a/tools/testing/selftests/openat2/resolve_test.c b/tools/testing/selftests/filesystems/openat2/resolve_test.c
similarity index 100%
rename from tools/testing/selftests/openat2/resolve_test.c
rename to tools/testing/selftests/filesystems/openat2/resolve_test.c

-- 
2.53.0


  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 [PATCH v2 0/4] selftests: openat2: migrate to kselftest harness Aleksa Sarai
2026-04-01  0:28 ` Aleksa Sarai [this message]
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-1-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