Skip to content
Snippets Groups Projects
Forked from tests / apertis-test-cases
474 commits behind the upstream repository.
apparmor-ofono.yaml 1.14 KiB
metadata:
  name: apparmor-ofono
  format: "Apertis Test Definition 1.0"
  image-types:
    target:  [ armhf-internal, amd64 ]
  image-deployment:
    - APT
  type: functional
  exec-type: manual
  priority: medium
  maintainer: "Apertis Project"
  description: "Test that AppArmor profiles provided in ofono package work
                without unexpected auditd log entries."

  resources:
    - "A 3G modem connected."

  macro_install_packages_preconditions: auditd apertis-tests-apparmor-ofono apertis-tests
  
  expected:
    - "A list of executed test with related result (as pass/fail/skip) will be
       shown on console, similar to the following:"
    - |
        >ofonod-normal.expected: pass

  notes:
    - "ofonod-malicous test might (and will, so far) segfault. This is normal and
       does not preclude the test, which shall pass anyway. If the 3G modem is not
       connected, the TC might pass (any of the tests in it), but it would be a
       meaningless test. Be sure that a 3G modem is connected for a meaningful
       test."

run:
  steps:
    - "Execute the following command:"
    - $ sudo /usr/lib/apertis-tests/apparmor/ofono/test-ofonod