From f4126f98e165f3e3457ecdb2e3777fa79463cb79 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 26 Oct 2016 14:08:29 +0200 Subject: [PATCH] tests: add sfdisk script case-insensitive test Signed-off-by: Karel Zak --- tests/expected/sfdisk/dos-read-dump-case | 21 +++++++++++++++++++++ tests/ts/sfdisk/dos | 14 ++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 tests/expected/sfdisk/dos-read-dump-case 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 -- 2.47.2