execve: Move KUnit tests to tests/ subdirectory
Subsystems (3)
Kees Cook
maintainerPATCH v2 1/1 execve: Move KUnit tests to tests/ subdirectory
Move the exec KUnit tests into a separate directory to avoid polluting the local directory namespace. Additionally update MAINTAINERS for the new files and mark myself as Maintainer.
---
v1: https://lore.kernel.org/lkml/[email protected]/
v2: file suffix changed to _kunit instead of _test
I'll toss this into -next and send it to Linus before -rc1 closes.
---
Cc: David Gow <[email protected]>
Cc: Alexander Viro <[email protected]>
Cc: Christian Brauner <[email protected]>
Cc: Jan Kara <[email protected]>
Cc: Eric Biederman <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: [email protected]
Cc: [email protected]
---
MAINTAINERS | 5 +++--
fs/binfmt_elf.c | 2 +-
fs/exec.c | 2 +-
fs/{binfmt_elf_test.c => tests/binfmt_elf_kunit.c} | 0
fs/{exec_test.c => tests/exec_kunit.c} | 0
5 files changed, 5 insertions(+), 4 deletions(-)
rename fs/{binfmt_elf_test.c => tests/binfmt_elf_kunit.c} (100%)
rename fs/{exec_test.c => tests/exec_kunit.c} (100%)MAINTAINERS +3 -2
@@ -8211,8 +8211,8 @@ S: Maintained F: rust/kernel/net/phy.rs EXEC & BINFMT API, ELF +M: Kees Cook <[email protected]> R: Eric Biederman <[email protected]> -R: Kees Cook <[email protected]> L: [email protected] S: Supported T: git git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git for-next/execve
@@ -8220,7 +8220,8 @@ F: Documentation/userspace-api/ELF.rst F: fs/*binfmt_*.c F: fs/Kconfig.binfmt F: fs/exec.c -F: fs/exec_test.c +F: fs/tests/binfmt_*_kunit.c +F: fs/tests/exec_kunit.c F: include/linux/binfmts.h F: include/linux/elf.h F: include/uapi/linux/binfmts.h
fs/binfmt_elf.c +1 -1
@@ -2152,5 +2152,5 @@ core_initcall(init_elf_binfmt);module_exit (exit_elf_binfmt);#ifdef CONFIG_BINFMT_ELF_KUNIT_TEST -#include "binfmt_elf_test.c" +#include "tests/binfmt_elf_kunit.c" #endif
fs/exec.c +1 -1
@@ -2244,5 +2244,5 @@ fs_initcall(init_fs_exec_sysctls);#endif /* CONFIG_SYSCTL */ #ifdef CONFIG_EXEC_KUNIT_TEST -#include "exec_test.c" +#include "tests/exec_kunit.c" #endif
fs/tests/binfmt_elf_kunit.c renamed from fs/binfmt_elf_test.c +0 -0
fs/tests/exec_kunit.c renamed from fs/exec_test.c +0 -0
Signature · 1 line
2.34.1
Quoted 11 lines · Kees Cook
Move the exec KUnit tests into a separate directory to avoid polluting the local directory namespace. Additionally update
MAINTAINERSfor the new files and mark myself as Maintainer.Reviewed-by David Gow <[email protected]>Reviewed-by SeongJae Park <[email protected]>Signed-off-by Kees Cook <[email protected]>---
v1: https://lore.kernel.org/lkml/[email protected]/
v2: file suffix changed to_kunitinstead of_test
I'll toss this into -next and send it to Linus before -rc1 closes.