Skip to content
Snippets Groups Projects
Commit cd1263d9 authored by Frederic Danis's avatar Frederic Danis
Browse files

apparmor-ofono: Update test to automated


Latest version of the test is able to run on boards or SDKs, APT or OSTree.

Signed-off-by: default avatarFrédéric Danis <frederic.danis@collabora.com>
parent 7fe7f162
No related branches found
No related tags found
1 merge request!371Update geoclue and ofono apparmor tests
......@@ -24,3 +24,9 @@
from: git
path: test-cases/apparmor-functional-demo.yaml
name: apparmor-functional-demo
- repository: https://gitlab.apertis.org/tests/apertis-test-cases.git
branch: 'apertis/v2023dev1'
history: False
from: git
path: test-cases/apparmor-ofono.yaml
name: apparmor-ofono
......@@ -3,19 +3,18 @@ metadata:
format: "Apertis Test Definition 1.0"
image-types:
hmi: [ armhf, amd64 ]
basesdk: [ amd64 ]
sdk: [ amd64 ]
image-deployment:
- APT
- OSTree
type: functional
exec-type: manual
exec-type: automated
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_ostree_preconditions:
reponame: ofono
branch: apertis/v2023dev1
......@@ -33,13 +32,15 @@ metadata:
># apparmor-ofono: at least one test failed
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."
- "The results of the tests printed to the standard output are enough to
determine whether they passed or fail."
run:
steps:
- "# Enter test directory:"
- cd ofono
- "Execute the following command:"
- $ sudo ./run-test.sh
parse:
pattern: ^(?P<test_case_id>[\w\-\.]+):\s(?P<result>PASS|pass|FAIL|fail|SKIP|skip|UNKNOWN|unknown)$
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment