]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: add sfdisk script case-insensitive test
authorKarel Zak <kzak@redhat.com>
Wed, 26 Oct 2016 12:08:29 +0000 (14:08 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 26 Oct 2016 12:08:29 +0000 (14:08 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
tests/expected/sfdisk/dos-read-dump-case [new file with mode: 0644]
tests/ts/sfdisk/dos

diff --git a/tests/expected/sfdisk/dos-read-dump-case b/tests/expected/sfdisk/dos-read-dump-case
new file mode 100644 (file)
index 0000000..5d007f7
--- /dev/null
@@ -0,0 +1,21 @@
+Checking that no-one is using this disk right now ... OK
+
+Disk <removed>: 50 MiB, 52428800 bytes, 102400 sectors
+Units: sectors of 1 * 512 = 512 bytes
+Sector size (logical/physical): 512 bytes / 4096 bytes
+I/O size (minimum/optimal): 4096 bytes / <removed> bytes
+
+>>> Script header accepted.
+>>> Script header accepted.
+>>> Created a new <removed>.
+<removed>1: Created a new <removed>.
+<removed>2: Done.
+
+New situation:
+
+Device     Boot Start   End Sectors Size Id Type
+<removed>1  *     2048  8191    6144   3M 83 Linux
+
+The partition table has been altered.
+Calling ioctl() to re-read partition table.
+Syncing disks.
index 692a717250299495a2ca29c406bf350f0ec5a069..ba9d5ccc43e1560b27bd27dceddcfa8f9217616e 100755 (executable)
@@ -65,6 +65,20 @@ udevadm settle
 ts_finalize_subtest
 
 
+ts_init_subtest "read-dump-case"
+$TS_CMD_WIPEFS -a ${TS_DEVICE} &> /dev/null
+udevadm settle
+$TS_CMD_SFDISK --unit S ${TS_DEVICE} >> $TS_OUTPUT 2>&1 <<EOF
+unit: sectors
+label-id: 0x1ddc8a79
+
+${TS_DEVICE}1 : stArt=     2048, sIZe=     6144, id=83, bootAble
+EOF
+ts_fdisk_clean $TS_DEVICE
+udevadm settle
+ts_finalize_subtest
+
+
 ts_init_subtest "read-dump"
 $TS_CMD_WIPEFS -a ${TS_DEVICE} &> /dev/null
 udevadm settle