Skip to content
Snippets Groups Projects
ade-commands.yaml 1.37 KiB
Newer Older
Luis Araujo's avatar
Luis Araujo committed
metadata:
  name: ade-commands
  format: "Apertis Test Definition 1.0"
  image-types:
    basesdk: [ amd64 ]
    sdk:     [ amd64 ]
  image-deployment:
    - APT
Luis Araujo's avatar
Luis Araujo committed
  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
      branch: master

Luis Araujo's avatar
Luis Araujo committed
run:
  steps:
    - "# Enter test directory:"
    - cd apertis-tests
Luis Araujo's avatar
Luis Araujo committed
    - "# Run the ade-tests-custom.sh and ade-tests-defaults.sh script from the ade/
       directory"
    - common/run-test-in-systemd --timeout=30min --name=run-test ade/ade-tests-custom.sh
    - common/run-test-in-systemd --timeout=30min --name=run-test ade/ade-tests-defaults.sh

parse:
  pattern: 'TEST_RESULT:(?P<result>\w+):(?P<test_case_id>[^:]+):'