]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
selftests: move openat2 tests to selftests/filesystems/
authorAleksa Sarai <aleksa@amutable.com>
Wed, 1 Apr 2026 00:28:02 +0000 (11:28 +1100)
committerChristian Brauner <brauner@kernel.org>
Thu, 21 May 2026 08:53:09 +0000 (10:53 +0200)
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>
Link: https://patch.msgid.link/20260401-openat2-selftests-kunit-v2-1-ad153a07da0c@amutable.com
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
tools/testing/selftests/filesystems/openat2/.gitignore [moved from tools/testing/selftests/openat2/.gitignore with 100% similarity]
tools/testing/selftests/filesystems/openat2/Makefile [moved from tools/testing/selftests/openat2/Makefile with 91% similarity]
tools/testing/selftests/filesystems/openat2/helpers.c [moved from tools/testing/selftests/openat2/helpers.c with 100% similarity]
tools/testing/selftests/filesystems/openat2/helpers.h [moved from tools/testing/selftests/openat2/helpers.h with 100% similarity]
tools/testing/selftests/filesystems/openat2/openat2_test.c [moved from tools/testing/selftests/openat2/openat2_test.c with 100% similarity]
tools/testing/selftests/filesystems/openat2/rename_attack_test.c [moved from tools/testing/selftests/openat2/rename_attack_test.c with 100% similarity]
tools/testing/selftests/filesystems/openat2/resolve_test.c [moved from tools/testing/selftests/openat2/resolve_test.c with 100% similarity]

similarity index 91%
rename from tools/testing/selftests/openat2/Makefile
rename to tools/testing/selftests/filesystems/openat2/Makefile
index 185dc76ebb5fc44a63624a2d9795b2afc40b7a6c..f36dedccedb621b98d27b99a97e4ff9b073a302e 100644 (file)
@@ -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