1 Star 0 Fork 4.9K

bill / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
xts.md 2.72 KB
一键复制 编辑 原始数据 按行查看 历史
NEEN 提交于 2021-03-12 17:59 . !197 Docs Update version 1.0.1

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:

  1. Add the XTS subsystem to the building component.
  2. 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:

  1. 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":[] }
         ]
    },
  2. 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:

  1. 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.

  2. Burn the image into the development board.

  3. 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.

  4. 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.

1
https://gitee.com/ximeibaba/docs.git
git@gitee.com:ximeibaba/docs.git
ximeibaba
docs
docs
master

搜索帮助