Select Git revision
image-gui-start.yaml
Forked from
tests / apertis-test-cases
Source project has a limited visibility.
apparmor-geoclue.yaml 1.23 KiB
metadata:
name: apparmor-geoclue
format: "Apertis Test Definition 1.0"
image-type: target
image-arch: any
type: functional
exec-type: automated
priority: medium
maintainer: "Apertis Project"
description: "Test that geoclue apparmor profiles are working properly."
expected:
- "Both tests should report pass and not fail:"
- |
>geoclue.normal.expected: pass
geoclue.malicious.expected: pass
notes:
- "The results of the tests printed to the standard output are enough to
determine whether they passed or fail."
- "If you get a failure and need to report a bug please run sudo watch-aa on
a terminal and run the case that is failing (separately, if both), and add
the logs you get to the bug report."
install:
deps:
- busybox
- apertis-tests-apparmor-geoclue
run:
steps:
- "# Execute the following commands:"
- echo -n | sudo tee /var/log/audit/audit.log
- common/run-test-in-systemd --name run-test-geoclue --timeout 90 /usr/lib/apertis-tests/apparmor/geoclue/test-geoclue
- sudo cat /var/log/audit/audit.log | aa_log_extract_tokens.pl PERMITTING REJECTING
parse:
pattern: ^(?P<test_case_id>[\w\-\.]+):\s(?P<result>PASS|pass|FAIL|fail|SKIP|skip|UNKNOWN|unknown)$

