From: Vitaly Kuznetsov Date: Tue, 21 Oct 2025 13:23:32 +0000 (+0200) Subject: TEST-50-DISSECT: test 'encrypted' and 'encryptedwithintegrity' policies X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb09cc02bdb9940c73e946116cda4f6b2dc076d6;p=thirdparty%2Fsystemd.git TEST-50-DISSECT: test 'encrypted' and 'encryptedwithintegrity' policies Test the newly introduced 'encryptedwithintegrity' image policy and verify that it's different from 'encrypted' one. --- 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" <