Newer
Older
metadata:
name: ade-commands
format: "Apertis Test Definition 1.0"
image-types:
basesdk: [ amd64 ]
sdk: [ amd64 ]
type: functional
exec-type: automated
priority: critical
maintainer: "Apertis Project"
description: "Test ade command and sub-command with default and custom options
and arguments."
pre-conditions:
- "Network connectivity on the DUT as these tests fetch sysroot images over
the network."
expected:
- "The automated test should succeed and print some information about the built app-bundle:"
>>> + stat org.apertis.HelloWorld.SimpleAgent-0.1.0.bundle
>>> File: org.apertis.HelloWorld.SimpleAgent-0.1.0.bundle
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
install:
git-repos:
- url: https://git.apertis.org/git/apertis-tests.git
- "# Enter test directory:"
- cd apertis-tests
- "# Run the ade-tests-custom.sh and ade-tests-defaults.sh script from the ade/
directory"
- common/run-test-in-systemd --timeout=30min ade/ade-tests-custom.sh
- common/run-test-in-systemd --timeout=30min ade/ade-tests-defaults.sh
parse:
pattern: 'TEST_RESULT:(?P<result>\w+):(?P<test_case_id>[^:]+):'