linux-stable/tools/testing/selftests/exec
Mark Brown 47903c1d15 selftests/exec: Convert execveat test to generate KTAP output
Currently the execveat test does not produce KTAP output but rather a
custom format. This means that we only get a pass/fail for the suite, not
for each individual test that the suite does. Convert to using the standard
kselftest output functions which result in KTAP output being generated.

The main trick with this is that, being an exec() related test, the
program executes itself and returns specific exit codes to verify
success meaning that we need to only use the top level kselftest
header/summary functions when invoked directly rather than when run as
part of a test.

Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2023-10-05 14:50:03 -06:00
..
.gitignore selftests/exec: add generated files to .gitignore 2022-03-03 15:17:04 -07:00
binfmt_script.py selftests/exec: Rename file binfmt_script to binfmt_script.py 2022-02-23 17:25:29 -07:00
execveat.c selftests/exec: Convert execveat test to generate KTAP output 2023-10-05 14:50:03 -06:00
load_address.c tools/testing/selftests: add self-test for verifying load alignment 2020-10-16 11:11:21 -07:00
Makefile linux-kselftest-next-5.18-rc1 2022-03-23 12:53:00 -07:00
non-regular.c selftests/exec: add file type errno tests 2020-08-14 19:56:56 -07:00
null-argv.c selftests/exec: Test for empty string on NULL argv 2022-03-01 16:16:27 -08:00
recursion-depth.c exec selftests: test ->recursion_depth 2019-05-14 19:52:50 -07:00