From: Yu Watanabe Date: Wed, 3 Sep 2025 16:33:47 +0000 (+0900) Subject: TEST-58-REPART: make sector size test as a normal test case X-Git-Tag: v258-rc4~16^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4f15fc1407c08c07e480c3f27b9a3e7e7b039be;p=thirdparty%2Fsystemd.git TEST-58-REPART: make sector size test as a normal test case --- diff --git a/test/units/TEST-58-REPART.sh b/test/units/TEST-58-REPART.sh index aa472df99ad..e1e18264f8b 100755 --- a/test/units/TEST-58-REPART.sh +++ b/test/units/TEST-58-REPART.sh @@ -1375,6 +1375,16 @@ EOF assert_in "${loop}p3 : start= *${start}, size= *${size}, type=0FC63DAF-8483-4772-8E79-3D69D8477DE4, uuid=DB081670-07AE-48CA-9F5E-813D5E40B976, name=\"linux-generic-2\"" "$output" } +testcase_sector() { + # Valid block sizes on the Linux block layer are >= 512 and <= PAGE_SIZE, and + # must be powers of 2. Which leaves exactly four different ones to test on + # typical hardware + test_sector 512 + test_sector 1024 + test_sector 2048 + test_sector 4096 +} + testcase_dropped_partitions() { local workdir image defs @@ -1627,12 +1637,4 @@ if ! systemd-detect-virt --container; then run_testcases fi -# Valid block sizes on the Linux block layer are >= 512 and <= PAGE_SIZE, and -# must be powers of 2. Which leaves exactly four different ones to test on -# typical hardware -test_sector 512 -test_sector 1024 -test_sector 2048 -test_sector 4096 - touch /testok