Skip to content
Snippets Groups Projects
Commit f76ac03d authored by Esben Haabendal's avatar Esben Haabendal
Browse files

Add minimal documentation of how to build and use ACTS


Signed-off-by: default avatarEsben Haabendal <esben@geanix.com>
parent d513718d
No related branches found
No related tags found
1 merge request!96Add ACTS test suite to openharmony-tools
Pipeline #14909 failed
...@@ -119,7 +119,8 @@ for more information. ...@@ -119,7 +119,8 @@ for more information.
## OpenHarmony host tools ## OpenHarmony host tools
To facilitate working with OpenHarmony systems, an image with various host tools To facilitate working with OpenHarmony systems, an image with various host tools
is provided. is provided. The ACTS test suite for testing for OpenHarmony compatibility can
be included in this image.
See [recipes-openharmony/tools/README.rst](recipes-openharmony/tools/README.rst) See [recipes-openharmony/tools/README.rst](recipes-openharmony/tools/README.rst)
for more information. for more information.
......
...@@ -25,6 +25,10 @@ Once that is in place, the `bitbake` command is simply:: ...@@ -25,6 +25,10 @@ Once that is in place, the `bitbake` command is simply::
DISTRO=oniro-openharmony-linux MACHINE=qemuarma7 bitbake openharmony-tools DISTRO=oniro-openharmony-linux MACHINE=qemuarma7 bitbake openharmony-tools
The default configuration (as defined in
[local.conf.sample](conf/local.conf.sample)), enables building of ACTS and
inclusion in the `openharmony-tools` image.
Installation Installation
************ ************
...@@ -46,3 +50,25 @@ In order to use the installed tools, you need to setup your shell environment ...@@ -46,3 +50,25 @@ In order to use the installed tools, you need to setup your shell environment
$ . /opt/openharmony-tools/environment-setup-x86_64-oesdk-linux $ . /opt/openharmony-tools/environment-setup-x86_64-oesdk-linux
And with that, you will have access to `hdc` and `xdevice` commands. And with that, you will have access to `hdc` and `xdevice` commands.
Running ACTS
============
To run ACTS tests, you need to connect to the OpenHarmony target device (or
QEMU) using `hdc` and then run the tests using `xdevice` command.
(remember to setup the environment as show in the section above)
As an example, running the `ActsContextTest.json` test case against QEMU target
(IP address 192.168.7.2), run
.. code-block::
$ hdc tconn 192.168.7.2:35000
Connect OK
$ xdevice run acts -l ActsContextTest
[2023-02-20 13:25:22,954] [Main] [INFO] [*************** xDevice Test Framework Starting ***************]
[2023-02-20 13:25:22,975] [Utils] [INFO] [The running command is: hdc_std -s tcp:8710 reset]
[2023-02-20 13:25:23,980] [Console] [INFO] [Input command: run -l ActsContextTest]
...
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment