shell: add chmod command check
PATCH 1/1 shell: add chmod command check
Signed-off-by mataotao <[email protected]>
--- runtest/commands | 1 + testcases/commands/chmod/Makefile | 11 ++++ testcases/commands/chmod/chmod_tests.sh | 83 +++++++++++++++++++++++++ 3 files changed, 95 insertions(+) create mode 100644 testcases/commands/chmod/Makefile create mode 100644 testcases/commands/chmod/chmod_tests.sh
runtest/commands +1 -0
@@ -13,6 +13,7 @@ cp01_sh cp_tests.sh ln01_sh ln_tests.sh mkdir01_sh mkdir_tests.sh echo_tests_sh echo_tests.sh +chmod_tests_sh chmod_tests.sh mv01_sh mv_tests.sh du01_sh du01.sh df01_sh df01.sh
testcases/commands/chmod/Makefile new file +11 -0
@@ -0,0 +1,11 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# Copyright (c) 2024 UnionTech Ltd. +# Author: Taotao Ma <[email protected]> + +top_srcdir ?= ../../.. + +include $(top_srcdir)/include/mk/testcases.mk + +INSTALL_TARGETS := chmod_tests.sh + +include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/commands/chmod/chmod_tests.sh new file +83 -0
83 lines not on this page · raw message
Signature · 5 lines
2.20.1 -- Mailing list info: https://lists.linux.it/listinfo/ltp
Hi Mataotao,
unfortunately for 'chmod' test applies the same as 'echo' test. This would be better to be added at the project which implements it (coreutils, busybox, ...).
Kind regards,
Petr
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp