Skip to content
Snippets Groups Projects
Select Git revision
  • 1d0ff1a8310327ca2f44c2394aa7a34e6ac6af45
  • apertis/v2022dev0 default protected
  • wip/wlozano/agl-compositor-launch
  • agl-compositor-fix
  • apertis/v2019
  • apertis/v2020
  • apertis/v2021pre
  • apertis/v2021dev3
  • wip/fdanis/7252-v2020
  • pages
  • apertis/v2021dev2
  • apertis/v2021dev1
  • sagar/test
  • wip/d4s/test_sign
  • apertis/v2020pre
  • apertis/v2021dev0
  • apertis/v2020dev0
  • wip/sagar/sdk-persistent-test-improvements
  • apertis/v2019pre
  • wip/fredo/sdk-tools-tests
  • apertis/v2019dev0
  • apertis/1.1812.0
22 results

image-gui-start.yaml

Blame
  • 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)$