diff options
author | Karel Zak | 2014-10-10 12:56:45 +0200 |
---|---|---|
committer | Karel Zak | 2014-10-10 12:56:45 +0200 |
commit | 0aa57f186867b5ca259704a4d2a83b2235779056 (patch) | |
tree | da7ab6675a6db6d414a5df9f5dc5ed9d7adbef76 /tests/expected/sfdisk | |
parent | libfdisk: fix script next_token() (diff) | |
download | kernel-qcow2-util-linux-0aa57f186867b5ca259704a4d2a83b2235779056.tar.gz kernel-qcow2-util-linux-0aa57f186867b5ca259704a4d2a83b2235779056.tar.xz kernel-qcow2-util-linux-0aa57f186867b5ca259704a4d2a83b2235779056.zip |
tests: add sfdisk GPT tests
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/expected/sfdisk')
-rw-r--r-- | tests/expected/sfdisk/gpt | 0 | ||||
-rw-r--r-- | tests/expected/sfdisk/gpt-all-defaults | 28 | ||||
-rw-r--r-- | tests/expected/sfdisk/gpt-attrs | 5 | ||||
-rw-r--r-- | tests/expected/sfdisk/gpt-label | 6 | ||||
-rw-r--r-- | tests/expected/sfdisk/gpt-read-dump | 39 | ||||
-rw-r--r-- | tests/expected/sfdisk/gpt-type | 5 | ||||
-rw-r--r-- | tests/expected/sfdisk/gpt-uuid | 1 | ||||
-rw-r--r-- | tests/expected/sfdisk/gpt-write-dump | 9 |
8 files changed, 93 insertions, 0 deletions
diff --git a/tests/expected/sfdisk/gpt b/tests/expected/sfdisk/gpt new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/tests/expected/sfdisk/gpt diff --git a/tests/expected/sfdisk/gpt-all-defaults b/tests/expected/sfdisk/gpt-all-defaults new file mode 100644 index 000000000..e1989a4b9 --- /dev/null +++ b/tests/expected/sfdisk/gpt-all-defaults @@ -0,0 +1,28 @@ +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 / 32768 bytes + +>>> Script header accepted. +>>> Script header accepted. +>>> Created a new <removed>. +Created a new <removed>. +<removed>2: Created a new <removed>. +<removed>3: Created a new <removed>. +<removed>4: Created a new <removed>. +<removed>5: Created a new <removed>. +<removed>6: +New situation: + +Device Start End Sectors Size Type +<removed>1 2048 12287 10240 5M Linux filesystem +<removed>2 12288 22527 10240 5M Linux filesystem +<removed>3 22528 32767 10240 5M Linux swap +<removed>4 32768 43007 10240 5M Linux root (x86-64) +<removed>5 43008 102366 59359 29M Linux filesystem + +The partition table has been altered. +Calling ioctl() to re-read partition table. +Syncing disks. diff --git a/tests/expected/sfdisk/gpt-attrs b/tests/expected/sfdisk/gpt-attrs new file mode 100644 index 000000000..f70252446 --- /dev/null +++ b/tests/expected/sfdisk/gpt-attrs @@ -0,0 +1,5 @@ + +The partition table has been altered. +Calling ioctl() to re-read partition table. +Syncing disks. +RequiredPartiton NoBlockIOProtocol GUID:48,51 diff --git a/tests/expected/sfdisk/gpt-label b/tests/expected/sfdisk/gpt-label new file mode 100644 index 000000000..34ee589e0 --- /dev/null +++ b/tests/expected/sfdisk/gpt-label @@ -0,0 +1,6 @@ +Partition name changed from '' to 'EFI system'. + +The partition table has been altered. +Calling ioctl() to re-read partition table. +Syncing disks. +EFI system diff --git a/tests/expected/sfdisk/gpt-read-dump b/tests/expected/sfdisk/gpt-read-dump new file mode 100644 index 000000000..ce7e5364c --- /dev/null +++ b/tests/expected/sfdisk/gpt-read-dump @@ -0,0 +1,39 @@ +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 / 32768 bytes + +>>> Script header accepted. +>>> Script header accepted. +>>> Script header accepted. +>>> Created a new <removed>. +Created a new <removed>. +<removed>2: Created a new <removed>. +<removed>3: Created a new <removed>. +<removed>4: Created a new <removed>. +<removed>5: +New situation: + +Device Start End Sectors Size Type +<removed>1 2048 8191 6144 3M Linux root (x86) +<removed>2 8192 14335 6144 3M Linux filesystem +<removed>3 14336 20479 6144 3M Linux filesystem +<removed>4 20480 102399 81920 40M Linux filesystem + +The partition table has been altered. +Calling ioctl() to re-read partition table. +Syncing disks. +Disk /dev/sdb: 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 / 32768 bytes +Disklabel type: gpt +Disk identifier: 3B8559DB-33AF-43E9-BEFC-C331D829B539 + +Start End Size UUID Type Name + 2048 8191 3M 4DD6948A-44F8-4E6C-8BDC-064F740704F8 Linux root (x86) + 8192 14335 3M 44B51DEF-5F04-465A-91AA-2889A62D8E49 Linux filesystem +14336 20479 3M 643E1D0D-BC02-4CED-B83B-86121062858F Linux filesystem +20480 102399 40M D2A29B0A-FDEE-40C3-9BAE-B9FA782C986C Linux filesystem GPT is the best diff --git a/tests/expected/sfdisk/gpt-type b/tests/expected/sfdisk/gpt-type new file mode 100644 index 000000000..396b75d2b --- /dev/null +++ b/tests/expected/sfdisk/gpt-type @@ -0,0 +1,5 @@ + +The partition table has been altered. +Calling ioctl() to re-read partition table. +Syncing disks. +C12A7328-F81F-11D2-BA4B-00A0C93EC93B diff --git a/tests/expected/sfdisk/gpt-uuid b/tests/expected/sfdisk/gpt-uuid new file mode 100644 index 000000000..d3d11e8d9 --- /dev/null +++ b/tests/expected/sfdisk/gpt-uuid @@ -0,0 +1 @@ +91DC657B-D7B4-4653-A367-663194FFD432 diff --git a/tests/expected/sfdisk/gpt-write-dump b/tests/expected/sfdisk/gpt-write-dump new file mode 100644 index 000000000..03b5e1f57 --- /dev/null +++ b/tests/expected/sfdisk/gpt-write-dump @@ -0,0 +1,9 @@ +label: gpt +label-id: 3B8559DB-33AF-43E9-BEFC-C331D829B539 +device: <removed> +unit: sectors + +<removed>1 : start= 2048, size= 6144, type=44479540-F297-41B2-9AF7-D131D5F0458A, uuid=4DD6948A-44F8-4E6C-8BDC-064F740704F8 +<removed>2 : start= 8192, size= 6144, type=0FC63DAF-8483-4772-8E79-3D69D8477DE4, uuid=44B51DEF-5F04-465A-91AA-2889A62D8E49 +<removed>3 : start= 14336, size= 6144, type=0FC63DAF-8483-4772-8E79-3D69D8477DE4, uuid=643E1D0D-BC02-4CED-B83B-86121062858F +<removed>4 : start= 20480, size= 81920, type=0FC63DAF-8483-4772-8E79-3D69D8477DE4, uuid=D2A29B0A-FDEE-40C3-9BAE-B9FA782C986C, name="GPT is the best" |