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:"
- |
>>>> Test setup successfully!
>>> ==== Testing ade usage with custom parameters
>>> "TEST_RESULT:pass:ade-tests-custom:"
notes:
- "Lots of ade messages will be logged on the standard output. Upon test fail,
the script will abort with:"
- |
>TEST_RESULT:fail:ade-tests-custom:
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>[^:]+):'