Skip to content
Snippets Groups Projects
test_file5.yaml 1.2 KiB
Newer Older
Luis Araujo's avatar
Luis Araujo committed
metadata:
  name: ribchester
  format: "Apertis Test Definition 1.0"
  image-type: any
  image-arch: any
Luis Araujo's avatar
Luis Araujo committed
  exec-type: automated
  priority: critical
  maintainer: "Apertis Project"
  description: "Ribchester library test."

  macro_modules_preconditions: ribchester

  expected:
    - "All tests should pass (ok). The output should be similar to:"
    - |
        >test.name0...ok
        test.name1...ok
        test.name2...ok
        test.nameN...ok

install:
  deps:
    - build-essential
    - devscripts
    - gnome-desktop-testing
    - python3-debian
    - ribchester-dev
    - ribchester-tests
Luis Araujo's avatar
Luis Araujo committed
  steps:
    # Download in /tmp directory
    - cd /tmp/
    - apt source ribchester
    - chown user:user -R /tmp/ribchester-*
  git-repos:
    - url: https://gitlab.apertis.org/infrastructure/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
    - "# Execute the following command:"
    - common/run-test-in-systemd --timeout=900 --chdir /tmp/ribchester-* --user=user --name=ribchester -- sadt --verbose

parse:
  pattern: '^(?P<test_case_id>[a-zA-Z0-9_\-\./]+)\s...\s(?P<result>ok|FAIL|SKIP)'
  fixupdict:
    ok: pass
    FAIL: fail
    SKIP: skip