[LTP] [PATCH v4 0/4] new cmd support option for needs_cmds
Wei Gao
wegao@suse.com
Fri Nov 7 01:30:23 CET 2025
v3->v4:
- Reorganize the patches so that each one compiles successfully
- Add new test case for needs_cmds
Wei Gao (4):
tst_cmd.c: Check brk_nosupp when tst_get_path failed
lib: Add support option for .needs_cmds
ioctl_loop01.c: Add new support .needs_cmds
shell_loader_cmd.sh: New test case check needs_cmds
include/tst_cmd.h | 13 ++++
include/tst_test.h | 16 ++++-
lib/newlib_tests/tst_needs_cmds01.c | 16 ++---
lib/newlib_tests/tst_needs_cmds02.c | 6 +-
lib/newlib_tests/tst_needs_cmds03.c | 6 +-
lib/newlib_tests/tst_needs_cmds04.c | 6 +-
lib/newlib_tests/tst_needs_cmds05.c | 6 +-
lib/newlib_tests/tst_needs_cmds06.c | 6 +-
lib/newlib_tests/tst_needs_cmds07.c | 6 +-
lib/newlib_tests/tst_needs_cmds08.c | 8 +--
lib/tst_cmd.c | 10 ++-
lib/tst_test.c | 22 +++++--
testcases/kernel/device-drivers/zram/zram03.c | 8 +--
testcases/kernel/fs/squashfs/squashfs01.c | 6 +-
testcases/kernel/security/aslr/aslr01.c | 6 +-
testcases/kernel/syscalls/add_key/add_key05.c | 10 +--
.../kernel/syscalls/fanotify/fanotify22.c | 6 +-
testcases/kernel/syscalls/ioctl/ioctl09.c | 6 +-
.../kernel/syscalls/ioctl/ioctl_loop01.c | 28 ++++-----
testcases/kernel/syscalls/madvise/madvise11.c | 8 +--
.../kernel/syscalls/quotactl/quotactl01.c | 6 +-
.../kernel/syscalls/quotactl/quotactl04.c | 6 +-
.../kernel/syscalls/quotactl/quotactl06.c | 6 +-
.../kernel/syscalls/quotactl/quotactl08.c | 6 +-
.../kernel/syscalls/quotactl/quotactl09.c | 6 +-
testcases/kernel/syscalls/statx/statx05.c | 8 +--
testcases/kernel/syscalls/statx/statx07.c | 6 +-
testcases/kernel/syscalls/statx/statx09.c | 6 +-
testcases/lib/run_tests.sh | 1 +
testcases/lib/tests/shell_loader_cmd.sh | 24 ++++++++
testcases/lib/tst_run_shell.c | 61 ++++++++++++++++++-
31 files changed, 232 insertions(+), 103 deletions(-)
create mode 100755 testcases/lib/tests/shell_loader_cmd.sh
--
2.51.0
More information about the ltp
mailing list