ade-commands automated
medium
- 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 ade 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/v2026dev1 https://gitlab.apertis.org/tests/ade.git
$ DUT_IP=<device-ip>
$ scp -r ade user@$DUT_IP:
$ ssh user@$DUT_IP
Execution Steps
- Enter test directory:
- Run the ade-tests-custom.sh and ade-tests-defaults.sh scripts
$ cd ade
$ common/run-test-in-systemd --timeout=90min ./ade-tests-custom.sh
$ common/run-test-in-systemd --timeout=90min ./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