From: Lennart Poettering Date: Mon, 7 Feb 2022 13:35:40 +0000 (+0100) Subject: tests: add repart tests for block devices with 1024, 2048, 4096 byte sector sizes X-Git-Tag: v251-rc1~331^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F22423%2Fhead;p=thirdparty%2Fsystemd.git tests: add repart tests for block devices with 1024, 2048, 4096 byte sector sizes let's make sure repart works with 4K drives and exotic sector sizes. --- diff --git a/test/units/testsuite-58.sh b/test/units/testsuite-58.sh index 4b3c984c84d..7aed965fb44 100755 --- a/test/units/testsuite-58.sh +++ b/test/units/testsuite-58.sh @@ -189,6 +189,48 @@ grep -qF 'p2 : start= 104448, size= 100319,' /tmp/testsuite-58-issue-2 rm /tmp/testsuite-58-issue-21817.img /tmp/testsuite-58-issue-21817.dump rm -r /tmp/testsuite-58-issue-21817-defs/ +testsector() +{ + echo "Running sector test with sector size $1..." + + mkdir -p /tmp/testsuite-58-sector + cat > /tmp/testsuite-58-sector/a.conf < /tmp/testsuite-58-sector/b.conf < /tmp/testsuite-58-sector/c.conf <= 512 and <= PAGE_SIZE, and +# must be powers of 2. Which leaves exactly four different ones to test on +# typical hardware +testsector 512 +testsector 1024 +testsector 2048 +testsector 4096 + echo OK >/testok exit 0