From bb09cc02bdb9940c73e946116cda4f6b2dc076d6 Mon Sep 17 00:00:00 2001 From: Vitaly Kuznetsov Date: Tue, 21 Oct 2025 15:23:32 +0200 Subject: [PATCH] TEST-50-DISSECT: test 'encrypted' and 'encryptedwithintegrity' policies Test the newly introduced 'encryptedwithintegrity' image policy and verify that it's different from 'encrypted' one. --- test/units/TEST-50-DISSECT.encrypted.sh | 48 +++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100755 test/units/TEST-50-DISSECT.encrypted.sh diff --git a/test/units/TEST-50-DISSECT.encrypted.sh b/test/units/TEST-50-DISSECT.encrypted.sh new file mode 100755 index 00000000000..9d067f597ae --- /dev/null +++ b/test/units/TEST-50-DISSECT.encrypted.sh @@ -0,0 +1,48 @@ +#!/usr/bin/env bash +# SPDX-License-Identifier: LGPL-2.1-or-later +set -eux +set -o pipefail + +defs="$(mktemp --directory "/tmp/test-repart.defs.XXXXXXXXXX")" +imgs="$(mktemp --directory "/var/tmp/test-repart.imgs.XXXXXXXXXX")" +# shellcheck disable=SC2064 +trap "rm -rf '$defs' '$imgs'" RETURN +chmod 0755 "$defs" + +echo "*** testcase for systemd-dissect and encrypted partitions ***" + +tee "$defs/root.conf" <