diff --git a/file/testcase/file-test.sh b/file/testcase/file-test.sh index 12cde527ed3b44bface5719de795adb7306026dd..61ebe6d0725d8549e252bcb8e5a17344cf954448 100755 --- a/file/testcase/file-test.sh +++ b/file/testcase/file-test.sh @@ -17,12 +17,16 @@ g_tmpdir="$(mktemp -d)" tc_setup() { msg "this is tc_setup" + #预置条件:系统正常运行,且已安装file软件包 assert_true yum install -y file return 0 } do_test() { msg "this is do_test" + + # @测试步骤:1:创建文件a.txt,并执行file -b a.txt + # @预期结果:1:成功获取到a.txt的file -b结果 assert_ture touch a.txt echo "test" >> a.txt assert_true file -b a.txt