[LTP] [PATCH v6 0/4] new cmd support option for needs_cmds
Wei Gao
wegao@suse.com
Tue Dec 23 03:08:14 CET 2025
v5-v6:
1) Move the declaration and definition of tst_cmd_present to a separate commit
2) Modify function comments such as add ref:`...`
Wei Gao (4):
lib: Add support option for .needs_cmds
tst_test.c: Add tst_cmd_present check if a command is present
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_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 | 34 +++++------
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 | 28 +++++++++
testcases/lib/tst_run_shell.c | 61 ++++++++++++++++++-
30 files changed, 231 insertions(+), 104 deletions(-)
create mode 100755 testcases/lib/tests/shell_loader_cmd.sh
--
2.52.0
More information about the ltp
mailing list