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 f30927aa2b138520548bf512013808b3ccd39398..273b271945efe7775b7110ccc099747c4e9a86c5 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 0000000000000000000000000000000000000000..b996e4e43b97827d1d3aa25cec482c23381354f8 --- /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 0000000000000000000000000000000000000000..b6edabf192de3a310404e2d4d1713df5b78f786c --- /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 0000000000000000000000000000000000000000..1bd2d34e5309357326eb09de97a3e4ca951bfc99 --- /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 0000000000000000000000000000000000000000..f292d91743d53aa0fc142e2f365aa5a5188331c5 --- /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 af733388472996ea5c12987783535b112ca65da1..0000000000000000000000000000000000000000 --- 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 0000000000000000000000000000000000000000..8431dcd67e2f36aa85fd0c15bfc4d4598e48f6ea --- /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 0000000000000000000000000000000000000000..aef34691f267968025a0431eb0c6b4779e7aa4ca --- /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 0000000000000000000000000000000000000000..934c1ece7a8523287799f7de95104df1e41ed4cc --- /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 0000000000000000000000000000000000000000..fe66e16b768d164b6838fecf5613f1428742e511 --- /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 f6db12b43755c97fe864a5486d927a0e196c1705..0000000000000000000000000000000000000000 --- 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 17a143efd6c1a6d85bad0b4a6d15d0473b8ee5e7..0000000000000000000000000000000000000000 --- 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 9f8ea44769c02532ba4e4a922a93292e4da4804f..0000000000000000000000000000000000000000 --- 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 777b2be49169cc2a8844603cd575339fe977fc99..0000000000000000000000000000000000000000 --- 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 df26b6cd75d22e10a53875cad880bc245cde1432..0000000000000000000000000000000000000000 --- 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 a2a5cdf5372a9523cdf6f24cbf10ebac97fdca26..0000000000000000000000000000000000000000 --- 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 a69e53235363cc6d7ee323242f3caf6682fa5416..0000000000000000000000000000000000000000 --- 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 9aa96f5565d996ec4729b901c2af62a66e1d9340..0000000000000000000000000000000000000000 --- 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 46bbee0698a5fda7618b3c50a21841beb4af8102..0000000000000000000000000000000000000000 --- 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 f36cb5d21adca3bc78f611af0d620bf12de1b337..0000000000000000000000000000000000000000 --- 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 f031182c6c2cc211559bc59afe1f2abcf563d5bb..0000000000000000000000000000000000000000 --- 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 7bba175ce71449158f811dcbcace0c08e611b343..0000000000000000000000000000000000000000 --- 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 30505b38c81aab9551e0eb050e6f76fa631befd0..0000000000000000000000000000000000000000 --- 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 796c66c235b5e03060c89b81d3710443627ae963..0000000000000000000000000000000000000000 --- 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 a38c4aab359d9fd3b01c45516a4378f45578bea6..0000000000000000000000000000000000000000 --- 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 503992b9cae57d5bcc0b99a196d1732018103450..0000000000000000000000000000000000000000 --- 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 3b13a604f83a97dd3c3e065ed6c1386673b8c064..0000000000000000000000000000000000000000 --- 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 513d7d42a5026ab02e3e626d0596542ceaa59b92..0000000000000000000000000000000000000000 --- 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 5a7b780ca86c0b39df6bc645acdbbd1c9735e20c..0000000000000000000000000000000000000000 --- 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 4fa49603dafa8910b0a2dba189c54e229bcb047c..0000000000000000000000000000000000000000 --- 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 51b10f9f8027b2a0d12b103c42f049718688eae9..0000000000000000000000000000000000000000 --- 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 322c17f87a623b0ae1e80a3b64f112bc97cf95aa..0000000000000000000000000000000000000000 --- 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 da48ec3170f1991d8ad01cfccb0ad6ae8e31cb32..0000000000000000000000000000000000000000 --- 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 e029a0219f270a32409b8bccf8e8617c468cf10f..0000000000000000000000000000000000000000 --- 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 b18d0eb2ca4a0ec971ad550806067d494569b868..0000000000000000000000000000000000000000 --- 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 a692955e5e2648f3c3a980aca4fb8e0479ecf6a2..0000000000000000000000000000000000000000 --- 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 760958a5f5db3da263740816ab7aee2228484d87..0000000000000000000000000000000000000000 --- 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 365e184fcdd490323560b5d459056ed75f921882..0000000000000000000000000000000000000000 --- 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 04a8dedcf6d413ab0dad053b2e7d5a5f4792627e..0000000000000000000000000000000000000000 --- 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 ae5d801942f86135d2d4273cd1c671e34b7c8a39..0000000000000000000000000000000000000000 --- 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 458905e774fb491423c2c165d9fb4d1cd39097b8..0000000000000000000000000000000000000000 --- 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 5f24275dbea96ee1247d1760459f2ed762fc8c2d..0000000000000000000000000000000000000000 --- 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 e5621c49202bffce8cc4e836018c5947e0734944..0000000000000000000000000000000000000000 --- 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 0468eb3f87f51024286cb136627bf38f5c4e2a33..0000000000000000000000000000000000000000 --- 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 bf603bd2683e5d2f83522f2fbc8c851d83353a2a..51d8f735150f1a022bc05b56911779f5b05c1c57 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 0000000000000000000000000000000000000000..283e88c4195ee1ca7697ef755a3924e4aec03e9e --- /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 0000000000000000000000000000000000000000..197fb95e413e224aa92c08de8d498f9904b33bfb --- /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 0000000000000000000000000000000000000000..4867dbacbcc5d4e696a8c2114a45ccdad9a59cc2 --- /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 0000000000000000000000000000000000000000..9bdc7ea0317bd87d5391317629e7e8722d49338a --- /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 0000000000000000000000000000000000000000..79b8f64bbfec03631bc8e701864cba68ae01dc4f --- /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 0000000000000000000000000000000000000000..7350c98ed7925d51bc056f6c4b67c2d194cb3a7a --- /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 0000000000000000000000000000000000000000..96d762c693179ddaff180997201a9d390fed536a --- /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 0000000000000000000000000000000000000000..5ff029b1f069f36dea2dc9ce51572ba8f8e1d11c --- /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 0000000000000000000000000000000000000000..537195e85345144dd7f2bc71f9205e3a186482d2 --- /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 0000000000000000000000000000000000000000..095ff82f11fca062e620677918f1c5449b9fcbac --- /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 1945c468894ee5fc1461076e679a42040af30699..e693a88069d553267f3d175fdbee2761ce30e3d8 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 47454b8083149df569c1951541b0c77c879cd064..08ae3303985dadefc4e7e60b8e89f024344edb89 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 0000000000000000000000000000000000000000..70613d61f6a40409919d0971713415760ac274c9 --- /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 0000000000000000000000000000000000000000..6e309479179ffeaaf58c475c9db702c7aa3a3168 --- /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 0000000000000000000000000000000000000000..3ee4d1e8a164e8ab9f11baf73e8bdef64d6fb37d --- /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 0000000000000000000000000000000000000000..61987cb13b9013f98bdce1207e44f0a9240bc44d --- /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 0000000000000000000000000000000000000000..1f040a4dc4e646bc967c0da172dae90adf930664 --- /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 0000000000000000000000000000000000000000..418904b631eb53de5166555cb26338ef85f555f0 --- /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 "$@" +############################################################################### diff --git a/tst-open-ltp b/tst-open-ltp index a4efb0e351e3fdb29a170ad5cda3e0b4499476db..01614cde43132e7da9f3c9ba7703ead576caa424 160000 --- a/tst-open-ltp +++ b/tst-open-ltp @@ -1 +1 @@ -Subproject commit a4efb0e351e3fdb29a170ad5cda3e0b4499476db +Subproject commit 01614cde43132e7da9f3c9ba7703ead576caa424