summaryrefslogtreecommitdiffstats
path: root/test/TEST-86-MULTI-PROFILE-UKI
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2024-07-16 10:48:39 +0200
committerLennart Poettering <lennart@poettering.net>2024-09-17 10:40:51 +0200
commita37640653cab108bb2cfdcba7e9422cced925e95 (patch)
tree50828cff6981eb5a58bba4c2bcdaf8d46bb035be /test/TEST-86-MULTI-PROFILE-UKI
parentdocs: fix typo in filename: REATLIME -> REALTIME (diff)
downloadsystemd-a37640653cab108bb2cfdcba7e9422cced925e95.tar.xz
systemd-a37640653cab108bb2cfdcba7e9422cced925e95.zip
ci: add testcase for multi-profile UKIs
This tests the whole shebang: 1. That ukify can generate them properly 2. That systemd-boot can dissect them properly 3. That systemd-stub can accept profile selection propery 4. That the profile information ends up in /run/systemd/stub/ properly 5. That systemd-measure correctly calculates the expected PCR 11 values for each profile and that we can unlock a public-key bound LUKS volume with it
Diffstat (limited to 'test/TEST-86-MULTI-PROFILE-UKI')
-rw-r--r--test/TEST-86-MULTI-PROFILE-UKI/Makefile6
-rw-r--r--test/TEST-86-MULTI-PROFILE-UKI/meson.build10
-rwxr-xr-xtest/TEST-86-MULTI-PROFILE-UKI/test.sh10
3 files changed, 26 insertions, 0 deletions
diff --git a/test/TEST-86-MULTI-PROFILE-UKI/Makefile b/test/TEST-86-MULTI-PROFILE-UKI/Makefile
new file mode 100644
index 0000000000..653f16163f
--- /dev/null
+++ b/test/TEST-86-MULTI-PROFILE-UKI/Makefile
@@ -0,0 +1,6 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+all setup run clean clean-again:
+ true
+
+.PHONY: all setup run clean clean-again
diff --git a/test/TEST-86-MULTI-PROFILE-UKI/meson.build b/test/TEST-86-MULTI-PROFILE-UKI/meson.build
new file mode 100644
index 0000000000..53042884cc
--- /dev/null
+++ b/test/TEST-86-MULTI-PROFILE-UKI/meson.build
@@ -0,0 +1,10 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+integration_tests += [
+ integration_test_template + {
+ 'name' : fs.name(meson.current_source_dir()),
+ 'storage' : 'persistent',
+ 'vm' : true,
+ 'firmware' : 'auto',
+ },
+]
diff --git a/test/TEST-86-MULTI-PROFILE-UKI/test.sh b/test/TEST-86-MULTI-PROFILE-UKI/test.sh
new file mode 100755
index 0000000000..1b06a109d2
--- /dev/null
+++ b/test/TEST-86-MULTI-PROFILE-UKI/test.sh
@@ -0,0 +1,10 @@
+#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
+set -e
+
+TEST_DESCRIPTION="Test Multi-Profile UKI Boots"
+
+# shellcheck source=test/test-functions
+. "${TEST_BASE_DIR:?}/test-functions"
+
+do_test "$@"