未验证 提交 e16cbc74 编写于 作者: A Austin 提交者: Gitee

update zh-cn/device-dev/subsystems/subsys-xts-guide.md.

Signed-off-by: NAustin23 <liaozhiqi7@huawei.com>
上级 aa0bb263
...@@ -255,16 +255,16 @@ XTS子系统当前包括acts与tools软件包: ...@@ -255,16 +255,16 @@ XTS子系统当前包括acts与tools软件包:
// Test suite cleanup action, which is executed after the last test case // Test suite cleanup action, which is executed after the last test case
static void TearDownTestCase(void){ static void TearDownTestCase(void){
} }
// Preset action of the test case // Preset action of the test case
virtual void SetUp() virtual void SetUp()
{ {
} }
// Cleanup action of the test case // Cleanup action of the test case
virtual void TearDown() virtual void TearDown()
{ {
} }
}; };
``` ```
3. 使用宏定义HWTEST或HWTEST_F写测试用例 3. 使用宏定义HWTEST或HWTEST_F写测试用例
...@@ -285,8 +285,7 @@ XTS子系统当前包括acts与tools软件包: ...@@ -285,8 +285,7 @@ XTS子系统当前包括acts与tools软件包:
每个测试模块目录下新建BUILD.gn编译文件,用于指定编译后可执行文件的名称、依赖的头文件、依赖的库等;具体写法如下。每个测试模块将独立编译成.bin可执行文件, 该文件可直接push到单板上进行测试。 每个测试模块目录下新建BUILD.gn编译文件,用于指定编译后可执行文件的名称、依赖的头文件、依赖的库等;具体写法如下。每个测试模块将独立编译成.bin可执行文件, 该文件可直接push到单板上进行测试。
举例: 举例:
``` ```
import("//test/xts/tools/lite/build/suite_lite.gni") import("//test/xts/tools/lite/build/suite_lite.gni")
hcpptest_suite("ActsDemoTest") { hcpptest_suite("ActsDemoTest") {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册