From d0be29ec20f7d4c4e6f026d270f838c457a4d90f Mon Sep 17 00:00:00 2001 From: propelluo Date: Sun, 17 May 2026 21:36:39 +0800 Subject: [PATCH 1/2] update tst-open-ltp Signed-off-by: propelluo --- tst-open-ltp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tst-open-ltp b/tst-open-ltp index a4efb0e..01614cd 160000 --- a/tst-open-ltp +++ b/tst-open-ltp @@ -1 +1 @@ -Subproject commit a4efb0e351e3fdb29a170ad5cda3e0b4499476db +Subproject commit 01614cde43132e7da9f3c9ba7703ead576caa424 -- Gitee From d9b85e20c46ef6236017c8197eb73cf26b9063f7 Mon Sep 17 00:00:00 2001 From: propelluo Date: Sun, 17 May 2026 22:05:12 +0800 Subject: [PATCH 2/2] update testcase for 8cd7644 Signed-off-by: propelluo --- .../ltp.crypto.af_alg08.sh} | 28 ++++++---- testcase/cve/ltp.cve.cve-2025-21756.sh | 51 +++++++++++++++++++ testcase/cve/ltp.cve.cve-2026-31431.sh | 51 +++++++++++++++++++ testcase/cve/ltp.cve.cve-2026-43284.sh | 51 +++++++++++++++++++ testcase/cve/ltp.cve.cve-2026-46300.sh | 51 +++++++++++++++++++ testcase/ima/ltp.ima.ima_conditionals.sh | 41 --------------- .../ima/ltp.ima.ima_conditionals_fgroup.sh | 51 +++++++++++++++++++ .../ima/ltp.ima.ima_conditionals_fowner.sh | 51 +++++++++++++++++++ testcase/ima/ltp.ima.ima_conditionals_gid.sh | 51 +++++++++++++++++++ testcase/ima/ltp.ima.ima_conditionals_uid.sh | 51 +++++++++++++++++++ .../ltp.ltp-aiodio.part4.DI004.sh | 41 --------------- .../ltp.ltp-aiodio.part4.DI005.sh | 41 --------------- .../ltp.ltp-aiodio.part4.DI006.sh | 41 --------------- .../ltp.ltp-aiodio.part4.DI007.sh | 41 --------------- .../ltp.ltp-aiodio.part4.DI008.sh | 41 --------------- .../ltp.ltp-aiodio.part4.DI009.sh | 41 --------------- .../ltp.ltp-aiodio.part4.DIO00.sh | 41 --------------- .../ltp.ltp-aiodio.part4.DIO01.sh | 41 --------------- .../ltp.ltp-aiodio.part4.DIO02.sh | 41 --------------- .../ltp.ltp-aiodio.part4.DIO03.sh | 41 --------------- .../ltp.ltp-aiodio.part4.DIO04.sh | 41 --------------- .../ltp.ltp-aiodio.part4.DIO05.sh | 41 --------------- .../ltp.ltp-aiodio.part4.DIO06.sh | 41 --------------- .../ltp.ltp-aiodio.part4.DIO07.sh | 41 --------------- .../ltp.ltp-aiodio.part4.DIO08.sh | 41 --------------- .../ltp.ltp-aiodio.part4.DIO09.sh | 41 --------------- .../ltp.ltp-aiodio.part4.DS000.sh | 41 --------------- .../ltp.ltp-aiodio.part4.DS001.sh | 41 --------------- .../ltp.ltp-aiodio.part4.DS002.sh | 41 --------------- .../ltp.ltp-aiodio.part4.DS003.sh | 41 --------------- .../ltp.ltp-aiodio.part4.DS004.sh | 41 --------------- .../ltp.ltp-aiodio.part4.DS005.sh | 41 --------------- .../ltp.ltp-aiodio.part4.DS006.sh | 41 --------------- .../ltp.ltp-aiodio.part4.DS007.sh | 41 --------------- .../ltp.ltp-aiodio.part4.DS008.sh | 41 --------------- .../ltp.ltp-aiodio.part4.DS009.sh | 41 --------------- ...ltp.power_management_tests.runpwtests01.sh | 41 --------------- ...ltp.power_management_tests.runpwtests02.sh | 41 --------------- ..._tests_exclusive.runpwtests_exclusive01.sh | 41 --------------- ..._tests_exclusive.runpwtests_exclusive02.sh | 41 --------------- ..._tests_exclusive.runpwtests_exclusive03.sh | 41 --------------- ..._tests_exclusive.runpwtests_exclusive04.sh | 41 --------------- ..._tests_exclusive.runpwtests_exclusive05.sh | 41 --------------- testcase/s390x_tests/ltp.s390x_tests.vmcp.sh | 41 --------------- .../ltp.syscalls.chdir02.sh} | 28 ++++++---- testcase/syscalls/ltp.syscalls.clone10.sh | 51 +++++++++++++++++++ testcase/syscalls/ltp.syscalls.clone11.sh | 51 +++++++++++++++++++ testcase/syscalls/ltp.syscalls.clone304.sh | 51 +++++++++++++++++++ testcase/syscalls/ltp.syscalls.fanotify25.sh | 51 +++++++++++++++++++ testcase/syscalls/ltp.syscalls.file_attr05.sh | 51 +++++++++++++++++++ testcase/syscalls/ltp.syscalls.io_submit04.sh | 51 +++++++++++++++++++ testcase/syscalls/ltp.syscalls.io_uring03.sh | 51 +++++++++++++++++++ .../syscalls/ltp.syscalls.ioctl_getlbmd01.sh | 51 +++++++++++++++++++ testcase/syscalls/ltp.syscalls.mremap07.sh | 51 +++++++++++++++++++ .../ltp.syscalls.name_to_handle_at03.sh | 51 +++++++++++++++++++ .../ltp.syscalls.poll03.sh} | 28 ++++++---- .../ltp.syscalls.poll04.sh} | 28 ++++++---- .../syscalls/ltp.syscalls.userfaultfd02.sh | 51 +++++++++++++++++++ .../syscalls/ltp.syscalls.userfaultfd03.sh | 51 +++++++++++++++++++ .../syscalls/ltp.syscalls.userfaultfd04.sh | 51 +++++++++++++++++++ .../syscalls/ltp.syscalls.userfaultfd05.sh | 51 +++++++++++++++++++ .../syscalls/ltp.syscalls.userfaultfd06.sh | 51 +++++++++++++++++++ testcase/tracing/ltp.tracing.fanotify25.sh | 51 +++++++++++++++++++ 63 files changed, 1300 insertions(+), 1471 deletions(-) rename testcase/{ltp-aiodio.part4/ltp.ltp-aiodio.part4.DI003.sh => crypto/ltp.crypto.af_alg08.sh} (58%) create mode 100755 testcase/cve/ltp.cve.cve-2025-21756.sh create mode 100755 testcase/cve/ltp.cve.cve-2026-31431.sh create mode 100755 testcase/cve/ltp.cve.cve-2026-43284.sh create mode 100755 testcase/cve/ltp.cve.cve-2026-46300.sh delete mode 100755 testcase/ima/ltp.ima.ima_conditionals.sh create mode 100755 testcase/ima/ltp.ima.ima_conditionals_fgroup.sh create mode 100755 testcase/ima/ltp.ima.ima_conditionals_fowner.sh create mode 100755 testcase/ima/ltp.ima.ima_conditionals_gid.sh create mode 100755 testcase/ima/ltp.ima.ima_conditionals_uid.sh delete mode 100755 testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DI004.sh delete mode 100755 testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DI005.sh delete mode 100755 testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DI006.sh delete mode 100755 testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DI007.sh delete mode 100755 testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DI008.sh delete mode 100755 testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DI009.sh delete mode 100755 testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DIO00.sh delete mode 100755 testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DIO01.sh delete mode 100755 testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DIO02.sh delete mode 100755 testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DIO03.sh delete mode 100755 testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DIO04.sh delete mode 100755 testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DIO05.sh delete mode 100755 testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DIO06.sh delete mode 100755 testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DIO07.sh delete mode 100755 testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DIO08.sh delete mode 100755 testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DIO09.sh delete mode 100755 testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DS000.sh delete mode 100755 testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DS001.sh delete mode 100755 testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DS002.sh delete mode 100755 testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DS003.sh delete mode 100755 testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DS004.sh delete mode 100755 testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DS005.sh delete mode 100755 testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DS006.sh delete mode 100755 testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DS007.sh delete mode 100755 testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DS008.sh delete mode 100755 testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DS009.sh delete mode 100755 testcase/power_management_tests/ltp.power_management_tests.runpwtests01.sh delete mode 100755 testcase/power_management_tests/ltp.power_management_tests.runpwtests02.sh delete mode 100755 testcase/power_management_tests_exclusive/ltp.power_management_tests_exclusive.runpwtests_exclusive01.sh delete mode 100755 testcase/power_management_tests_exclusive/ltp.power_management_tests_exclusive.runpwtests_exclusive02.sh delete mode 100755 testcase/power_management_tests_exclusive/ltp.power_management_tests_exclusive.runpwtests_exclusive03.sh delete mode 100755 testcase/power_management_tests_exclusive/ltp.power_management_tests_exclusive.runpwtests_exclusive04.sh delete mode 100755 testcase/power_management_tests_exclusive/ltp.power_management_tests_exclusive.runpwtests_exclusive05.sh delete mode 100755 testcase/s390x_tests/ltp.s390x_tests.vmcp.sh rename testcase/{ltp-aiodio.part4/ltp.ltp-aiodio.part4.DI002.sh => syscalls/ltp.syscalls.chdir02.sh} (58%) create mode 100755 testcase/syscalls/ltp.syscalls.clone10.sh create mode 100755 testcase/syscalls/ltp.syscalls.clone11.sh create mode 100755 testcase/syscalls/ltp.syscalls.clone304.sh create mode 100755 testcase/syscalls/ltp.syscalls.fanotify25.sh create mode 100755 testcase/syscalls/ltp.syscalls.file_attr05.sh create mode 100755 testcase/syscalls/ltp.syscalls.io_submit04.sh create mode 100755 testcase/syscalls/ltp.syscalls.io_uring03.sh create mode 100755 testcase/syscalls/ltp.syscalls.ioctl_getlbmd01.sh create mode 100755 testcase/syscalls/ltp.syscalls.mremap07.sh create mode 100755 testcase/syscalls/ltp.syscalls.name_to_handle_at03.sh rename testcase/{ltp-aiodio.part4/ltp.ltp-aiodio.part4.DI000.sh => syscalls/ltp.syscalls.poll03.sh} (58%) rename testcase/{ltp-aiodio.part4/ltp.ltp-aiodio.part4.DI001.sh => syscalls/ltp.syscalls.poll04.sh} (58%) create mode 100755 testcase/syscalls/ltp.syscalls.userfaultfd02.sh create mode 100755 testcase/syscalls/ltp.syscalls.userfaultfd03.sh create mode 100755 testcase/syscalls/ltp.syscalls.userfaultfd04.sh create mode 100755 testcase/syscalls/ltp.syscalls.userfaultfd05.sh create mode 100755 testcase/syscalls/ltp.syscalls.userfaultfd06.sh create mode 100755 testcase/tracing/ltp.tracing.fanotify25.sh diff --git a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DI003.sh b/testcase/crypto/ltp.crypto.af_alg08.sh similarity index 58% rename from testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DI003.sh rename to testcase/crypto/ltp.crypto.af_alg08.sh index f30927a..273b271 100755 --- a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DI003.sh +++ b/testcase/crypto/ltp.crypto.af_alg08.sh @@ -1,21 +1,31 @@ #!/bin/bash ############################################################################### -# @用例ID: 20220630-212959-238368931 -# @用例名称: ltp.ltp-aiodio.part4.DI003 -# @用例级别: 1 +# @用例ID: 20260517-220256-678115339 +# @用例名称: ltp.crypto.af_alg08 +# @用例级别: 3 # @用例标签: +# @扩展属性: # @用例类型: 功能测试 # @自动化: 1 +# @超时时间: 0 +# @用例描述: TODO: 简要描述用例测试的内容 ############################################################################### -[ -z "$TST_TS_TOPDIR" ] && { - TST_TS_TOPDIR="$(realpath "$(dirname "$0")/../..")" +if [ -z "$TST_TS_TOPDIR" ]; then + TST_TS_TOPDIR="$(realpath "$(dirname "$0")/..")" + while [ "$TST_TS_TOPDIR" != "/" ]; do + [ -f "${TST_TS_TOPDIR}/tsuite" ] && break + TST_TS_TOPDIR="$(dirname "$TST_TS_TOPDIR")" + done export TST_TS_TOPDIR -} +fi source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 ############################################################################### +g_tmpdir="$(mktemp -d)" + tc_setup() { msg "this is tc_setup" + # @预置条件: return 0 } @@ -23,16 +33,16 @@ tc_setup() { do_test() { msg "this is do_test" - # @测试步骤:1: 执行用例ltp.ltp-aiodio.part4.DI003 + # @测试步骤:1: 执行用例ltp.crypto.af_alg08 # @预期结果:1: 用例返回0 - ltp_run_testcase ltp-aiodio.part4 DI003 + ltp_run_testcase crypto af_alg08 assert_true [ $? -eq 0 ] - return 0 } tc_teardown() { msg "this is tc_teardown" + rm -rfv "$g_tmpdir" || return 1 return 0 } diff --git a/testcase/cve/ltp.cve.cve-2025-21756.sh b/testcase/cve/ltp.cve.cve-2025-21756.sh new file mode 100755 index 0000000..b996e4e --- /dev/null +++ b/testcase/cve/ltp.cve.cve-2025-21756.sh @@ -0,0 +1,51 @@ +#!/bin/bash +############################################################################### +# @用例ID: 20260517-220256-763964977 +# @用例名称: ltp.cve.cve-2025-21756 +# @用例级别: 3 +# @用例标签: +# @扩展属性: +# @用例类型: 功能测试 +# @自动化: 1 +# @超时时间: 0 +# @用例描述: TODO: 简要描述用例测试的内容 +############################################################################### +if [ -z "$TST_TS_TOPDIR" ]; then + TST_TS_TOPDIR="$(realpath "$(dirname "$0")/..")" + while [ "$TST_TS_TOPDIR" != "/" ]; do + [ -f "${TST_TS_TOPDIR}/tsuite" ] && break + TST_TS_TOPDIR="$(dirname "$TST_TS_TOPDIR")" + done + export TST_TS_TOPDIR +fi +source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 +############################################################################### + +g_tmpdir="$(mktemp -d)" + +tc_setup() { + msg "this is tc_setup" + + # @预置条件: + return 0 +} + +do_test() { + msg "this is do_test" + + # @测试步骤:1: 执行用例ltp.cve.cve-2025-21756 + # @预期结果:1: 用例返回0 + ltp_run_testcase cve cve-2025-21756 + assert_true [ $? -eq 0 ] + return 0 +} + +tc_teardown() { + msg "this is tc_teardown" + rm -rfv "$g_tmpdir" || return 1 + return 0 +} + +############################################################################### +tst_main "$@" +############################################################################### diff --git a/testcase/cve/ltp.cve.cve-2026-31431.sh b/testcase/cve/ltp.cve.cve-2026-31431.sh new file mode 100755 index 0000000..b6edabf --- /dev/null +++ b/testcase/cve/ltp.cve.cve-2026-31431.sh @@ -0,0 +1,51 @@ +#!/bin/bash +############################################################################### +# @用例ID: 20260517-220256-849290866 +# @用例名称: ltp.cve.cve-2026-31431 +# @用例级别: 3 +# @用例标签: +# @扩展属性: +# @用例类型: 功能测试 +# @自动化: 1 +# @超时时间: 0 +# @用例描述: TODO: 简要描述用例测试的内容 +############################################################################### +if [ -z "$TST_TS_TOPDIR" ]; then + TST_TS_TOPDIR="$(realpath "$(dirname "$0")/..")" + while [ "$TST_TS_TOPDIR" != "/" ]; do + [ -f "${TST_TS_TOPDIR}/tsuite" ] && break + TST_TS_TOPDIR="$(dirname "$TST_TS_TOPDIR")" + done + export TST_TS_TOPDIR +fi +source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 +############################################################################### + +g_tmpdir="$(mktemp -d)" + +tc_setup() { + msg "this is tc_setup" + + # @预置条件: + return 0 +} + +do_test() { + msg "this is do_test" + + # @测试步骤:1: 执行用例ltp.cve.cve-2026-31431 + # @预期结果:1: 用例返回0 + ltp_run_testcase cve cve-2026-31431 + assert_true [ $? -eq 0 ] + return 0 +} + +tc_teardown() { + msg "this is tc_teardown" + rm -rfv "$g_tmpdir" || return 1 + return 0 +} + +############################################################################### +tst_main "$@" +############################################################################### diff --git a/testcase/cve/ltp.cve.cve-2026-43284.sh b/testcase/cve/ltp.cve.cve-2026-43284.sh new file mode 100755 index 0000000..1bd2d34 --- /dev/null +++ b/testcase/cve/ltp.cve.cve-2026-43284.sh @@ -0,0 +1,51 @@ +#!/bin/bash +############################################################################### +# @用例ID: 20260517-220256-933432239 +# @用例名称: ltp.cve.cve-2026-43284 +# @用例级别: 3 +# @用例标签: +# @扩展属性: +# @用例类型: 功能测试 +# @自动化: 1 +# @超时时间: 0 +# @用例描述: TODO: 简要描述用例测试的内容 +############################################################################### +if [ -z "$TST_TS_TOPDIR" ]; then + TST_TS_TOPDIR="$(realpath "$(dirname "$0")/..")" + while [ "$TST_TS_TOPDIR" != "/" ]; do + [ -f "${TST_TS_TOPDIR}/tsuite" ] && break + TST_TS_TOPDIR="$(dirname "$TST_TS_TOPDIR")" + done + export TST_TS_TOPDIR +fi +source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 +############################################################################### + +g_tmpdir="$(mktemp -d)" + +tc_setup() { + msg "this is tc_setup" + + # @预置条件: + return 0 +} + +do_test() { + msg "this is do_test" + + # @测试步骤:1: 执行用例ltp.cve.cve-2026-43284 + # @预期结果:1: 用例返回0 + ltp_run_testcase cve cve-2026-43284 + assert_true [ $? -eq 0 ] + return 0 +} + +tc_teardown() { + msg "this is tc_teardown" + rm -rfv "$g_tmpdir" || return 1 + return 0 +} + +############################################################################### +tst_main "$@" +############################################################################### diff --git a/testcase/cve/ltp.cve.cve-2026-46300.sh b/testcase/cve/ltp.cve.cve-2026-46300.sh new file mode 100755 index 0000000..f292d91 --- /dev/null +++ b/testcase/cve/ltp.cve.cve-2026-46300.sh @@ -0,0 +1,51 @@ +#!/bin/bash +############################################################################### +# @用例ID: 20260517-220257-020351765 +# @用例名称: ltp.cve.cve-2026-46300 +# @用例级别: 3 +# @用例标签: +# @扩展属性: +# @用例类型: 功能测试 +# @自动化: 1 +# @超时时间: 0 +# @用例描述: TODO: 简要描述用例测试的内容 +############################################################################### +if [ -z "$TST_TS_TOPDIR" ]; then + TST_TS_TOPDIR="$(realpath "$(dirname "$0")/..")" + while [ "$TST_TS_TOPDIR" != "/" ]; do + [ -f "${TST_TS_TOPDIR}/tsuite" ] && break + TST_TS_TOPDIR="$(dirname "$TST_TS_TOPDIR")" + done + export TST_TS_TOPDIR +fi +source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 +############################################################################### + +g_tmpdir="$(mktemp -d)" + +tc_setup() { + msg "this is tc_setup" + + # @预置条件: + return 0 +} + +do_test() { + msg "this is do_test" + + # @测试步骤:1: 执行用例ltp.cve.cve-2026-46300 + # @预期结果:1: 用例返回0 + ltp_run_testcase cve cve-2026-46300 + assert_true [ $? -eq 0 ] + return 0 +} + +tc_teardown() { + msg "this is tc_teardown" + rm -rfv "$g_tmpdir" || return 1 + return 0 +} + +############################################################################### +tst_main "$@" +############################################################################### diff --git a/testcase/ima/ltp.ima.ima_conditionals.sh b/testcase/ima/ltp.ima.ima_conditionals.sh deleted file mode 100755 index af73338..0000000 --- a/testcase/ima/ltp.ima.ima_conditionals.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash -############################################################################### -# @用例ID: 20220630-212955-777207214 -# @用例名称: ltp.ima.ima_conditionals -# @用例级别: 1 -# @用例标签: 待分析 -# @用例类型: 功能测试 -# @自动化: 1 -############################################################################### -[ -z "$TST_TS_TOPDIR" ] && { - TST_TS_TOPDIR="$(realpath "$(dirname "$0")/../..")" - export TST_TS_TOPDIR -} -source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 -############################################################################### - -tc_setup() { - msg "this is tc_setup" - # @预置条件: - return 0 -} - -do_test() { - msg "this is do_test" - - # @测试步骤:1: 执行用例ltp.ima.ima_conditionals - # @预期结果:1: 用例返回0 - ltp_run_testcase ima ima_conditionals - assert_true [ $? -eq 0 ] - - return 0 -} - -tc_teardown() { - msg "this is tc_teardown" - return 0 -} - -############################################################################### -tst_main "$@" -############################################################################### diff --git a/testcase/ima/ltp.ima.ima_conditionals_fgroup.sh b/testcase/ima/ltp.ima.ima_conditionals_fgroup.sh new file mode 100755 index 0000000..8431dcd --- /dev/null +++ b/testcase/ima/ltp.ima.ima_conditionals_fgroup.sh @@ -0,0 +1,51 @@ +#!/bin/bash +############################################################################### +# @用例ID: 20260517-220257-105032077 +# @用例名称: ltp.ima.ima_conditionals_fgroup +# @用例级别: 3 +# @用例标签: +# @扩展属性: +# @用例类型: 功能测试 +# @自动化: 1 +# @超时时间: 0 +# @用例描述: TODO: 简要描述用例测试的内容 +############################################################################### +if [ -z "$TST_TS_TOPDIR" ]; then + TST_TS_TOPDIR="$(realpath "$(dirname "$0")/..")" + while [ "$TST_TS_TOPDIR" != "/" ]; do + [ -f "${TST_TS_TOPDIR}/tsuite" ] && break + TST_TS_TOPDIR="$(dirname "$TST_TS_TOPDIR")" + done + export TST_TS_TOPDIR +fi +source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 +############################################################################### + +g_tmpdir="$(mktemp -d)" + +tc_setup() { + msg "this is tc_setup" + + # @预置条件: + return 0 +} + +do_test() { + msg "this is do_test" + + # @测试步骤:1: 执行用例ltp.ima.ima_conditionals_fgroup + # @预期结果:1: 用例返回0 + ltp_run_testcase ima ima_conditionals_fgroup + assert_true [ $? -eq 0 ] + return 0 +} + +tc_teardown() { + msg "this is tc_teardown" + rm -rfv "$g_tmpdir" || return 1 + return 0 +} + +############################################################################### +tst_main "$@" +############################################################################### diff --git a/testcase/ima/ltp.ima.ima_conditionals_fowner.sh b/testcase/ima/ltp.ima.ima_conditionals_fowner.sh new file mode 100755 index 0000000..aef3469 --- /dev/null +++ b/testcase/ima/ltp.ima.ima_conditionals_fowner.sh @@ -0,0 +1,51 @@ +#!/bin/bash +############################################################################### +# @用例ID: 20260517-220257-193595040 +# @用例名称: ltp.ima.ima_conditionals_fowner +# @用例级别: 3 +# @用例标签: +# @扩展属性: +# @用例类型: 功能测试 +# @自动化: 1 +# @超时时间: 0 +# @用例描述: TODO: 简要描述用例测试的内容 +############################################################################### +if [ -z "$TST_TS_TOPDIR" ]; then + TST_TS_TOPDIR="$(realpath "$(dirname "$0")/..")" + while [ "$TST_TS_TOPDIR" != "/" ]; do + [ -f "${TST_TS_TOPDIR}/tsuite" ] && break + TST_TS_TOPDIR="$(dirname "$TST_TS_TOPDIR")" + done + export TST_TS_TOPDIR +fi +source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 +############################################################################### + +g_tmpdir="$(mktemp -d)" + +tc_setup() { + msg "this is tc_setup" + + # @预置条件: + return 0 +} + +do_test() { + msg "this is do_test" + + # @测试步骤:1: 执行用例ltp.ima.ima_conditionals_fowner + # @预期结果:1: 用例返回0 + ltp_run_testcase ima ima_conditionals_fowner + assert_true [ $? -eq 0 ] + return 0 +} + +tc_teardown() { + msg "this is tc_teardown" + rm -rfv "$g_tmpdir" || return 1 + return 0 +} + +############################################################################### +tst_main "$@" +############################################################################### diff --git a/testcase/ima/ltp.ima.ima_conditionals_gid.sh b/testcase/ima/ltp.ima.ima_conditionals_gid.sh new file mode 100755 index 0000000..934c1ec --- /dev/null +++ b/testcase/ima/ltp.ima.ima_conditionals_gid.sh @@ -0,0 +1,51 @@ +#!/bin/bash +############################################################################### +# @用例ID: 20260517-220257-280668512 +# @用例名称: ltp.ima.ima_conditionals_gid +# @用例级别: 3 +# @用例标签: +# @扩展属性: +# @用例类型: 功能测试 +# @自动化: 1 +# @超时时间: 0 +# @用例描述: TODO: 简要描述用例测试的内容 +############################################################################### +if [ -z "$TST_TS_TOPDIR" ]; then + TST_TS_TOPDIR="$(realpath "$(dirname "$0")/..")" + while [ "$TST_TS_TOPDIR" != "/" ]; do + [ -f "${TST_TS_TOPDIR}/tsuite" ] && break + TST_TS_TOPDIR="$(dirname "$TST_TS_TOPDIR")" + done + export TST_TS_TOPDIR +fi +source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 +############################################################################### + +g_tmpdir="$(mktemp -d)" + +tc_setup() { + msg "this is tc_setup" + + # @预置条件: + return 0 +} + +do_test() { + msg "this is do_test" + + # @测试步骤:1: 执行用例ltp.ima.ima_conditionals_gid + # @预期结果:1: 用例返回0 + ltp_run_testcase ima ima_conditionals_gid + assert_true [ $? -eq 0 ] + return 0 +} + +tc_teardown() { + msg "this is tc_teardown" + rm -rfv "$g_tmpdir" || return 1 + return 0 +} + +############################################################################### +tst_main "$@" +############################################################################### diff --git a/testcase/ima/ltp.ima.ima_conditionals_uid.sh b/testcase/ima/ltp.ima.ima_conditionals_uid.sh new file mode 100755 index 0000000..fe66e16 --- /dev/null +++ b/testcase/ima/ltp.ima.ima_conditionals_uid.sh @@ -0,0 +1,51 @@ +#!/bin/bash +############################################################################### +# @用例ID: 20260517-220257-364732917 +# @用例名称: ltp.ima.ima_conditionals_uid +# @用例级别: 3 +# @用例标签: +# @扩展属性: +# @用例类型: 功能测试 +# @自动化: 1 +# @超时时间: 0 +# @用例描述: TODO: 简要描述用例测试的内容 +############################################################################### +if [ -z "$TST_TS_TOPDIR" ]; then + TST_TS_TOPDIR="$(realpath "$(dirname "$0")/..")" + while [ "$TST_TS_TOPDIR" != "/" ]; do + [ -f "${TST_TS_TOPDIR}/tsuite" ] && break + TST_TS_TOPDIR="$(dirname "$TST_TS_TOPDIR")" + done + export TST_TS_TOPDIR +fi +source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 +############################################################################### + +g_tmpdir="$(mktemp -d)" + +tc_setup() { + msg "this is tc_setup" + + # @预置条件: + return 0 +} + +do_test() { + msg "this is do_test" + + # @测试步骤:1: 执行用例ltp.ima.ima_conditionals_uid + # @预期结果:1: 用例返回0 + ltp_run_testcase ima ima_conditionals_uid + assert_true [ $? -eq 0 ] + return 0 +} + +tc_teardown() { + msg "this is tc_teardown" + rm -rfv "$g_tmpdir" || return 1 + return 0 +} + +############################################################################### +tst_main "$@" +############################################################################### diff --git a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DI004.sh b/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DI004.sh deleted file mode 100755 index f6db12b..0000000 --- a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DI004.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash -############################################################################### -# @用例ID: 20220630-212959-255531792 -# @用例名称: ltp.ltp-aiodio.part4.DI004 -# @用例级别: 1 -# @用例标签: -# @用例类型: 功能测试 -# @自动化: 1 -############################################################################### -[ -z "$TST_TS_TOPDIR" ] && { - TST_TS_TOPDIR="$(realpath "$(dirname "$0")/../..")" - export TST_TS_TOPDIR -} -source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 -############################################################################### - -tc_setup() { - msg "this is tc_setup" - # @预置条件: - return 0 -} - -do_test() { - msg "this is do_test" - - # @测试步骤:1: 执行用例ltp.ltp-aiodio.part4.DI004 - # @预期结果:1: 用例返回0 - ltp_run_testcase ltp-aiodio.part4 DI004 - assert_true [ $? -eq 0 ] - - return 0 -} - -tc_teardown() { - msg "this is tc_teardown" - return 0 -} - -############################################################################### -tst_main "$@" -############################################################################### diff --git a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DI005.sh b/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DI005.sh deleted file mode 100755 index 17a143e..0000000 --- a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DI005.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash -############################################################################### -# @用例ID: 20220630-212959-272926887 -# @用例名称: ltp.ltp-aiodio.part4.DI005 -# @用例级别: 1 -# @用例标签: -# @用例类型: 功能测试 -# @自动化: 1 -############################################################################### -[ -z "$TST_TS_TOPDIR" ] && { - TST_TS_TOPDIR="$(realpath "$(dirname "$0")/../..")" - export TST_TS_TOPDIR -} -source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 -############################################################################### - -tc_setup() { - msg "this is tc_setup" - # @预置条件: - return 0 -} - -do_test() { - msg "this is do_test" - - # @测试步骤:1: 执行用例ltp.ltp-aiodio.part4.DI005 - # @预期结果:1: 用例返回0 - ltp_run_testcase ltp-aiodio.part4 DI005 - assert_true [ $? -eq 0 ] - - return 0 -} - -tc_teardown() { - msg "this is tc_teardown" - return 0 -} - -############################################################################### -tst_main "$@" -############################################################################### diff --git a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DI006.sh b/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DI006.sh deleted file mode 100755 index 9f8ea44..0000000 --- a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DI006.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash -############################################################################### -# @用例ID: 20220630-212959-290724315 -# @用例名称: ltp.ltp-aiodio.part4.DI006 -# @用例级别: 1 -# @用例标签: -# @用例类型: 功能测试 -# @自动化: 1 -############################################################################### -[ -z "$TST_TS_TOPDIR" ] && { - TST_TS_TOPDIR="$(realpath "$(dirname "$0")/../..")" - export TST_TS_TOPDIR -} -source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 -############################################################################### - -tc_setup() { - msg "this is tc_setup" - # @预置条件: - return 0 -} - -do_test() { - msg "this is do_test" - - # @测试步骤:1: 执行用例ltp.ltp-aiodio.part4.DI006 - # @预期结果:1: 用例返回0 - ltp_run_testcase ltp-aiodio.part4 DI006 - assert_true [ $? -eq 0 ] - - return 0 -} - -tc_teardown() { - msg "this is tc_teardown" - return 0 -} - -############################################################################### -tst_main "$@" -############################################################################### diff --git a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DI007.sh b/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DI007.sh deleted file mode 100755 index 777b2be..0000000 --- a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DI007.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash -############################################################################### -# @用例ID: 20220630-212959-311858077 -# @用例名称: ltp.ltp-aiodio.part4.DI007 -# @用例级别: 1 -# @用例标签: -# @用例类型: 功能测试 -# @自动化: 1 -############################################################################### -[ -z "$TST_TS_TOPDIR" ] && { - TST_TS_TOPDIR="$(realpath "$(dirname "$0")/../..")" - export TST_TS_TOPDIR -} -source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 -############################################################################### - -tc_setup() { - msg "this is tc_setup" - # @预置条件: - return 0 -} - -do_test() { - msg "this is do_test" - - # @测试步骤:1: 执行用例ltp.ltp-aiodio.part4.DI007 - # @预期结果:1: 用例返回0 - ltp_run_testcase ltp-aiodio.part4 DI007 - assert_true [ $? -eq 0 ] - - return 0 -} - -tc_teardown() { - msg "this is tc_teardown" - return 0 -} - -############################################################################### -tst_main "$@" -############################################################################### diff --git a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DI008.sh b/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DI008.sh deleted file mode 100755 index df26b6c..0000000 --- a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DI008.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash -############################################################################### -# @用例ID: 20220630-212959-329127587 -# @用例名称: ltp.ltp-aiodio.part4.DI008 -# @用例级别: 1 -# @用例标签: -# @用例类型: 功能测试 -# @自动化: 1 -############################################################################### -[ -z "$TST_TS_TOPDIR" ] && { - TST_TS_TOPDIR="$(realpath "$(dirname "$0")/../..")" - export TST_TS_TOPDIR -} -source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 -############################################################################### - -tc_setup() { - msg "this is tc_setup" - # @预置条件: - return 0 -} - -do_test() { - msg "this is do_test" - - # @测试步骤:1: 执行用例ltp.ltp-aiodio.part4.DI008 - # @预期结果:1: 用例返回0 - ltp_run_testcase ltp-aiodio.part4 DI008 - assert_true [ $? -eq 0 ] - - return 0 -} - -tc_teardown() { - msg "this is tc_teardown" - return 0 -} - -############################################################################### -tst_main "$@" -############################################################################### diff --git a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DI009.sh b/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DI009.sh deleted file mode 100755 index a2a5cdf..0000000 --- a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DI009.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash -############################################################################### -# @用例ID: 20220630-212959-349466251 -# @用例名称: ltp.ltp-aiodio.part4.DI009 -# @用例级别: 1 -# @用例标签: -# @用例类型: 功能测试 -# @自动化: 1 -############################################################################### -[ -z "$TST_TS_TOPDIR" ] && { - TST_TS_TOPDIR="$(realpath "$(dirname "$0")/../..")" - export TST_TS_TOPDIR -} -source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 -############################################################################### - -tc_setup() { - msg "this is tc_setup" - # @预置条件: - return 0 -} - -do_test() { - msg "this is do_test" - - # @测试步骤:1: 执行用例ltp.ltp-aiodio.part4.DI009 - # @预期结果:1: 用例返回0 - ltp_run_testcase ltp-aiodio.part4 DI009 - assert_true [ $? -eq 0 ] - - return 0 -} - -tc_teardown() { - msg "this is tc_teardown" - return 0 -} - -############################################################################### -tst_main "$@" -############################################################################### diff --git a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DIO00.sh b/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DIO00.sh deleted file mode 100755 index a69e532..0000000 --- a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DIO00.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash -############################################################################### -# @用例ID: 20220630-212959-367937179 -# @用例名称: ltp.ltp-aiodio.part4.DIO00 -# @用例级别: 1 -# @用例标签: -# @用例类型: 功能测试 -# @自动化: 1 -############################################################################### -[ -z "$TST_TS_TOPDIR" ] && { - TST_TS_TOPDIR="$(realpath "$(dirname "$0")/../..")" - export TST_TS_TOPDIR -} -source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 -############################################################################### - -tc_setup() { - msg "this is tc_setup" - # @预置条件: - return 0 -} - -do_test() { - msg "this is do_test" - - # @测试步骤:1: 执行用例ltp.ltp-aiodio.part4.DIO00 - # @预期结果:1: 用例返回0 - ltp_run_testcase ltp-aiodio.part4 DIO00 - assert_true [ $? -eq 0 ] - - return 0 -} - -tc_teardown() { - msg "this is tc_teardown" - return 0 -} - -############################################################################### -tst_main "$@" -############################################################################### diff --git a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DIO01.sh b/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DIO01.sh deleted file mode 100755 index 9aa96f5..0000000 --- a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DIO01.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash -############################################################################### -# @用例ID: 20220630-212959-376525643 -# @用例名称: ltp.ltp-aiodio.part4.DIO01 -# @用例级别: 1 -# @用例标签: -# @用例类型: 功能测试 -# @自动化: 1 -############################################################################### -[ -z "$TST_TS_TOPDIR" ] && { - TST_TS_TOPDIR="$(realpath "$(dirname "$0")/../..")" - export TST_TS_TOPDIR -} -source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 -############################################################################### - -tc_setup() { - msg "this is tc_setup" - # @预置条件: - return 0 -} - -do_test() { - msg "this is do_test" - - # @测试步骤:1: 执行用例ltp.ltp-aiodio.part4.DIO01 - # @预期结果:1: 用例返回0 - ltp_run_testcase ltp-aiodio.part4 DIO01 - assert_true [ $? -eq 0 ] - - return 0 -} - -tc_teardown() { - msg "this is tc_teardown" - return 0 -} - -############################################################################### -tst_main "$@" -############################################################################### diff --git a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DIO02.sh b/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DIO02.sh deleted file mode 100755 index 46bbee0..0000000 --- a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DIO02.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash -############################################################################### -# @用例ID: 20220630-212959-385268736 -# @用例名称: ltp.ltp-aiodio.part4.DIO02 -# @用例级别: 1 -# @用例标签: -# @用例类型: 功能测试 -# @自动化: 1 -############################################################################### -[ -z "$TST_TS_TOPDIR" ] && { - TST_TS_TOPDIR="$(realpath "$(dirname "$0")/../..")" - export TST_TS_TOPDIR -} -source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 -############################################################################### - -tc_setup() { - msg "this is tc_setup" - # @预置条件: - return 0 -} - -do_test() { - msg "this is do_test" - - # @测试步骤:1: 执行用例ltp.ltp-aiodio.part4.DIO02 - # @预期结果:1: 用例返回0 - ltp_run_testcase ltp-aiodio.part4 DIO02 - assert_true [ $? -eq 0 ] - - return 0 -} - -tc_teardown() { - msg "this is tc_teardown" - return 0 -} - -############################################################################### -tst_main "$@" -############################################################################### diff --git a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DIO03.sh b/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DIO03.sh deleted file mode 100755 index f36cb5d..0000000 --- a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DIO03.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash -############################################################################### -# @用例ID: 20220630-212959-393869983 -# @用例名称: ltp.ltp-aiodio.part4.DIO03 -# @用例级别: 1 -# @用例标签: -# @用例类型: 功能测试 -# @自动化: 1 -############################################################################### -[ -z "$TST_TS_TOPDIR" ] && { - TST_TS_TOPDIR="$(realpath "$(dirname "$0")/../..")" - export TST_TS_TOPDIR -} -source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 -############################################################################### - -tc_setup() { - msg "this is tc_setup" - # @预置条件: - return 0 -} - -do_test() { - msg "this is do_test" - - # @测试步骤:1: 执行用例ltp.ltp-aiodio.part4.DIO03 - # @预期结果:1: 用例返回0 - ltp_run_testcase ltp-aiodio.part4 DIO03 - assert_true [ $? -eq 0 ] - - return 0 -} - -tc_teardown() { - msg "this is tc_teardown" - return 0 -} - -############################################################################### -tst_main "$@" -############################################################################### diff --git a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DIO04.sh b/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DIO04.sh deleted file mode 100755 index f031182..0000000 --- a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DIO04.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash -############################################################################### -# @用例ID: 20220630-212959-402457845 -# @用例名称: ltp.ltp-aiodio.part4.DIO04 -# @用例级别: 1 -# @用例标签: -# @用例类型: 功能测试 -# @自动化: 1 -############################################################################### -[ -z "$TST_TS_TOPDIR" ] && { - TST_TS_TOPDIR="$(realpath "$(dirname "$0")/../..")" - export TST_TS_TOPDIR -} -source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 -############################################################################### - -tc_setup() { - msg "this is tc_setup" - # @预置条件: - return 0 -} - -do_test() { - msg "this is do_test" - - # @测试步骤:1: 执行用例ltp.ltp-aiodio.part4.DIO04 - # @预期结果:1: 用例返回0 - ltp_run_testcase ltp-aiodio.part4 DIO04 - assert_true [ $? -eq 0 ] - - return 0 -} - -tc_teardown() { - msg "this is tc_teardown" - return 0 -} - -############################################################################### -tst_main "$@" -############################################################################### diff --git a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DIO05.sh b/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DIO05.sh deleted file mode 100755 index 7bba175..0000000 --- a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DIO05.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash -############################################################################### -# @用例ID: 20220630-212959-411266170 -# @用例名称: ltp.ltp-aiodio.part4.DIO05 -# @用例级别: 1 -# @用例标签: -# @用例类型: 功能测试 -# @自动化: 1 -############################################################################### -[ -z "$TST_TS_TOPDIR" ] && { - TST_TS_TOPDIR="$(realpath "$(dirname "$0")/../..")" - export TST_TS_TOPDIR -} -source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 -############################################################################### - -tc_setup() { - msg "this is tc_setup" - # @预置条件: - return 0 -} - -do_test() { - msg "this is do_test" - - # @测试步骤:1: 执行用例ltp.ltp-aiodio.part4.DIO05 - # @预期结果:1: 用例返回0 - ltp_run_testcase ltp-aiodio.part4 DIO05 - assert_true [ $? -eq 0 ] - - return 0 -} - -tc_teardown() { - msg "this is tc_teardown" - return 0 -} - -############################################################################### -tst_main "$@" -############################################################################### diff --git a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DIO06.sh b/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DIO06.sh deleted file mode 100755 index 30505b3..0000000 --- a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DIO06.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash -############################################################################### -# @用例ID: 20220630-212959-419920396 -# @用例名称: ltp.ltp-aiodio.part4.DIO06 -# @用例级别: 1 -# @用例标签: -# @用例类型: 功能测试 -# @自动化: 1 -############################################################################### -[ -z "$TST_TS_TOPDIR" ] && { - TST_TS_TOPDIR="$(realpath "$(dirname "$0")/../..")" - export TST_TS_TOPDIR -} -source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 -############################################################################### - -tc_setup() { - msg "this is tc_setup" - # @预置条件: - return 0 -} - -do_test() { - msg "this is do_test" - - # @测试步骤:1: 执行用例ltp.ltp-aiodio.part4.DIO06 - # @预期结果:1: 用例返回0 - ltp_run_testcase ltp-aiodio.part4 DIO06 - assert_true [ $? -eq 0 ] - - return 0 -} - -tc_teardown() { - msg "this is tc_teardown" - return 0 -} - -############################################################################### -tst_main "$@" -############################################################################### diff --git a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DIO07.sh b/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DIO07.sh deleted file mode 100755 index 796c66c..0000000 --- a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DIO07.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash -############################################################################### -# @用例ID: 20220630-212959-428762956 -# @用例名称: ltp.ltp-aiodio.part4.DIO07 -# @用例级别: 1 -# @用例标签: -# @用例类型: 功能测试 -# @自动化: 1 -############################################################################### -[ -z "$TST_TS_TOPDIR" ] && { - TST_TS_TOPDIR="$(realpath "$(dirname "$0")/../..")" - export TST_TS_TOPDIR -} -source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 -############################################################################### - -tc_setup() { - msg "this is tc_setup" - # @预置条件: - return 0 -} - -do_test() { - msg "this is do_test" - - # @测试步骤:1: 执行用例ltp.ltp-aiodio.part4.DIO07 - # @预期结果:1: 用例返回0 - ltp_run_testcase ltp-aiodio.part4 DIO07 - assert_true [ $? -eq 0 ] - - return 0 -} - -tc_teardown() { - msg "this is tc_teardown" - return 0 -} - -############################################################################### -tst_main "$@" -############################################################################### diff --git a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DIO08.sh b/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DIO08.sh deleted file mode 100755 index a38c4aa..0000000 --- a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DIO08.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash -############################################################################### -# @用例ID: 20220630-212959-437344706 -# @用例名称: ltp.ltp-aiodio.part4.DIO08 -# @用例级别: 1 -# @用例标签: -# @用例类型: 功能测试 -# @自动化: 1 -############################################################################### -[ -z "$TST_TS_TOPDIR" ] && { - TST_TS_TOPDIR="$(realpath "$(dirname "$0")/../..")" - export TST_TS_TOPDIR -} -source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 -############################################################################### - -tc_setup() { - msg "this is tc_setup" - # @预置条件: - return 0 -} - -do_test() { - msg "this is do_test" - - # @测试步骤:1: 执行用例ltp.ltp-aiodio.part4.DIO08 - # @预期结果:1: 用例返回0 - ltp_run_testcase ltp-aiodio.part4 DIO08 - assert_true [ $? -eq 0 ] - - return 0 -} - -tc_teardown() { - msg "this is tc_teardown" - return 0 -} - -############################################################################### -tst_main "$@" -############################################################################### diff --git a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DIO09.sh b/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DIO09.sh deleted file mode 100755 index 503992b..0000000 --- a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DIO09.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash -############################################################################### -# @用例ID: 20220630-212959-445998191 -# @用例名称: ltp.ltp-aiodio.part4.DIO09 -# @用例级别: 1 -# @用例标签: -# @用例类型: 功能测试 -# @自动化: 1 -############################################################################### -[ -z "$TST_TS_TOPDIR" ] && { - TST_TS_TOPDIR="$(realpath "$(dirname "$0")/../..")" - export TST_TS_TOPDIR -} -source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 -############################################################################### - -tc_setup() { - msg "this is tc_setup" - # @预置条件: - return 0 -} - -do_test() { - msg "this is do_test" - - # @测试步骤:1: 执行用例ltp.ltp-aiodio.part4.DIO09 - # @预期结果:1: 用例返回0 - ltp_run_testcase ltp-aiodio.part4 DIO09 - assert_true [ $? -eq 0 ] - - return 0 -} - -tc_teardown() { - msg "this is tc_teardown" - return 0 -} - -############################################################################### -tst_main "$@" -############################################################################### diff --git a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DS000.sh b/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DS000.sh deleted file mode 100755 index 3b13a60..0000000 --- a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DS000.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash -############################################################################### -# @用例ID: 20220630-212959-194758204 -# @用例名称: ltp.ltp-aiodio.part4.DS000 -# @用例级别: 1 -# @用例标签: -# @用例类型: 功能测试 -# @自动化: 1 -############################################################################### -[ -z "$TST_TS_TOPDIR" ] && { - TST_TS_TOPDIR="$(realpath "$(dirname "$0")/../..")" - export TST_TS_TOPDIR -} -source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 -############################################################################### - -tc_setup() { - msg "this is tc_setup" - # @预置条件: - return 0 -} - -do_test() { - msg "this is do_test" - - # @测试步骤:1: 执行用例ltp.ltp-aiodio.part4.DS000 - # @预期结果:1: 用例返回0 - ltp_run_testcase ltp-aiodio.part4 DS000 - assert_true [ $? -eq 0 ] - - return 0 -} - -tc_teardown() { - msg "this is tc_teardown" - return 0 -} - -############################################################################### -tst_main "$@" -############################################################################### diff --git a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DS001.sh b/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DS001.sh deleted file mode 100755 index 513d7d4..0000000 --- a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DS001.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash -############################################################################### -# @用例ID: 20220630-212959-212396544 -# @用例名称: ltp.ltp-aiodio.part4.DS001 -# @用例级别: 1 -# @用例标签: -# @用例类型: 功能测试 -# @自动化: 1 -############################################################################### -[ -z "$TST_TS_TOPDIR" ] && { - TST_TS_TOPDIR="$(realpath "$(dirname "$0")/../..")" - export TST_TS_TOPDIR -} -source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 -############################################################################### - -tc_setup() { - msg "this is tc_setup" - # @预置条件: - return 0 -} - -do_test() { - msg "this is do_test" - - # @测试步骤:1: 执行用例ltp.ltp-aiodio.part4.DS001 - # @预期结果:1: 用例返回0 - ltp_run_testcase ltp-aiodio.part4 DS001 - assert_true [ $? -eq 0 ] - - return 0 -} - -tc_teardown() { - msg "this is tc_teardown" - return 0 -} - -############################################################################### -tst_main "$@" -############################################################################### diff --git a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DS002.sh b/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DS002.sh deleted file mode 100755 index 5a7b780..0000000 --- a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DS002.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash -############################################################################### -# @用例ID: 20220630-212959-229666835 -# @用例名称: ltp.ltp-aiodio.part4.DS002 -# @用例级别: 1 -# @用例标签: -# @用例类型: 功能测试 -# @自动化: 1 -############################################################################### -[ -z "$TST_TS_TOPDIR" ] && { - TST_TS_TOPDIR="$(realpath "$(dirname "$0")/../..")" - export TST_TS_TOPDIR -} -source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 -############################################################################### - -tc_setup() { - msg "this is tc_setup" - # @预置条件: - return 0 -} - -do_test() { - msg "this is do_test" - - # @测试步骤:1: 执行用例ltp.ltp-aiodio.part4.DS002 - # @预期结果:1: 用例返回0 - ltp_run_testcase ltp-aiodio.part4 DS002 - assert_true [ $? -eq 0 ] - - return 0 -} - -tc_teardown() { - msg "this is tc_teardown" - return 0 -} - -############################################################################### -tst_main "$@" -############################################################################### diff --git a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DS003.sh b/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DS003.sh deleted file mode 100755 index 4fa4960..0000000 --- a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DS003.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash -############################################################################### -# @用例ID: 20220630-212959-246962875 -# @用例名称: ltp.ltp-aiodio.part4.DS003 -# @用例级别: 1 -# @用例标签: -# @用例类型: 功能测试 -# @自动化: 1 -############################################################################### -[ -z "$TST_TS_TOPDIR" ] && { - TST_TS_TOPDIR="$(realpath "$(dirname "$0")/../..")" - export TST_TS_TOPDIR -} -source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 -############################################################################### - -tc_setup() { - msg "this is tc_setup" - # @预置条件: - return 0 -} - -do_test() { - msg "this is do_test" - - # @测试步骤:1: 执行用例ltp.ltp-aiodio.part4.DS003 - # @预期结果:1: 用例返回0 - ltp_run_testcase ltp-aiodio.part4 DS003 - assert_true [ $? -eq 0 ] - - return 0 -} - -tc_teardown() { - msg "this is tc_teardown" - return 0 -} - -############################################################################### -tst_main "$@" -############################################################################### diff --git a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DS004.sh b/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DS004.sh deleted file mode 100755 index 51b10f9..0000000 --- a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DS004.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash -############################################################################### -# @用例ID: 20220630-212959-264162705 -# @用例名称: ltp.ltp-aiodio.part4.DS004 -# @用例级别: 1 -# @用例标签: -# @用例类型: 功能测试 -# @自动化: 1 -############################################################################### -[ -z "$TST_TS_TOPDIR" ] && { - TST_TS_TOPDIR="$(realpath "$(dirname "$0")/../..")" - export TST_TS_TOPDIR -} -source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 -############################################################################### - -tc_setup() { - msg "this is tc_setup" - # @预置条件: - return 0 -} - -do_test() { - msg "this is do_test" - - # @测试步骤:1: 执行用例ltp.ltp-aiodio.part4.DS004 - # @预期结果:1: 用例返回0 - ltp_run_testcase ltp-aiodio.part4 DS004 - assert_true [ $? -eq 0 ] - - return 0 -} - -tc_teardown() { - msg "this is tc_teardown" - return 0 -} - -############################################################################### -tst_main "$@" -############################################################################### diff --git a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DS005.sh b/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DS005.sh deleted file mode 100755 index 322c17f..0000000 --- a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DS005.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash -############################################################################### -# @用例ID: 20220630-212959-281498820 -# @用例名称: ltp.ltp-aiodio.part4.DS005 -# @用例级别: 1 -# @用例标签: -# @用例类型: 功能测试 -# @自动化: 1 -############################################################################### -[ -z "$TST_TS_TOPDIR" ] && { - TST_TS_TOPDIR="$(realpath "$(dirname "$0")/../..")" - export TST_TS_TOPDIR -} -source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 -############################################################################### - -tc_setup() { - msg "this is tc_setup" - # @预置条件: - return 0 -} - -do_test() { - msg "this is do_test" - - # @测试步骤:1: 执行用例ltp.ltp-aiodio.part4.DS005 - # @预期结果:1: 用例返回0 - ltp_run_testcase ltp-aiodio.part4 DS005 - assert_true [ $? -eq 0 ] - - return 0 -} - -tc_teardown() { - msg "this is tc_teardown" - return 0 -} - -############################################################################### -tst_main "$@" -############################################################################### diff --git a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DS006.sh b/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DS006.sh deleted file mode 100755 index da48ec3..0000000 --- a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DS006.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash -############################################################################### -# @用例ID: 20220630-212959-301879282 -# @用例名称: ltp.ltp-aiodio.part4.DS006 -# @用例级别: 1 -# @用例标签: -# @用例类型: 功能测试 -# @自动化: 1 -############################################################################### -[ -z "$TST_TS_TOPDIR" ] && { - TST_TS_TOPDIR="$(realpath "$(dirname "$0")/../..")" - export TST_TS_TOPDIR -} -source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 -############################################################################### - -tc_setup() { - msg "this is tc_setup" - # @预置条件: - return 0 -} - -do_test() { - msg "this is do_test" - - # @测试步骤:1: 执行用例ltp.ltp-aiodio.part4.DS006 - # @预期结果:1: 用例返回0 - ltp_run_testcase ltp-aiodio.part4 DS006 - assert_true [ $? -eq 0 ] - - return 0 -} - -tc_teardown() { - msg "this is tc_teardown" - return 0 -} - -############################################################################### -tst_main "$@" -############################################################################### diff --git a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DS007.sh b/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DS007.sh deleted file mode 100755 index e029a02..0000000 --- a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DS007.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash -############################################################################### -# @用例ID: 20220630-212959-320476666 -# @用例名称: ltp.ltp-aiodio.part4.DS007 -# @用例级别: 1 -# @用例标签: -# @用例类型: 功能测试 -# @自动化: 1 -############################################################################### -[ -z "$TST_TS_TOPDIR" ] && { - TST_TS_TOPDIR="$(realpath "$(dirname "$0")/../..")" - export TST_TS_TOPDIR -} -source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 -############################################################################### - -tc_setup() { - msg "this is tc_setup" - # @预置条件: - return 0 -} - -do_test() { - msg "this is do_test" - - # @测试步骤:1: 执行用例ltp.ltp-aiodio.part4.DS007 - # @预期结果:1: 用例返回0 - ltp_run_testcase ltp-aiodio.part4 DS007 - assert_true [ $? -eq 0 ] - - return 0 -} - -tc_teardown() { - msg "this is tc_teardown" - return 0 -} - -############################################################################### -tst_main "$@" -############################################################################### diff --git a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DS008.sh b/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DS008.sh deleted file mode 100755 index b18d0eb..0000000 --- a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DS008.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash -############################################################################### -# @用例ID: 20220630-212959-340841620 -# @用例名称: ltp.ltp-aiodio.part4.DS008 -# @用例级别: 1 -# @用例标签: -# @用例类型: 功能测试 -# @自动化: 1 -############################################################################### -[ -z "$TST_TS_TOPDIR" ] && { - TST_TS_TOPDIR="$(realpath "$(dirname "$0")/../..")" - export TST_TS_TOPDIR -} -source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 -############################################################################### - -tc_setup() { - msg "this is tc_setup" - # @预置条件: - return 0 -} - -do_test() { - msg "this is do_test" - - # @测试步骤:1: 执行用例ltp.ltp-aiodio.part4.DS008 - # @预期结果:1: 用例返回0 - ltp_run_testcase ltp-aiodio.part4 DS008 - assert_true [ $? -eq 0 ] - - return 0 -} - -tc_teardown() { - msg "this is tc_teardown" - return 0 -} - -############################################################################### -tst_main "$@" -############################################################################### diff --git a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DS009.sh b/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DS009.sh deleted file mode 100755 index a692955..0000000 --- a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DS009.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash -############################################################################### -# @用例ID: 20220630-212959-358201960 -# @用例名称: ltp.ltp-aiodio.part4.DS009 -# @用例级别: 1 -# @用例标签: -# @用例类型: 功能测试 -# @自动化: 1 -############################################################################### -[ -z "$TST_TS_TOPDIR" ] && { - TST_TS_TOPDIR="$(realpath "$(dirname "$0")/../..")" - export TST_TS_TOPDIR -} -source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 -############################################################################### - -tc_setup() { - msg "this is tc_setup" - # @预置条件: - return 0 -} - -do_test() { - msg "this is do_test" - - # @测试步骤:1: 执行用例ltp.ltp-aiodio.part4.DS009 - # @预期结果:1: 用例返回0 - ltp_run_testcase ltp-aiodio.part4 DS009 - assert_true [ $? -eq 0 ] - - return 0 -} - -tc_teardown() { - msg "this is tc_teardown" - return 0 -} - -############################################################################### -tst_main "$@" -############################################################################### diff --git a/testcase/power_management_tests/ltp.power_management_tests.runpwtests01.sh b/testcase/power_management_tests/ltp.power_management_tests.runpwtests01.sh deleted file mode 100755 index 760958a..0000000 --- a/testcase/power_management_tests/ltp.power_management_tests.runpwtests01.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash -############################################################################### -# @用例ID: 20220630-213009-930510327 -# @用例名称: ltp.power_management_tests.runpwtests01 -# @用例级别: 1 -# @用例标签: -# @用例类型: 功能测试 -# @自动化: 1 -############################################################################### -[ -z "$TST_TS_TOPDIR" ] && { - TST_TS_TOPDIR="$(realpath "$(dirname "$0")/../..")" - export TST_TS_TOPDIR -} -source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 -############################################################################### - -tc_setup() { - msg "this is tc_setup" - # @预置条件: - return 0 -} - -do_test() { - msg "this is do_test" - - # @测试步骤:1: 执行用例ltp.power_management_tests.runpwtests01 - # @预期结果:1: 用例返回0 - ltp_run_testcase power_management_tests runpwtests01 - assert_true [ $? -eq 0 ] - - return 0 -} - -tc_teardown() { - msg "this is tc_teardown" - return 0 -} - -############################################################################### -tst_main "$@" -############################################################################### diff --git a/testcase/power_management_tests/ltp.power_management_tests.runpwtests02.sh b/testcase/power_management_tests/ltp.power_management_tests.runpwtests02.sh deleted file mode 100755 index 365e184..0000000 --- a/testcase/power_management_tests/ltp.power_management_tests.runpwtests02.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash -############################################################################### -# @用例ID: 20220630-213009-939204407 -# @用例名称: ltp.power_management_tests.runpwtests02 -# @用例级别: 1 -# @用例标签: -# @用例类型: 功能测试 -# @自动化: 1 -############################################################################### -[ -z "$TST_TS_TOPDIR" ] && { - TST_TS_TOPDIR="$(realpath "$(dirname "$0")/../..")" - export TST_TS_TOPDIR -} -source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 -############################################################################### - -tc_setup() { - msg "this is tc_setup" - # @预置条件: - return 0 -} - -do_test() { - msg "this is do_test" - - # @测试步骤:1: 执行用例ltp.power_management_tests.runpwtests02 - # @预期结果:1: 用例返回0 - ltp_run_testcase power_management_tests runpwtests02 - assert_true [ $? -eq 0 ] - - return 0 -} - -tc_teardown() { - msg "this is tc_teardown" - return 0 -} - -############################################################################### -tst_main "$@" -############################################################################### diff --git a/testcase/power_management_tests_exclusive/ltp.power_management_tests_exclusive.runpwtests_exclusive01.sh b/testcase/power_management_tests_exclusive/ltp.power_management_tests_exclusive.runpwtests_exclusive01.sh deleted file mode 100755 index 04a8ded..0000000 --- a/testcase/power_management_tests_exclusive/ltp.power_management_tests_exclusive.runpwtests_exclusive01.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash -############################################################################### -# @用例ID: 20220630-213009-977421652 -# @用例名称: ltp.power_management_tests_exclusive.runpwtests_exclusive01 -# @用例级别: 1 -# @用例标签: -# @用例类型: 功能测试 -# @自动化: 1 -############################################################################### -[ -z "$TST_TS_TOPDIR" ] && { - TST_TS_TOPDIR="$(realpath "$(dirname "$0")/../..")" - export TST_TS_TOPDIR -} -source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 -############################################################################### - -tc_setup() { - msg "this is tc_setup" - # @预置条件: - return 0 -} - -do_test() { - msg "this is do_test" - - # @测试步骤:1: 执行用例ltp.power_management_tests_exclusive.runpwtests_exclusive01 - # @预期结果:1: 用例返回0 - ltp_run_testcase power_management_tests_exclusive runpwtests_exclusive01 - assert_true [ $? -eq 0 ] - - return 0 -} - -tc_teardown() { - msg "this is tc_teardown" - return 0 -} - -############################################################################### -tst_main "$@" -############################################################################### diff --git a/testcase/power_management_tests_exclusive/ltp.power_management_tests_exclusive.runpwtests_exclusive02.sh b/testcase/power_management_tests_exclusive/ltp.power_management_tests_exclusive.runpwtests_exclusive02.sh deleted file mode 100755 index ae5d801..0000000 --- a/testcase/power_management_tests_exclusive/ltp.power_management_tests_exclusive.runpwtests_exclusive02.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash -############################################################################### -# @用例ID: 20220630-213009-985995738 -# @用例名称: ltp.power_management_tests_exclusive.runpwtests_exclusive02 -# @用例级别: 1 -# @用例标签: -# @用例类型: 功能测试 -# @自动化: 1 -############################################################################### -[ -z "$TST_TS_TOPDIR" ] && { - TST_TS_TOPDIR="$(realpath "$(dirname "$0")/../..")" - export TST_TS_TOPDIR -} -source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 -############################################################################### - -tc_setup() { - msg "this is tc_setup" - # @预置条件: - return 0 -} - -do_test() { - msg "this is do_test" - - # @测试步骤:1: 执行用例ltp.power_management_tests_exclusive.runpwtests_exclusive02 - # @预期结果:1: 用例返回0 - ltp_run_testcase power_management_tests_exclusive runpwtests_exclusive02 - assert_true [ $? -eq 0 ] - - return 0 -} - -tc_teardown() { - msg "this is tc_teardown" - return 0 -} - -############################################################################### -tst_main "$@" -############################################################################### diff --git a/testcase/power_management_tests_exclusive/ltp.power_management_tests_exclusive.runpwtests_exclusive03.sh b/testcase/power_management_tests_exclusive/ltp.power_management_tests_exclusive.runpwtests_exclusive03.sh deleted file mode 100755 index 458905e..0000000 --- a/testcase/power_management_tests_exclusive/ltp.power_management_tests_exclusive.runpwtests_exclusive03.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash -############################################################################### -# @用例ID: 20220630-213009-994633073 -# @用例名称: ltp.power_management_tests_exclusive.runpwtests_exclusive03 -# @用例级别: 1 -# @用例标签: -# @用例类型: 功能测试 -# @自动化: 1 -############################################################################### -[ -z "$TST_TS_TOPDIR" ] && { - TST_TS_TOPDIR="$(realpath "$(dirname "$0")/../..")" - export TST_TS_TOPDIR -} -source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 -############################################################################### - -tc_setup() { - msg "this is tc_setup" - # @预置条件: - return 0 -} - -do_test() { - msg "this is do_test" - - # @测试步骤:1: 执行用例ltp.power_management_tests_exclusive.runpwtests_exclusive03 - # @预期结果:1: 用例返回0 - ltp_run_testcase power_management_tests_exclusive runpwtests_exclusive03 - assert_true [ $? -eq 0 ] - - return 0 -} - -tc_teardown() { - msg "this is tc_teardown" - return 0 -} - -############################################################################### -tst_main "$@" -############################################################################### diff --git a/testcase/power_management_tests_exclusive/ltp.power_management_tests_exclusive.runpwtests_exclusive04.sh b/testcase/power_management_tests_exclusive/ltp.power_management_tests_exclusive.runpwtests_exclusive04.sh deleted file mode 100755 index 5f24275..0000000 --- a/testcase/power_management_tests_exclusive/ltp.power_management_tests_exclusive.runpwtests_exclusive04.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash -############################################################################### -# @用例ID: 20220630-213010-003334047 -# @用例名称: ltp.power_management_tests_exclusive.runpwtests_exclusive04 -# @用例级别: 1 -# @用例标签: -# @用例类型: 功能测试 -# @自动化: 1 -############################################################################### -[ -z "$TST_TS_TOPDIR" ] && { - TST_TS_TOPDIR="$(realpath "$(dirname "$0")/../..")" - export TST_TS_TOPDIR -} -source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 -############################################################################### - -tc_setup() { - msg "this is tc_setup" - # @预置条件: - return 0 -} - -do_test() { - msg "this is do_test" - - # @测试步骤:1: 执行用例ltp.power_management_tests_exclusive.runpwtests_exclusive04 - # @预期结果:1: 用例返回0 - ltp_run_testcase power_management_tests_exclusive runpwtests_exclusive04 - assert_true [ $? -eq 0 ] - - return 0 -} - -tc_teardown() { - msg "this is tc_teardown" - return 0 -} - -############################################################################### -tst_main "$@" -############################################################################### diff --git a/testcase/power_management_tests_exclusive/ltp.power_management_tests_exclusive.runpwtests_exclusive05.sh b/testcase/power_management_tests_exclusive/ltp.power_management_tests_exclusive.runpwtests_exclusive05.sh deleted file mode 100755 index e5621c4..0000000 --- a/testcase/power_management_tests_exclusive/ltp.power_management_tests_exclusive.runpwtests_exclusive05.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash -############################################################################### -# @用例ID: 20220630-213010-011812494 -# @用例名称: ltp.power_management_tests_exclusive.runpwtests_exclusive05 -# @用例级别: 1 -# @用例标签: -# @用例类型: 功能测试 -# @自动化: 1 -############################################################################### -[ -z "$TST_TS_TOPDIR" ] && { - TST_TS_TOPDIR="$(realpath "$(dirname "$0")/../..")" - export TST_TS_TOPDIR -} -source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 -############################################################################### - -tc_setup() { - msg "this is tc_setup" - # @预置条件: - return 0 -} - -do_test() { - msg "this is do_test" - - # @测试步骤:1: 执行用例ltp.power_management_tests_exclusive.runpwtests_exclusive05 - # @预期结果:1: 用例返回0 - ltp_run_testcase power_management_tests_exclusive runpwtests_exclusive05 - assert_true [ $? -eq 0 ] - - return 0 -} - -tc_teardown() { - msg "this is tc_teardown" - return 0 -} - -############################################################################### -tst_main "$@" -############################################################################### diff --git a/testcase/s390x_tests/ltp.s390x_tests.vmcp.sh b/testcase/s390x_tests/ltp.s390x_tests.vmcp.sh deleted file mode 100755 index 0468eb3..0000000 --- a/testcase/s390x_tests/ltp.s390x_tests.vmcp.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash -############################################################################### -# @用例ID: 20220630-213010-090980688 -# @用例名称: ltp.s390x_tests.vmcp -# @用例级别: 1 -# @用例标签: -# @用例类型: 功能测试 -# @自动化: 1 -############################################################################### -[ -z "$TST_TS_TOPDIR" ] && { - TST_TS_TOPDIR="$(realpath "$(dirname "$0")/../..")" - export TST_TS_TOPDIR -} -source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 -############################################################################### - -tc_setup() { - msg "this is tc_setup" - # @预置条件: - return 0 -} - -do_test() { - msg "this is do_test" - - # @测试步骤:1: 执行用例ltp.s390x_tests.vmcp - # @预期结果:1: 用例返回0 - ltp_run_testcase s390x_tests vmcp - assert_true [ $? -eq 0 ] - - return 0 -} - -tc_teardown() { - msg "this is tc_teardown" - return 0 -} - -############################################################################### -tst_main "$@" -############################################################################### diff --git a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DI002.sh b/testcase/syscalls/ltp.syscalls.chdir02.sh similarity index 58% rename from testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DI002.sh rename to testcase/syscalls/ltp.syscalls.chdir02.sh index bf603bd..51d8f73 100755 --- a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DI002.sh +++ b/testcase/syscalls/ltp.syscalls.chdir02.sh @@ -1,21 +1,31 @@ #!/bin/bash ############################################################################### -# @用例ID: 20220630-212959-221013160 -# @用例名称: ltp.ltp-aiodio.part4.DI002 -# @用例级别: 1 +# @用例ID: 20260517-220257-450839440 +# @用例名称: ltp.syscalls.chdir02 +# @用例级别: 3 # @用例标签: +# @扩展属性: # @用例类型: 功能测试 # @自动化: 1 +# @超时时间: 0 +# @用例描述: TODO: 简要描述用例测试的内容 ############################################################################### -[ -z "$TST_TS_TOPDIR" ] && { - TST_TS_TOPDIR="$(realpath "$(dirname "$0")/../..")" +if [ -z "$TST_TS_TOPDIR" ]; then + TST_TS_TOPDIR="$(realpath "$(dirname "$0")/..")" + while [ "$TST_TS_TOPDIR" != "/" ]; do + [ -f "${TST_TS_TOPDIR}/tsuite" ] && break + TST_TS_TOPDIR="$(dirname "$TST_TS_TOPDIR")" + done export TST_TS_TOPDIR -} +fi source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 ############################################################################### +g_tmpdir="$(mktemp -d)" + tc_setup() { msg "this is tc_setup" + # @预置条件: return 0 } @@ -23,16 +33,16 @@ tc_setup() { do_test() { msg "this is do_test" - # @测试步骤:1: 执行用例ltp.ltp-aiodio.part4.DI002 + # @测试步骤:1: 执行用例ltp.syscalls.chdir02 # @预期结果:1: 用例返回0 - ltp_run_testcase ltp-aiodio.part4 DI002 + ltp_run_testcase syscalls chdir02 assert_true [ $? -eq 0 ] - return 0 } tc_teardown() { msg "this is tc_teardown" + rm -rfv "$g_tmpdir" || return 1 return 0 } diff --git a/testcase/syscalls/ltp.syscalls.clone10.sh b/testcase/syscalls/ltp.syscalls.clone10.sh new file mode 100755 index 0000000..283e88c --- /dev/null +++ b/testcase/syscalls/ltp.syscalls.clone10.sh @@ -0,0 +1,51 @@ +#!/bin/bash +############################################################################### +# @用例ID: 20260517-220257-538791845 +# @用例名称: ltp.syscalls.clone10 +# @用例级别: 3 +# @用例标签: +# @扩展属性: +# @用例类型: 功能测试 +# @自动化: 1 +# @超时时间: 0 +# @用例描述: TODO: 简要描述用例测试的内容 +############################################################################### +if [ -z "$TST_TS_TOPDIR" ]; then + TST_TS_TOPDIR="$(realpath "$(dirname "$0")/..")" + while [ "$TST_TS_TOPDIR" != "/" ]; do + [ -f "${TST_TS_TOPDIR}/tsuite" ] && break + TST_TS_TOPDIR="$(dirname "$TST_TS_TOPDIR")" + done + export TST_TS_TOPDIR +fi +source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 +############################################################################### + +g_tmpdir="$(mktemp -d)" + +tc_setup() { + msg "this is tc_setup" + + # @预置条件: + return 0 +} + +do_test() { + msg "this is do_test" + + # @测试步骤:1: 执行用例ltp.syscalls.clone10 + # @预期结果:1: 用例返回0 + ltp_run_testcase syscalls clone10 + assert_true [ $? -eq 0 ] + return 0 +} + +tc_teardown() { + msg "this is tc_teardown" + rm -rfv "$g_tmpdir" || return 1 + return 0 +} + +############################################################################### +tst_main "$@" +############################################################################### diff --git a/testcase/syscalls/ltp.syscalls.clone11.sh b/testcase/syscalls/ltp.syscalls.clone11.sh new file mode 100755 index 0000000..197fb95 --- /dev/null +++ b/testcase/syscalls/ltp.syscalls.clone11.sh @@ -0,0 +1,51 @@ +#!/bin/bash +############################################################################### +# @用例ID: 20260517-220257-626636533 +# @用例名称: ltp.syscalls.clone11 +# @用例级别: 3 +# @用例标签: +# @扩展属性: +# @用例类型: 功能测试 +# @自动化: 1 +# @超时时间: 0 +# @用例描述: TODO: 简要描述用例测试的内容 +############################################################################### +if [ -z "$TST_TS_TOPDIR" ]; then + TST_TS_TOPDIR="$(realpath "$(dirname "$0")/..")" + while [ "$TST_TS_TOPDIR" != "/" ]; do + [ -f "${TST_TS_TOPDIR}/tsuite" ] && break + TST_TS_TOPDIR="$(dirname "$TST_TS_TOPDIR")" + done + export TST_TS_TOPDIR +fi +source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 +############################################################################### + +g_tmpdir="$(mktemp -d)" + +tc_setup() { + msg "this is tc_setup" + + # @预置条件: + return 0 +} + +do_test() { + msg "this is do_test" + + # @测试步骤:1: 执行用例ltp.syscalls.clone11 + # @预期结果:1: 用例返回0 + ltp_run_testcase syscalls clone11 + assert_true [ $? -eq 0 ] + return 0 +} + +tc_teardown() { + msg "this is tc_teardown" + rm -rfv "$g_tmpdir" || return 1 + return 0 +} + +############################################################################### +tst_main "$@" +############################################################################### diff --git a/testcase/syscalls/ltp.syscalls.clone304.sh b/testcase/syscalls/ltp.syscalls.clone304.sh new file mode 100755 index 0000000..4867dba --- /dev/null +++ b/testcase/syscalls/ltp.syscalls.clone304.sh @@ -0,0 +1,51 @@ +#!/bin/bash +############################################################################### +# @用例ID: 20260517-220257-713260875 +# @用例名称: ltp.syscalls.clone304 +# @用例级别: 3 +# @用例标签: +# @扩展属性: +# @用例类型: 功能测试 +# @自动化: 1 +# @超时时间: 0 +# @用例描述: TODO: 简要描述用例测试的内容 +############################################################################### +if [ -z "$TST_TS_TOPDIR" ]; then + TST_TS_TOPDIR="$(realpath "$(dirname "$0")/..")" + while [ "$TST_TS_TOPDIR" != "/" ]; do + [ -f "${TST_TS_TOPDIR}/tsuite" ] && break + TST_TS_TOPDIR="$(dirname "$TST_TS_TOPDIR")" + done + export TST_TS_TOPDIR +fi +source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 +############################################################################### + +g_tmpdir="$(mktemp -d)" + +tc_setup() { + msg "this is tc_setup" + + # @预置条件: + return 0 +} + +do_test() { + msg "this is do_test" + + # @测试步骤:1: 执行用例ltp.syscalls.clone304 + # @预期结果:1: 用例返回0 + ltp_run_testcase syscalls clone304 + assert_true [ $? -eq 0 ] + return 0 +} + +tc_teardown() { + msg "this is tc_teardown" + rm -rfv "$g_tmpdir" || return 1 + return 0 +} + +############################################################################### +tst_main "$@" +############################################################################### diff --git a/testcase/syscalls/ltp.syscalls.fanotify25.sh b/testcase/syscalls/ltp.syscalls.fanotify25.sh new file mode 100755 index 0000000..9bdc7ea --- /dev/null +++ b/testcase/syscalls/ltp.syscalls.fanotify25.sh @@ -0,0 +1,51 @@ +#!/bin/bash +############################################################################### +# @用例ID: 20260517-220257-800816659 +# @用例名称: ltp.syscalls.fanotify25 +# @用例级别: 3 +# @用例标签: +# @扩展属性: +# @用例类型: 功能测试 +# @自动化: 1 +# @超时时间: 0 +# @用例描述: TODO: 简要描述用例测试的内容 +############################################################################### +if [ -z "$TST_TS_TOPDIR" ]; then + TST_TS_TOPDIR="$(realpath "$(dirname "$0")/..")" + while [ "$TST_TS_TOPDIR" != "/" ]; do + [ -f "${TST_TS_TOPDIR}/tsuite" ] && break + TST_TS_TOPDIR="$(dirname "$TST_TS_TOPDIR")" + done + export TST_TS_TOPDIR +fi +source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 +############################################################################### + +g_tmpdir="$(mktemp -d)" + +tc_setup() { + msg "this is tc_setup" + + # @预置条件: + return 0 +} + +do_test() { + msg "this is do_test" + + # @测试步骤:1: 执行用例ltp.syscalls.fanotify25 + # @预期结果:1: 用例返回0 + ltp_run_testcase syscalls fanotify25 + assert_true [ $? -eq 0 ] + return 0 +} + +tc_teardown() { + msg "this is tc_teardown" + rm -rfv "$g_tmpdir" || return 1 + return 0 +} + +############################################################################### +tst_main "$@" +############################################################################### diff --git a/testcase/syscalls/ltp.syscalls.file_attr05.sh b/testcase/syscalls/ltp.syscalls.file_attr05.sh new file mode 100755 index 0000000..79b8f64 --- /dev/null +++ b/testcase/syscalls/ltp.syscalls.file_attr05.sh @@ -0,0 +1,51 @@ +#!/bin/bash +############################################################################### +# @用例ID: 20260517-220257-888814314 +# @用例名称: ltp.syscalls.file_attr05 +# @用例级别: 3 +# @用例标签: +# @扩展属性: +# @用例类型: 功能测试 +# @自动化: 1 +# @超时时间: 0 +# @用例描述: TODO: 简要描述用例测试的内容 +############################################################################### +if [ -z "$TST_TS_TOPDIR" ]; then + TST_TS_TOPDIR="$(realpath "$(dirname "$0")/..")" + while [ "$TST_TS_TOPDIR" != "/" ]; do + [ -f "${TST_TS_TOPDIR}/tsuite" ] && break + TST_TS_TOPDIR="$(dirname "$TST_TS_TOPDIR")" + done + export TST_TS_TOPDIR +fi +source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 +############################################################################### + +g_tmpdir="$(mktemp -d)" + +tc_setup() { + msg "this is tc_setup" + + # @预置条件: + return 0 +} + +do_test() { + msg "this is do_test" + + # @测试步骤:1: 执行用例ltp.syscalls.file_attr05 + # @预期结果:1: 用例返回0 + ltp_run_testcase syscalls file_attr05 + assert_true [ $? -eq 0 ] + return 0 +} + +tc_teardown() { + msg "this is tc_teardown" + rm -rfv "$g_tmpdir" || return 1 + return 0 +} + +############################################################################### +tst_main "$@" +############################################################################### diff --git a/testcase/syscalls/ltp.syscalls.io_submit04.sh b/testcase/syscalls/ltp.syscalls.io_submit04.sh new file mode 100755 index 0000000..7350c98 --- /dev/null +++ b/testcase/syscalls/ltp.syscalls.io_submit04.sh @@ -0,0 +1,51 @@ +#!/bin/bash +############################################################################### +# @用例ID: 20260517-220258-062711264 +# @用例名称: ltp.syscalls.io_submit04 +# @用例级别: 3 +# @用例标签: +# @扩展属性: +# @用例类型: 功能测试 +# @自动化: 1 +# @超时时间: 0 +# @用例描述: TODO: 简要描述用例测试的内容 +############################################################################### +if [ -z "$TST_TS_TOPDIR" ]; then + TST_TS_TOPDIR="$(realpath "$(dirname "$0")/..")" + while [ "$TST_TS_TOPDIR" != "/" ]; do + [ -f "${TST_TS_TOPDIR}/tsuite" ] && break + TST_TS_TOPDIR="$(dirname "$TST_TS_TOPDIR")" + done + export TST_TS_TOPDIR +fi +source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 +############################################################################### + +g_tmpdir="$(mktemp -d)" + +tc_setup() { + msg "this is tc_setup" + + # @预置条件: + return 0 +} + +do_test() { + msg "this is do_test" + + # @测试步骤:1: 执行用例ltp.syscalls.io_submit04 + # @预期结果:1: 用例返回0 + ltp_run_testcase syscalls io_submit04 + assert_true [ $? -eq 0 ] + return 0 +} + +tc_teardown() { + msg "this is tc_teardown" + rm -rfv "$g_tmpdir" || return 1 + return 0 +} + +############################################################################### +tst_main "$@" +############################################################################### diff --git a/testcase/syscalls/ltp.syscalls.io_uring03.sh b/testcase/syscalls/ltp.syscalls.io_uring03.sh new file mode 100755 index 0000000..96d762c --- /dev/null +++ b/testcase/syscalls/ltp.syscalls.io_uring03.sh @@ -0,0 +1,51 @@ +#!/bin/bash +############################################################################### +# @用例ID: 20260517-220258-150688210 +# @用例名称: ltp.syscalls.io_uring03 +# @用例级别: 3 +# @用例标签: +# @扩展属性: +# @用例类型: 功能测试 +# @自动化: 1 +# @超时时间: 0 +# @用例描述: TODO: 简要描述用例测试的内容 +############################################################################### +if [ -z "$TST_TS_TOPDIR" ]; then + TST_TS_TOPDIR="$(realpath "$(dirname "$0")/..")" + while [ "$TST_TS_TOPDIR" != "/" ]; do + [ -f "${TST_TS_TOPDIR}/tsuite" ] && break + TST_TS_TOPDIR="$(dirname "$TST_TS_TOPDIR")" + done + export TST_TS_TOPDIR +fi +source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 +############################################################################### + +g_tmpdir="$(mktemp -d)" + +tc_setup() { + msg "this is tc_setup" + + # @预置条件: + return 0 +} + +do_test() { + msg "this is do_test" + + # @测试步骤:1: 执行用例ltp.syscalls.io_uring03 + # @预期结果:1: 用例返回0 + ltp_run_testcase syscalls io_uring03 + assert_true [ $? -eq 0 ] + return 0 +} + +tc_teardown() { + msg "this is tc_teardown" + rm -rfv "$g_tmpdir" || return 1 + return 0 +} + +############################################################################### +tst_main "$@" +############################################################################### diff --git a/testcase/syscalls/ltp.syscalls.ioctl_getlbmd01.sh b/testcase/syscalls/ltp.syscalls.ioctl_getlbmd01.sh new file mode 100755 index 0000000..5ff029b --- /dev/null +++ b/testcase/syscalls/ltp.syscalls.ioctl_getlbmd01.sh @@ -0,0 +1,51 @@ +#!/bin/bash +############################################################################### +# @用例ID: 20260517-220257-975000495 +# @用例名称: ltp.syscalls.ioctl_getlbmd01 +# @用例级别: 3 +# @用例标签: +# @扩展属性: +# @用例类型: 功能测试 +# @自动化: 1 +# @超时时间: 0 +# @用例描述: TODO: 简要描述用例测试的内容 +############################################################################### +if [ -z "$TST_TS_TOPDIR" ]; then + TST_TS_TOPDIR="$(realpath "$(dirname "$0")/..")" + while [ "$TST_TS_TOPDIR" != "/" ]; do + [ -f "${TST_TS_TOPDIR}/tsuite" ] && break + TST_TS_TOPDIR="$(dirname "$TST_TS_TOPDIR")" + done + export TST_TS_TOPDIR +fi +source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 +############################################################################### + +g_tmpdir="$(mktemp -d)" + +tc_setup() { + msg "this is tc_setup" + + # @预置条件: + return 0 +} + +do_test() { + msg "this is do_test" + + # @测试步骤:1: 执行用例ltp.syscalls.ioctl_getlbmd01 + # @预期结果:1: 用例返回0 + ltp_run_testcase syscalls ioctl_getlbmd01 + assert_true [ $? -eq 0 ] + return 0 +} + +tc_teardown() { + msg "this is tc_teardown" + rm -rfv "$g_tmpdir" || return 1 + return 0 +} + +############################################################################### +tst_main "$@" +############################################################################### diff --git a/testcase/syscalls/ltp.syscalls.mremap07.sh b/testcase/syscalls/ltp.syscalls.mremap07.sh new file mode 100755 index 0000000..537195e --- /dev/null +++ b/testcase/syscalls/ltp.syscalls.mremap07.sh @@ -0,0 +1,51 @@ +#!/bin/bash +############################################################################### +# @用例ID: 20260517-220258-237930329 +# @用例名称: ltp.syscalls.mremap07 +# @用例级别: 3 +# @用例标签: +# @扩展属性: +# @用例类型: 功能测试 +# @自动化: 1 +# @超时时间: 0 +# @用例描述: TODO: 简要描述用例测试的内容 +############################################################################### +if [ -z "$TST_TS_TOPDIR" ]; then + TST_TS_TOPDIR="$(realpath "$(dirname "$0")/..")" + while [ "$TST_TS_TOPDIR" != "/" ]; do + [ -f "${TST_TS_TOPDIR}/tsuite" ] && break + TST_TS_TOPDIR="$(dirname "$TST_TS_TOPDIR")" + done + export TST_TS_TOPDIR +fi +source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 +############################################################################### + +g_tmpdir="$(mktemp -d)" + +tc_setup() { + msg "this is tc_setup" + + # @预置条件: + return 0 +} + +do_test() { + msg "this is do_test" + + # @测试步骤:1: 执行用例ltp.syscalls.mremap07 + # @预期结果:1: 用例返回0 + ltp_run_testcase syscalls mremap07 + assert_true [ $? -eq 0 ] + return 0 +} + +tc_teardown() { + msg "this is tc_teardown" + rm -rfv "$g_tmpdir" || return 1 + return 0 +} + +############################################################################### +tst_main "$@" +############################################################################### diff --git a/testcase/syscalls/ltp.syscalls.name_to_handle_at03.sh b/testcase/syscalls/ltp.syscalls.name_to_handle_at03.sh new file mode 100755 index 0000000..095ff82 --- /dev/null +++ b/testcase/syscalls/ltp.syscalls.name_to_handle_at03.sh @@ -0,0 +1,51 @@ +#!/bin/bash +############################################################################### +# @用例ID: 20260517-220258-323408014 +# @用例名称: ltp.syscalls.name_to_handle_at03 +# @用例级别: 3 +# @用例标签: +# @扩展属性: +# @用例类型: 功能测试 +# @自动化: 1 +# @超时时间: 0 +# @用例描述: TODO: 简要描述用例测试的内容 +############################################################################### +if [ -z "$TST_TS_TOPDIR" ]; then + TST_TS_TOPDIR="$(realpath "$(dirname "$0")/..")" + while [ "$TST_TS_TOPDIR" != "/" ]; do + [ -f "${TST_TS_TOPDIR}/tsuite" ] && break + TST_TS_TOPDIR="$(dirname "$TST_TS_TOPDIR")" + done + export TST_TS_TOPDIR +fi +source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 +############################################################################### + +g_tmpdir="$(mktemp -d)" + +tc_setup() { + msg "this is tc_setup" + + # @预置条件: + return 0 +} + +do_test() { + msg "this is do_test" + + # @测试步骤:1: 执行用例ltp.syscalls.name_to_handle_at03 + # @预期结果:1: 用例返回0 + ltp_run_testcase syscalls name_to_handle_at03 + assert_true [ $? -eq 0 ] + return 0 +} + +tc_teardown() { + msg "this is tc_teardown" + rm -rfv "$g_tmpdir" || return 1 + return 0 +} + +############################################################################### +tst_main "$@" +############################################################################### diff --git a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DI000.sh b/testcase/syscalls/ltp.syscalls.poll03.sh similarity index 58% rename from testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DI000.sh rename to testcase/syscalls/ltp.syscalls.poll03.sh index 1945c46..e693a88 100755 --- a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DI000.sh +++ b/testcase/syscalls/ltp.syscalls.poll03.sh @@ -1,21 +1,31 @@ #!/bin/bash ############################################################################### -# @用例ID: 20220630-212959-185768810 -# @用例名称: ltp.ltp-aiodio.part4.DI000 -# @用例级别: 1 +# @用例ID: 20260517-220258-408686784 +# @用例名称: ltp.syscalls.poll03 +# @用例级别: 3 # @用例标签: +# @扩展属性: # @用例类型: 功能测试 # @自动化: 1 +# @超时时间: 0 +# @用例描述: TODO: 简要描述用例测试的内容 ############################################################################### -[ -z "$TST_TS_TOPDIR" ] && { - TST_TS_TOPDIR="$(realpath "$(dirname "$0")/../..")" +if [ -z "$TST_TS_TOPDIR" ]; then + TST_TS_TOPDIR="$(realpath "$(dirname "$0")/..")" + while [ "$TST_TS_TOPDIR" != "/" ]; do + [ -f "${TST_TS_TOPDIR}/tsuite" ] && break + TST_TS_TOPDIR="$(dirname "$TST_TS_TOPDIR")" + done export TST_TS_TOPDIR -} +fi source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 ############################################################################### +g_tmpdir="$(mktemp -d)" + tc_setup() { msg "this is tc_setup" + # @预置条件: return 0 } @@ -23,16 +33,16 @@ tc_setup() { do_test() { msg "this is do_test" - # @测试步骤:1: 执行用例ltp.ltp-aiodio.part4.DI000 + # @测试步骤:1: 执行用例ltp.syscalls.poll03 # @预期结果:1: 用例返回0 - ltp_run_testcase ltp-aiodio.part4 DI000 + ltp_run_testcase syscalls poll03 assert_true [ $? -eq 0 ] - return 0 } tc_teardown() { msg "this is tc_teardown" + rm -rfv "$g_tmpdir" || return 1 return 0 } diff --git a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DI001.sh b/testcase/syscalls/ltp.syscalls.poll04.sh similarity index 58% rename from testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DI001.sh rename to testcase/syscalls/ltp.syscalls.poll04.sh index 47454b8..08ae330 100755 --- a/testcase/ltp-aiodio.part4/ltp.ltp-aiodio.part4.DI001.sh +++ b/testcase/syscalls/ltp.syscalls.poll04.sh @@ -1,21 +1,31 @@ #!/bin/bash ############################################################################### -# @用例ID: 20220630-212959-203461001 -# @用例名称: ltp.ltp-aiodio.part4.DI001 -# @用例级别: 1 +# @用例ID: 20260517-220258-496380525 +# @用例名称: ltp.syscalls.poll04 +# @用例级别: 3 # @用例标签: +# @扩展属性: # @用例类型: 功能测试 # @自动化: 1 +# @超时时间: 0 +# @用例描述: TODO: 简要描述用例测试的内容 ############################################################################### -[ -z "$TST_TS_TOPDIR" ] && { - TST_TS_TOPDIR="$(realpath "$(dirname "$0")/../..")" +if [ -z "$TST_TS_TOPDIR" ]; then + TST_TS_TOPDIR="$(realpath "$(dirname "$0")/..")" + while [ "$TST_TS_TOPDIR" != "/" ]; do + [ -f "${TST_TS_TOPDIR}/tsuite" ] && break + TST_TS_TOPDIR="$(dirname "$TST_TS_TOPDIR")" + done export TST_TS_TOPDIR -} +fi source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 ############################################################################### +g_tmpdir="$(mktemp -d)" + tc_setup() { msg "this is tc_setup" + # @预置条件: return 0 } @@ -23,16 +33,16 @@ tc_setup() { do_test() { msg "this is do_test" - # @测试步骤:1: 执行用例ltp.ltp-aiodio.part4.DI001 + # @测试步骤:1: 执行用例ltp.syscalls.poll04 # @预期结果:1: 用例返回0 - ltp_run_testcase ltp-aiodio.part4 DI001 + ltp_run_testcase syscalls poll04 assert_true [ $? -eq 0 ] - return 0 } tc_teardown() { msg "this is tc_teardown" + rm -rfv "$g_tmpdir" || return 1 return 0 } diff --git a/testcase/syscalls/ltp.syscalls.userfaultfd02.sh b/testcase/syscalls/ltp.syscalls.userfaultfd02.sh new file mode 100755 index 0000000..70613d6 --- /dev/null +++ b/testcase/syscalls/ltp.syscalls.userfaultfd02.sh @@ -0,0 +1,51 @@ +#!/bin/bash +############################################################################### +# @用例ID: 20260517-220258-582723193 +# @用例名称: ltp.syscalls.userfaultfd02 +# @用例级别: 3 +# @用例标签: +# @扩展属性: +# @用例类型: 功能测试 +# @自动化: 1 +# @超时时间: 0 +# @用例描述: TODO: 简要描述用例测试的内容 +############################################################################### +if [ -z "$TST_TS_TOPDIR" ]; then + TST_TS_TOPDIR="$(realpath "$(dirname "$0")/..")" + while [ "$TST_TS_TOPDIR" != "/" ]; do + [ -f "${TST_TS_TOPDIR}/tsuite" ] && break + TST_TS_TOPDIR="$(dirname "$TST_TS_TOPDIR")" + done + export TST_TS_TOPDIR +fi +source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 +############################################################################### + +g_tmpdir="$(mktemp -d)" + +tc_setup() { + msg "this is tc_setup" + + # @预置条件: + return 0 +} + +do_test() { + msg "this is do_test" + + # @测试步骤:1: 执行用例ltp.syscalls.userfaultfd02 + # @预期结果:1: 用例返回0 + ltp_run_testcase syscalls userfaultfd02 + assert_true [ $? -eq 0 ] + return 0 +} + +tc_teardown() { + msg "this is tc_teardown" + rm -rfv "$g_tmpdir" || return 1 + return 0 +} + +############################################################################### +tst_main "$@" +############################################################################### diff --git a/testcase/syscalls/ltp.syscalls.userfaultfd03.sh b/testcase/syscalls/ltp.syscalls.userfaultfd03.sh new file mode 100755 index 0000000..6e30947 --- /dev/null +++ b/testcase/syscalls/ltp.syscalls.userfaultfd03.sh @@ -0,0 +1,51 @@ +#!/bin/bash +############################################################################### +# @用例ID: 20260517-220258-670900363 +# @用例名称: ltp.syscalls.userfaultfd03 +# @用例级别: 3 +# @用例标签: +# @扩展属性: +# @用例类型: 功能测试 +# @自动化: 1 +# @超时时间: 0 +# @用例描述: TODO: 简要描述用例测试的内容 +############################################################################### +if [ -z "$TST_TS_TOPDIR" ]; then + TST_TS_TOPDIR="$(realpath "$(dirname "$0")/..")" + while [ "$TST_TS_TOPDIR" != "/" ]; do + [ -f "${TST_TS_TOPDIR}/tsuite" ] && break + TST_TS_TOPDIR="$(dirname "$TST_TS_TOPDIR")" + done + export TST_TS_TOPDIR +fi +source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 +############################################################################### + +g_tmpdir="$(mktemp -d)" + +tc_setup() { + msg "this is tc_setup" + + # @预置条件: + return 0 +} + +do_test() { + msg "this is do_test" + + # @测试步骤:1: 执行用例ltp.syscalls.userfaultfd03 + # @预期结果:1: 用例返回0 + ltp_run_testcase syscalls userfaultfd03 + assert_true [ $? -eq 0 ] + return 0 +} + +tc_teardown() { + msg "this is tc_teardown" + rm -rfv "$g_tmpdir" || return 1 + return 0 +} + +############################################################################### +tst_main "$@" +############################################################################### diff --git a/testcase/syscalls/ltp.syscalls.userfaultfd04.sh b/testcase/syscalls/ltp.syscalls.userfaultfd04.sh new file mode 100755 index 0000000..3ee4d1e --- /dev/null +++ b/testcase/syscalls/ltp.syscalls.userfaultfd04.sh @@ -0,0 +1,51 @@ +#!/bin/bash +############################################################################### +# @用例ID: 20260517-220258-757531826 +# @用例名称: ltp.syscalls.userfaultfd04 +# @用例级别: 3 +# @用例标签: +# @扩展属性: +# @用例类型: 功能测试 +# @自动化: 1 +# @超时时间: 0 +# @用例描述: TODO: 简要描述用例测试的内容 +############################################################################### +if [ -z "$TST_TS_TOPDIR" ]; then + TST_TS_TOPDIR="$(realpath "$(dirname "$0")/..")" + while [ "$TST_TS_TOPDIR" != "/" ]; do + [ -f "${TST_TS_TOPDIR}/tsuite" ] && break + TST_TS_TOPDIR="$(dirname "$TST_TS_TOPDIR")" + done + export TST_TS_TOPDIR +fi +source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 +############################################################################### + +g_tmpdir="$(mktemp -d)" + +tc_setup() { + msg "this is tc_setup" + + # @预置条件: + return 0 +} + +do_test() { + msg "this is do_test" + + # @测试步骤:1: 执行用例ltp.syscalls.userfaultfd04 + # @预期结果:1: 用例返回0 + ltp_run_testcase syscalls userfaultfd04 + assert_true [ $? -eq 0 ] + return 0 +} + +tc_teardown() { + msg "this is tc_teardown" + rm -rfv "$g_tmpdir" || return 1 + return 0 +} + +############################################################################### +tst_main "$@" +############################################################################### diff --git a/testcase/syscalls/ltp.syscalls.userfaultfd05.sh b/testcase/syscalls/ltp.syscalls.userfaultfd05.sh new file mode 100755 index 0000000..61987cb --- /dev/null +++ b/testcase/syscalls/ltp.syscalls.userfaultfd05.sh @@ -0,0 +1,51 @@ +#!/bin/bash +############################################################################### +# @用例ID: 20260517-220258-841989532 +# @用例名称: ltp.syscalls.userfaultfd05 +# @用例级别: 3 +# @用例标签: +# @扩展属性: +# @用例类型: 功能测试 +# @自动化: 1 +# @超时时间: 0 +# @用例描述: TODO: 简要描述用例测试的内容 +############################################################################### +if [ -z "$TST_TS_TOPDIR" ]; then + TST_TS_TOPDIR="$(realpath "$(dirname "$0")/..")" + while [ "$TST_TS_TOPDIR" != "/" ]; do + [ -f "${TST_TS_TOPDIR}/tsuite" ] && break + TST_TS_TOPDIR="$(dirname "$TST_TS_TOPDIR")" + done + export TST_TS_TOPDIR +fi +source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 +############################################################################### + +g_tmpdir="$(mktemp -d)" + +tc_setup() { + msg "this is tc_setup" + + # @预置条件: + return 0 +} + +do_test() { + msg "this is do_test" + + # @测试步骤:1: 执行用例ltp.syscalls.userfaultfd05 + # @预期结果:1: 用例返回0 + ltp_run_testcase syscalls userfaultfd05 + assert_true [ $? -eq 0 ] + return 0 +} + +tc_teardown() { + msg "this is tc_teardown" + rm -rfv "$g_tmpdir" || return 1 + return 0 +} + +############################################################################### +tst_main "$@" +############################################################################### diff --git a/testcase/syscalls/ltp.syscalls.userfaultfd06.sh b/testcase/syscalls/ltp.syscalls.userfaultfd06.sh new file mode 100755 index 0000000..1f040a4 --- /dev/null +++ b/testcase/syscalls/ltp.syscalls.userfaultfd06.sh @@ -0,0 +1,51 @@ +#!/bin/bash +############################################################################### +# @用例ID: 20260517-220258-926591436 +# @用例名称: ltp.syscalls.userfaultfd06 +# @用例级别: 3 +# @用例标签: +# @扩展属性: +# @用例类型: 功能测试 +# @自动化: 1 +# @超时时间: 0 +# @用例描述: TODO: 简要描述用例测试的内容 +############################################################################### +if [ -z "$TST_TS_TOPDIR" ]; then + TST_TS_TOPDIR="$(realpath "$(dirname "$0")/..")" + while [ "$TST_TS_TOPDIR" != "/" ]; do + [ -f "${TST_TS_TOPDIR}/tsuite" ] && break + TST_TS_TOPDIR="$(dirname "$TST_TS_TOPDIR")" + done + export TST_TS_TOPDIR +fi +source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 +############################################################################### + +g_tmpdir="$(mktemp -d)" + +tc_setup() { + msg "this is tc_setup" + + # @预置条件: + return 0 +} + +do_test() { + msg "this is do_test" + + # @测试步骤:1: 执行用例ltp.syscalls.userfaultfd06 + # @预期结果:1: 用例返回0 + ltp_run_testcase syscalls userfaultfd06 + assert_true [ $? -eq 0 ] + return 0 +} + +tc_teardown() { + msg "this is tc_teardown" + rm -rfv "$g_tmpdir" || return 1 + return 0 +} + +############################################################################### +tst_main "$@" +############################################################################### diff --git a/testcase/tracing/ltp.tracing.fanotify25.sh b/testcase/tracing/ltp.tracing.fanotify25.sh new file mode 100755 index 0000000..418904b --- /dev/null +++ b/testcase/tracing/ltp.tracing.fanotify25.sh @@ -0,0 +1,51 @@ +#!/bin/bash +############################################################################### +# @用例ID: 20260517-220259-012826896 +# @用例名称: ltp.tracing.fanotify25 +# @用例级别: 3 +# @用例标签: +# @扩展属性: +# @用例类型: 功能测试 +# @自动化: 1 +# @超时时间: 0 +# @用例描述: TODO: 简要描述用例测试的内容 +############################################################################### +if [ -z "$TST_TS_TOPDIR" ]; then + TST_TS_TOPDIR="$(realpath "$(dirname "$0")/..")" + while [ "$TST_TS_TOPDIR" != "/" ]; do + [ -f "${TST_TS_TOPDIR}/tsuite" ] && break + TST_TS_TOPDIR="$(dirname "$TST_TS_TOPDIR")" + done + export TST_TS_TOPDIR +fi +source "${TST_TS_TOPDIR}/common/lib/common.sh" || exit 1 +############################################################################### + +g_tmpdir="$(mktemp -d)" + +tc_setup() { + msg "this is tc_setup" + + # @预置条件: + return 0 +} + +do_test() { + msg "this is do_test" + + # @测试步骤:1: 执行用例ltp.tracing.fanotify25 + # @预期结果:1: 用例返回0 + ltp_run_testcase tracing fanotify25 + assert_true [ $? -eq 0 ] + return 0 +} + +tc_teardown() { + msg "this is tc_teardown" + rm -rfv "$g_tmpdir" || return 1 + return 0 +} + +############################################################################### +tst_main "$@" +############################################################################### -- Gitee