Skip to content
Snippets Groups Projects
Commit cc2109f8 authored by Luis Araujo's avatar Luis Araujo
Browse files

Update remaining test cases for LAVA integration


This commit updates the remaining tests cases for LAVA
integration.

The change consists in adding the `git-repos` directive so they
can fetch the tests scripts from LAVA.

Signed-off-by: default avatarLuis Araujo <luis.araujo@collabora.co.uk>
parent 2777863b
No related branches found
No related tags found
No related merge requests found
......@@ -35,27 +35,32 @@ metadata:
install:
deps:
- apparmor
- apparmor-profiles
- busybox
- chaiwala-apparmor-profiles
- apertis-tests-apparmor-report
- chaiwala-tests
- evolution-data-server
- folks-tools
- syncevolution
- python3
- telepathy-mission-control-5
- telepathy-gabble
- libfolks-eds25
- libfolks-telepathy25
- apparmor
- apparmor-profiles
- busybox
- chaiwala-apparmor-profiles
- apertis-tests-apparmor-report
- chaiwala-tests
- evolution-data-server
- folks-tools
- syncevolution
- python3
- telepathy-mission-control-5
- telepathy-gabble
- libfolks-eds25
- libfolks-telepathy25
git-repos:
- url: https://gitlab.apertis.org/infrastructure/apertis-tests.git
branch: master
run:
steps:
- "# Execute the following commands:"
- echo -n | sudo tee /var/log/audit/audit.log
- common/run-test-in-systemd --name=run-test-folks --timeout=300 apparmor/folks/test-folks
- sudo cat /var/log/audit/audit.log | aa_log_extract_tokens.pl PERMITTING REJECTING
- "# Enter test directory:"
- cd apertis-tests
- "# Execute the following commands:"
- echo -n | sudo tee /var/log/audit/audit.log
- common/run-test-in-systemd --name=run-test-folks --timeout=300 apparmor/folks/test-folks
- sudo cat /var/log/audit/audit.log | aa_log_extract_tokens.pl PERMITTING REJECTING
parse:
pattern: ^(?P<test_case_id>.+)\.expected:\s*(?P<result>PASS|pass|FAIL|fail|SKIP|skip|UNKNOWN|unknown)$
......@@ -24,17 +24,22 @@ metadata:
install:
deps:
- bash
- apparmor-demo
- busybox
- apertis-tests-apparmor-report
- bash
- apparmor-demo
- busybox
- apertis-tests-apparmor-report
git-repos:
- url: https://gitlab.apertis.org/infrastructure/apertis-tests.git
branch: master
run:
steps:
- "# Execute the following commands:"
- echo -n | sudo tee /var/log/audit/audit.log
- common/run-test-in-systemd --name=run-lava_run_tests --timeout=90 /usr/lib/apparmor-demo/lava_run_tests
- sudo cat /var/log/audit/audit.log | aa_log_extract_tokens.pl PERMITTING REJECTING
- "# Enter test directory:"
- cd apertis-tests
- "# Execute the following commands:"
- echo -n | sudo tee /var/log/audit/audit.log
- common/run-test-in-systemd --name=run-lava_run_tests --timeout=90 /usr/lib/apparmor-demo/lava_run_tests
- sudo cat /var/log/audit/audit.log | aa_log_extract_tokens.pl PERMITTING REJECTING
parse:
fixupdict:
......
......@@ -24,15 +24,20 @@ metadata:
install:
deps:
- busybox
- apertis-tests-apparmor-geoclue
- busybox
- apertis-tests-apparmor-geoclue
git-repos:
- url: https://gitlab.apertis.org/infrastructure/apertis-tests.git
branch: master
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
- "# Enter test directory:"
- cd apertis-tests
- "# 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)$
......@@ -35,21 +35,26 @@ metadata:
install:
deps:
- busybox
- apertis-tests-apparmor-report
- apertis-tests-apparmor-tracker
- gir1.2-grilo-0.2
- gir1.2-tracker-1.0
- python3
- python3-gi
- wget
- busybox
- apertis-tests-apparmor-report
- apertis-tests-apparmor-tracker
- gir1.2-grilo-0.2
- gir1.2-tracker-1.0
- python3
- python3-gi
- wget
steps:
- wget https://people.collabora.com/~araujo/apertis-test-media.tar.bz2
- mkdir -p /home/shared/
- tar -jxvf apertis-test-media.tar.bz2 -C /home/shared/
- wget https://people.collabora.com/~araujo/apertis-test-media.tar.bz2
- mkdir -p /home/shared/
- tar -jxvf apertis-test-media.tar.bz2 -C /home/shared/
git-repos:
- url: https://gitlab.apertis.org/infrastructure/apertis-tests.git
branch: master
run:
steps:
- "# Enter test directory:"
- cd apertis-tests
- "# Execute the following commands:"
- echo -n | sudo tee /var/log/audit/audit.log
- common/run-test-in-systemd --name run-test-tracker --timeout 3000 apparmor/tracker/test-tracker
......
......@@ -37,12 +37,17 @@ metadata:
install:
deps:
- apparmor-utils-tests
- busybox
- apertis-tests-apparmor-report
- apparmor-utils-tests
- busybox
- apertis-tests-apparmor-report
git-repos:
- url: https://gitlab.apertis.org/infrastructure/apertis-tests.git
branch: master
run:
steps:
- "# Enter test directory:"
- cd apertis-tests
- "# Run the the following commands:"
- echo -n | sudo tee /var/log/audit/audit.log
- 'common/run-test-in-systemd --name=aa-enforce-test --timeout 90 -- sh /usr/lib/apparmor-utils-tests/aa-enforce-test.sh'
......
......@@ -15,16 +15,21 @@ metadata:
install:
deps:
- libpam-cgfs
- lxc
- lxc-templates
- uidmap
- libpam-cgfs
- lxc
- lxc-templates
- uidmap
git-repos:
- url: https://gitlab.apertis.org/infrastructure/tiny-image-recipes.git
branch: master
run:
steps:
- "# Execute the following commands:"
- sed s/__NAMESPACE_PLACEHOLDER__/lxc-apertis-tiny-system/g lxc/lxc-tiny-connectivity-profile-template | apparmor_parser -qr
- lavatests/check-tiny-containers -a "$ARCH" -r "$RELEASE" -d "$IMAGE_DATE" -t lxc/lxc-tiny-connectivity --aa-namespace "lxc-apertis-tiny-system"
- "# Enter test directory:"
- cd tiny-image-recipes
- "# Execute the following commands:"
- sed s/__NAMESPACE_PLACEHOLDER__/lxc-apertis-tiny-system/g lxc/lxc-tiny-connectivity-profile-template | apparmor_parser -qr
- lavatests/check-tiny-containers -a "$ARCH" -r "$RELEASE" -d "$IMAGE_DATE" -t lxc/lxc-tiny-connectivity --aa-namespace "lxc-apertis-tiny-system"
parse:
pattern: "(?P<test_case_id>.*-*):\\s+(?P<result>(pass|fail))"
......@@ -15,17 +15,22 @@ metadata:
install:
deps:
- libpam-cgfs
- lxc
- lxc-templates
- uidmap
- libpam-cgfs
- lxc
- lxc-templates
- uidmap
git-repos:
- url: https://gitlab.apertis.org/infrastructure/tiny-image-recipes.git
branch: master
run:
steps:
- "# Execute the following commands:"
- sysctl -w kernel.unprivileged_userns_clone=1
- sed s/__NAMESPACE_PLACEHOLDER__/lxc-apertis-tiny-userns/g lxc/lxc-tiny-connectivity-profile-template | apparmor_parser -qr
- sudo -u user -H lavatests/check-tiny-containers -a "$ARCH" -r "$RELEASE" -d "$IMAGE_DATE" -t lxc/lxc-tiny-connectivity --aa-namespace "lxc-apertis-tiny-userns"
- "# Enter test directory:"
- cd tiny-image-recipes
- "# Execute the following commands:"
- sysctl -w kernel.unprivileged_userns_clone=1
- sed s/__NAMESPACE_PLACEHOLDER__/lxc-apertis-tiny-userns/g lxc/lxc-tiny-connectivity-profile-template | apparmor_parser -qr
- sudo -u user -H lavatests/check-tiny-containers -a "$ARCH" -r "$RELEASE" -d "$IMAGE_DATE" -t lxc/lxc-tiny-connectivity --aa-namespace "lxc-apertis-tiny-userns"
parse:
pattern: "(?P<test_case_id>.*-*):\\s+(?P<result>(pass|fail))"
......@@ -59,8 +59,15 @@ metadata:
- "This test must be executed in an image before running either automated or
manual tests."
install:
git-repos:
- url: https://gitlab.apertis.org/infrastructure/apertis-tests.git
branch: master
run:
steps:
- "# Enter test directory:"
- cd apertis-tests
- "# Execute the following command:"
- common/sanity-check
......
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