# tsuite-demo **Repository Path**: opencloudos-testing/tsuite-demo ## Basic Information - **Project Name**: tsuite-demo - **Description**: No description available - **Primary Language**: Unknown - **License**: MulanPSL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2023-09-20 - **Last Updated**: 2026-01-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # tsuite-demo tsuite测试套样例 ### 测试套目录结构 ```shell tsuite-demo/ ├── cmd/ -- 测试套公共命令工具目录 ├── common/ -- git子模块,指向tsuite项目,包含测试套框架代码和公共库函数等 ├── kmod/ -- 测试套使用的内核模块 ├── lib/ -- 测试套公共 │   ├── ts_common.c -- 测试套公共C函数及对应头文件 │   ├── ts_common.h │   ├── ts_common.py -- 测试套公共Python模块 │   ├── ts_common.sh -- 测试套公共shell函数 │   ├── ts_setup -- 测试套setup脚本 │   └── ts_teardown -- 测试套teardown脚本 ├── logs │   ├── report.result -- 测试结果记录,allure格式 │   ├── run.list -- 本次测试执行的用例列表 │   ├── run.result -- 测试结果记录 │   ├── testcase/ -- 用例日志,每个用例对应一个日志文件 │   ├── ts_setup.log -- 测试套setup日志 │   └── ts_teardown.log -- 测试套teardown日志 ├── testcase/ -- 测试用例目录,所有用例文件必须放在该目录下 └── tsuite -- tsuite测试套管理入口脚本 ``` ### 测试用例信息 测试用例属性字段和执行流程等框架信息见:https://gitee.com/opencloudos-testing/tsuite ### 新建测试项目 新建测试项目步骤如下: ```shell # 1. 在代码平台如gitee新建一个git仓库,例如:`https://gitee.com/opencloudos-testing/example-repo.git` # 2. clone仓库 git clone https://gitee.com/opencloudos-testing/example-repo.git ./example-repo # 3. 添加tsuite公共模块 cd ./example-repo && git submodule add https://gitee.com/opencloudos-testing/tsuite.git common # 4. 执行初始化脚本 ./common/lib/tsuite-init.sh # 5. 提交tsuite模板文件 git add * .gitignore && git commit -asm 'init tsuite project' ```