ade-commands automated
critical
- Image Types:
- basesdk-amd64 / sdk-amd64
- Image Deployment:
- APT
- Type:
- functional
Description
Test ade command and sub-command with default and custom options and arguments.
Pre Conditions
- Clone the tests repository from another computer (Note that the branch being tested may change depending on the release, please make sure to clone the correct branch for the release in question):
- Copy the test directory apertis-tests to the target device:
- Log into the target device:
- Network connectivity on the DUT as these tests fetch sysroot images over the network.
$ git clone --branch apertis/v2024dev3 https://gitlab.apertis.org/pkg/apertis-tests.git
$ DUT_IP=<device-ip>
$ scp -r apertis-tests user@$DUT_IP:
$ ssh user@$DUT_IP
Execution Steps
- Enter test directory:
- Run the ade-tests-custom.sh and ade-tests-defaults.sh script from the ade/ directory
$ cd apertis-tests
$ common/run-test-in-systemd --timeout=90min ade/ade-tests-custom.sh
$ common/run-test-in-systemd --timeout=90min ade/ade-tests-defaults.sh
Expected
The automated test should succeed and print some information about the built app:
>> stat src/dash
>>> File: src/dash
Notes
- Lots of ade messages will be logged on the standard output. Upon test fail, the script will abort with:
Job for generated-test-case-ade_ade-tests-defaults_sh.service failed because the control process exited with error code.
>See "systemctl --user status generated-test-case-ade_ade-tests-defaults_sh.service" and "journalctl --user -xe" for details.
>Command exited with non-zero status 1