From: Daan De Meyer Date: Wed, 9 Nov 2022 12:41:38 +0000 (+0100) Subject: repart: Add integration test for #24678 X-Git-Tag: v253-rc1~551^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F24803%2Fhead;p=thirdparty%2Fsystemd.git repart: Add integration test for #24678 --- diff --git a/test/units/testsuite-58.sh b/test/units/testsuite-58.sh index f41069ee04f..9798c5b122e 100755 --- a/test/units/testsuite-58.sh +++ b/test/units/testsuite-58.sh @@ -773,6 +773,60 @@ EOF systemd-dissect -U "$imgs/mnt" } +test_issue_24786() { + local defs imgs root output + + if systemd-detect-virt --quiet --container; then + echo "Skipping verity test in container." + return + fi + + defs="$(mktemp --directory "/tmp/test-repart.XXXXXXXXXX")" + imgs="$(mktemp --directory "/var/tmp/test-repart.XXXXXXXXXX")" + root="$(mktemp --directory "/var/tmp/test-repart.XXXXXXXXXX")" + # shellcheck disable=SC2064 + trap "rm -rf '$defs' '$imgs' '$root'" RETURN + + touch "$root/abc" + mkdir "$root/usr" + touch "$root/usr/def" + + cat >"$defs/00-root.conf" <"$defs/10-usr.conf" <= 512 and <= PAGE_SIZE, and # must be powers of 2. Which leaves exactly four different ones to test on