[LTP] [PATCH v5 0/3] new cmd support option for needs_cmds
Wei Gao
wegao@suse.com
Mon Nov 10 03:47:52 CET 2025
v4->v5:
1.Remove https://patchwork.ozlabs.org/project/ltp/patch/20251107003041.28929-2-wegao@suse.com/
since already rewritten by Petr's another patch.
2.Fix ioctl_loop01.c rebase issue.
3.Add expression check such as "mkfs.ext4 >= 1.0.0" into test case.
Wei Gao (3):
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_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.51.0
More information about the ltp
mailing list