diff --git a/coreutils/testcase/python3.10.sh b/coreutils/testcase/python3.10.sh new file mode 100755 index 0000000000000000000000000000000000000000..94ed8f4cebe2b19e4d64f908a4dbbddbf511c386 --- /dev/null +++ b/coreutils/testcase/python3.10.sh @@ -0,0 +1,63 @@ +#!/bin/bash +############################################################################### +# @用例ID: 20230525-181234-711502825 +# @用例名称: python3.10 +# @用例级别: 3 +# @用例标签: +# @用例类型: 功能 +############################################################################### +[ -z "$TST_TS_TOPDIR" ] && { + TST_TS_TOPDIR="$(realpath "$(dirname "$0")/..")" + export TST_TS_TOPDIR +} +source "${TST_TS_TOPDIR}/tst_common/lib/common.sh" || exit 1 +############################################################################### + +g_tmpdir="$(mktemp -d)" + +tc_setup() { + # @测试是否安装python3.10 + msg "this is tc_setup" + if ["$(python --version)" != "3.10.*"]; + then + echo "python 3.10.* not installed!" + return 1 + fi + + return 0 +} + +do_test() { + + #@测试步骤1: 创建一个python文件 + msg "this is do_test" + cat > HelloWorld.py <