Skip to content

Commit

Permalink
spread: add fips test suite
Browse files Browse the repository at this point in the history
Signed-off-by: Maciej Borzecki <[email protected]>
  • Loading branch information
bboozzoo authored and Meulengracht committed Sep 10, 2024
1 parent 5957b06 commit 005ed8c
Show file tree
Hide file tree
Showing 12 changed files with 37 additions and 3 deletions.
29 changes: 26 additions & 3 deletions spread.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,7 @@ suites:
# All other tests run now and will heavily modify the system.
tests/main/:
summary: Full-system tests for snapd
systems: [-ubuntu-secboot-*]
systems: [-ubuntu-secboot-*, -ubuntu-fips-*]
prepare: |
"$TESTSLIB"/prepare-restore.sh --prepare-suite
prepare-each: |
Expand All @@ -973,7 +973,7 @@ suites:
tests/completion/:
summary: completion tests
# ppc64el disabled because of https://bugs.launchpad.net/snappy/+bug/1655594
systems: [-ubuntu-core-*, -ubuntu-*-ppc64el, -ubuntu-secboot-*]
systems: [-ubuntu-core-*, -ubuntu-*-ppc64el, -ubuntu-secboot-*, -ubuntu-fips-*]
prepare: |
"$TESTSLIB"/prepare-restore.sh --prepare-suite
prepare-each: |
Expand All @@ -1000,7 +1000,7 @@ suites:

tests/regression/:
summary: Regression tests for snapd
systems: [-ubuntu-secboot-*]
systems: [-ubuntu-secboot-*, -ubuntu-fips-*]
prepare: |
"$TESTSLIB"/prepare-restore.sh --prepare-suite
prepare-each: |
Expand Down Expand Up @@ -1057,6 +1057,7 @@ suites:
-amazon-*,
-centos-*,
-ubuntu-secboot-*,
-ubuntu-fips-*,
]
# unittests are run as part of the autopkgtest build already
backends: [-autopkgtest]
Expand Down Expand Up @@ -1397,4 +1398,26 @@ suites:
. "$TESTSLIB"/pkgdb.sh
distro_purge_package qemu genisoimage sshpass qemu-kvm cloud-image-utils xz-utils
# FIPS test suite
tests/fips/:
summary: FIPS enabled test suite
systems:
- ubuntu-fips-*
environment:
# TODO add snap variant
# disable reexec so that the tests run with deb
SNAP_REEXEC/deb: "0"
prepare: |
"$TESTSLIB"/prepare-restore.sh --prepare-suite
prepare-each: |
"$TESTSLIB"/prepare-restore.sh --prepare-suite-each
restore-each: |
"$TESTSLIB"/prepare-restore.sh --restore-suite-each
restore: |
"$TESTSLIB"/prepare-restore.sh --restore-suite
debug: |
if [ "$SPREAD_DEBUG_EACH" = 1 ]; then
systemctl status snapd.socket || true
fi
# vim:ts=4:sw=4:et
1 change: 1 addition & 0 deletions tests/fips/main-fips
1 change: 1 addition & 0 deletions tests/fips/main-known
1 change: 1 addition & 0 deletions tests/fips/main-searching
1 change: 1 addition & 0 deletions tests/fips/main-snap-run
1 change: 1 addition & 0 deletions tests/fips/main-try
1 change: 1 addition & 0 deletions tests/fips/smoke-find-info
1 change: 1 addition & 0 deletions tests/fips/smoke-install
1 change: 1 addition & 0 deletions tests/fips/smoke-remove
1 change: 1 addition & 0 deletions tests/fips/smoke-sandbox
1 change: 1 addition & 0 deletions tests/fips/smoke-versioning
1 change: 1 addition & 0 deletions tests/lib/spread/rules/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ rules:
- tests/smoke/.
- tests/unit/.*
- tests/upgrade/.*
- tests/fips/.*
to: [$SELF]

unit:
Expand Down

0 comments on commit 005ed8c

Please sign in to comment.