diff options
| author | Aleksa Sarai <aleksa@amutable.com> | 2026-04-01 11:28:02 +1100 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-05-21 10:53:09 +0200 |
| commit | fe087927046cdbc7365bef4650d2d5451ce1ea8a (patch) | |
| tree | 0d66c16f04a30990bfc7aa110b07ca4fb0e08740 | |
| parent | 254f49634ee16a731174d2ae34bc50bd5f45e731 (diff) | |
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 <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>
| -rw-r--r-- | tools/testing/selftests/filesystems/openat2/.gitignore (renamed from tools/testing/selftests/openat2/.gitignore) | 0 | ||||
| -rw-r--r-- | tools/testing/selftests/filesystems/openat2/Makefile (renamed from tools/testing/selftests/openat2/Makefile) | 3 | ||||
| -rw-r--r-- | tools/testing/selftests/filesystems/openat2/helpers.c (renamed from tools/testing/selftests/openat2/helpers.c) | 0 | ||||
| -rw-r--r-- | tools/testing/selftests/filesystems/openat2/helpers.h (renamed from tools/testing/selftests/openat2/helpers.h) | 0 | ||||
| -rw-r--r-- | tools/testing/selftests/filesystems/openat2/openat2_test.c (renamed from tools/testing/selftests/openat2/openat2_test.c) | 0 | ||||
| -rw-r--r-- | tools/testing/selftests/filesystems/openat2/rename_attack_test.c (renamed from tools/testing/selftests/openat2/rename_attack_test.c) | 0 | ||||
| -rw-r--r-- | tools/testing/selftests/filesystems/openat2/resolve_test.c (renamed from tools/testing/selftests/openat2/resolve_test.c) | 0 |
7 files changed, 2 insertions, 1 deletions
diff --git a/tools/testing/selftests/openat2/.gitignore b/tools/testing/selftests/filesystems/openat2/.gitignore index 82a4846cbc4b..82a4846cbc4b 100644 --- a/tools/testing/selftests/openat2/.gitignore +++ b/tools/testing/selftests/filesystems/openat2/.gitignore diff --git a/tools/testing/selftests/openat2/Makefile b/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 index 5074681ffdc9..5074681ffdc9 100644 --- a/tools/testing/selftests/openat2/helpers.c +++ b/tools/testing/selftests/filesystems/openat2/helpers.c diff --git a/tools/testing/selftests/openat2/helpers.h b/tools/testing/selftests/filesystems/openat2/helpers.h index 510e60602511..510e60602511 100644 --- a/tools/testing/selftests/openat2/helpers.h +++ b/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 index 0e161ef9e9e4..0e161ef9e9e4 100644 --- a/tools/testing/selftests/openat2/openat2_test.c +++ b/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 index aa5699e45729..aa5699e45729 100644 --- a/tools/testing/selftests/openat2/rename_attack_test.c +++ b/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 index a76ef15ceb90..a76ef15ceb90 100644 --- a/tools/testing/selftests/openat2/resolve_test.c +++ b/tools/testing/selftests/filesystems/openat2/resolve_test.c |
