harmony(鸿蒙)XTS
XTS
Introduction
X Test Suite (XTS) is a set of OpenHarmony certification test suites. Currently, the application compatibility test suite (ACTS) is supported. The test/xts repository contains the acts directory and tools software package.
- The acts directory stores the source code and configuration files of ACTS test cases. The ACTS helps device vendors detect the software incompatibility as early as possible and ensures that the software is compatible with OpenHarmony during the entire development process.
- The tools software package stores the test case development framework related to acts.
NOTE: The startup of the XTS depends on the SAMGR module.
The XTS adaptation consists of the following steps:
- Add the XTS subsystem to the building component.
- Execute ACTS cases for the IoTLink module.
Adding the XTS Subsystem to the Building Component
The following example shows how to add the XTS subsystem to the building component hispark_aries:
Add the definition of the XTS subsystem to the vendor/hisilicon/hispark_aries/config.json file.
{ "subsystem": "test", "components": [ { "component": "xts_acts", "features":[] }, { "component": "xts_tools", "features":[] } ] },
Set the building type to the debug version so that the XTS subsystem can be built.
Executing ACTS Cases for the IoTLink Module
The following example shows how to execute ACTS cases for the IoTLink module of hispark_aries:
Obtain the built image.
Obtain the image from the out/hispark_pegasus/wifiiot_hispark_pegasus/ directory.
NOTE: To check whether the ACTS is integrated into the current image, check whether the corresponding .a file is compiled.
Burn the image into the development board.
Execute the test by performing the following steps.
Use a serial port tool to log in to the development board and save information about the serial port.
Restart the device and view serial port logs.
Analyze the test result.
View the serial port logs, whose format is as follows:
The log for each test suite starts with Start to run test suite: and ends with xx Tests xx Failures xx Ignored.
你可能感兴趣的鸿蒙文章
harmony(鸿蒙)Combo Solution – ASR Chip Porting Case
harmony(鸿蒙)Mini-System Devices with Screens — Bestechnic SoC Porting Case
harmony(鸿蒙)Third-party Module Adaptation
harmony(鸿蒙)Board-Level Driver Adaptation
harmony(鸿蒙)Implementation of APIs at the HAL
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦