From: Karel Zak Date: Wed, 26 Oct 2016 12:08:29 +0000 (+0200) Subject: tests: add sfdisk script case-insensitive test X-Git-Tag: v2.29~29 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f4126f98e165f3e3457ecdb2e3777fa79463cb79;p=thirdparty%2Futil-linux.git tests: add sfdisk script case-insensitive test Signed-off-by: Karel Zak --- diff --git a/tests/expected/sfdisk/dos-read-dump-case b/tests/expected/sfdisk/dos-read-dump-case new file mode 100644 index 0000000000..5d007f7dbc --- /dev/null +++ b/tests/expected/sfdisk/dos-read-dump-case @@ -0,0 +1,21 @@ +Checking that no-one is using this disk right now ... OK + +Disk : 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 / bytes + +>>> Script header accepted. +>>> Script header accepted. +>>> Created a new . +1: Created a new . +2: Done. + +New situation: + +Device Boot Start End Sectors Size Id Type +1 * 2048 8191 6144 3M 83 Linux + +The partition table has been altered. +Calling ioctl() to re-read partition table. +Syncing disks. diff --git a/tests/ts/sfdisk/dos b/tests/ts/sfdisk/dos index 692a717250..ba9d5ccc43 100755 --- a/tests/ts/sfdisk/dos +++ b/tests/ts/sfdisk/dos @@ -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 < /dev/null udevadm settle