From: Aleksa Sarai Date: Wed, 1 Apr 2026 00:28:02 +0000 (+1100) Subject: selftests: move openat2 tests to selftests/filesystems/ X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe087927046cdbc7365bef4650d2d5451ce1ea8a;p=thirdparty%2Flinux.git selftests: move openat2 tests to selftests/filesystems/ 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 Signed-off-by: Aleksa Sarai Link: https://patch.msgid.link/20260401-openat2-selftests-kunit-v2-1-ad153a07da0c@amutable.com Signed-off-by: Christian Brauner (Amutable) --- 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 185dc76ebb5fc..f36dedccedb62 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