From a37640653cab108bb2cfdcba7e9422cced925e95 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 16 Jul 2024 10:48:39 +0200 Subject: 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 --- test/TEST-86-MULTI-PROFILE-UKI/Makefile | 6 ++++++ test/TEST-86-MULTI-PROFILE-UKI/meson.build | 10 ++++++++++ test/TEST-86-MULTI-PROFILE-UKI/test.sh | 10 ++++++++++ 3 files changed, 26 insertions(+) create mode 100644 test/TEST-86-MULTI-PROFILE-UKI/Makefile create mode 100644 test/TEST-86-MULTI-PROFILE-UKI/meson.build create mode 100755 test/TEST-86-MULTI-PROFILE-UKI/test.sh (limited to 'test/TEST-86-MULTI-PROFILE-UKI') 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 "$@" -- cgit v1.2.3