Skip to content
Snippets Groups Projects
ade-commands.yaml 1.6 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 and print some information about the built app-bundle:"
Luis Araujo's avatar
Luis Araujo committed
    - |
        >>> + stat org.apertis.HelloWorld.SimpleAgent-0.1.0.bundle
        >>>   File: org.apertis.HelloWorld.SimpleAgent-0.1.0.bundle
Luis Araujo's avatar
Luis Araujo committed

  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://gitlab.apertis.org/infrastructure/apertis-tests.git
Ritesh Raj Sarraf's avatar
Ritesh Raj Sarraf committed
      branch: 'apertis/v2021dev2'
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=60min ade/ade-tests-custom.sh
    - common/run-test-in-systemd --timeout=60min ade/ade-tests-defaults.sh