From 4c48db0b8c0edd6fc9b010f9accc3c20f24c4277 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 16 Mar 2016 13:01:10 +0100 Subject: tests: mark old bsd fdisk test as deprecated It seems better to use hexdump rather than md5sum, but it means that we have to gather hexdumps of the all possible BSD variants. For this purpose will be introduced a new bsd fdisk test and to verify the new hexdumps we can use this old test as both tests are exactly the same. Signed-off-by: Karel Zak --- tests/expected/fdisk/bsd | 123 ------------------------------------ tests/expected/fdisk/bsd-deprecated | 123 ++++++++++++++++++++++++++++++++++++ 2 files changed, 123 insertions(+), 123 deletions(-) delete mode 100644 tests/expected/fdisk/bsd create mode 100644 tests/expected/fdisk/bsd-deprecated (limited to 'tests/expected') diff --git a/tests/expected/fdisk/bsd b/tests/expected/fdisk/bsd deleted file mode 100644 index be1ba7be0..000000000 --- a/tests/expected/fdisk/bsd +++ /dev/null @@ -1,123 +0,0 @@ -Initialize empty image -f1c9645dbc14efddc7d8a322685f26eb bsd.img -Create new DOS partition table -57e721e38d1266c2df055067c18f2cf9 bsd.img - ----layout---------- -Disk : 10 MiB, 10485760 bytes, 20480 sectors -Units: sectors of 1 * 512 = 512 bytes -Sector size (logical/physical): 512 bytes / 512 bytes -I/O size (minimum/optimal): 512 bytes / bytes -Disklabel type: dos -Disk identifier: -------------------- - -Create 1st primary partition -ada64ace122978d00d1d1c0e5ee45d26 bsd.img - ----layout---------- -Disk : 10 MiB, 10485760 bytes, 20480 sectors -Units: sectors of 1 * 512 = 512 bytes -Sector size (logical/physical): 512 bytes / 512 bytes -I/O size (minimum/optimal): 512 bytes / bytes -Disklabel type: dos -Disk identifier: - -Device Boot Start End Sectors Size Id Type -1 2048 4095 2048 1M 83 Linux -------------------- - -Create 2st primary partition -1bebf87248e05d6e4e62b749da65d023 bsd.img -Set 2nd partition type -2d8e8dff51a88a045db233418dd73fbe bsd.img - ----layout---------- -Disk : 10 MiB, 10485760 bytes, 20480 sectors -Units: sectors of 1 * 512 = 512 bytes -Sector size (logical/physical): 512 bytes / 512 bytes -I/O size (minimum/optimal): 512 bytes / bytes -Disklabel type: dos -Disk identifier: - -Device Boot Start End Sectors Size Id Type -1 2048 4095 2048 1M 83 Linux -2 4096 20479 16384 8M a5 FreeBSD -------------------- - -Create default BSD -2e1cee529cb59c9341afef0443f196a1 bsd.img - ----layout---------- - -Welcome to fdisk . -Changes will remain in memory only, until you decide to write them. -Be careful before using the write command. - - -Command (m for help): Entering nested BSD disklabel. - -Command (m for help): Disk 2: 10 MiB, 10485760 bytes, 20480 sectors -Geometry: 255 heads, 63 sectors/track, 1 cylinders -Units: sectors of 1 * 512 = 512 bytes -Sector size (logical/physical): 512 bytes / 512 bytes -I/O size (minimum/optimal): 512 bytes / bytes -Disklabel type: bsd - -Slice Start End Sectors Size Type Fsize Bsize Cpg -c 4096 20479 16384 8M unused 0 0 0 -d 0 16064 16065 7.9M unused 0 0 0 - -Partition table entries are not in disk order. - -Command (m for help): Leaving nested disklabel. - -Command (m for help): -------------------- - -b5c121c2091b2ff26b880551feac7112 bsd.img - ----layout---------- - -Welcome to fdisk . -Changes will remain in memory only, until you decide to write them. -Be careful before using the write command. - - -Command (m for help): Entering nested BSD disklabel. - -Command (m for help): Disk 2: 10 MiB, 10485760 bytes, 20480 sectors -Geometry: 255 heads, 63 sectors/track, 1 cylinders -Units: sectors of 1 * 512 = 512 bytes -Sector size (logical/physical): 512 bytes / 512 bytes -I/O size (minimum/optimal): 512 bytes / bytes -Disklabel type: bsd - -Slice Start End Sectors Size Type Fsize Bsize Cpg -a 4096 6144 2049 1M 4.2BSD 0 0 0 -c 4096 20479 16384 8M unused 0 0 0 -d 0 16064 16065 7.9M unused 0 0 0 - -Partition table entries are not in disk order. - -Command (m for help): Leaving nested disklabel. - -Command (m for help): -------------------- - - - -Changes will remain in memory only, until you decide to write them. -Be careful before using the write command. - - -Command (m for help): Entering nested BSD disklabel. - -Command (m for help): - 0 unused 5 4.1BSD 9 4.4LFS d boot - 1 swap 6 Eighth Edition a unknown e ADOS - 2 Version 6 7 4.2BSD b HPFS f HFS - 3 Version 7 8 MS-DOS c ISO-9660 10 AdvFS - 4 System V - -Command (m for help): diff --git a/tests/expected/fdisk/bsd-deprecated b/tests/expected/fdisk/bsd-deprecated new file mode 100644 index 000000000..53c13c411 --- /dev/null +++ b/tests/expected/fdisk/bsd-deprecated @@ -0,0 +1,123 @@ +Initialize empty image +f1c9645dbc14efddc7d8a322685f26eb bsd-deprecated.img +Create new DOS partition table +57e721e38d1266c2df055067c18f2cf9 bsd-deprecated.img + +---layout---------- +Disk : 10 MiB, 10485760 bytes, 20480 sectors +Units: sectors of 1 * 512 = 512 bytes +Sector size (logical/physical): 512 bytes / 512 bytes +I/O size (minimum/optimal): 512 bytes / bytes +Disklabel type: dos +Disk identifier: +------------------- + +Create 1st primary partition +ada64ace122978d00d1d1c0e5ee45d26 bsd-deprecated.img + +---layout---------- +Disk : 10 MiB, 10485760 bytes, 20480 sectors +Units: sectors of 1 * 512 = 512 bytes +Sector size (logical/physical): 512 bytes / 512 bytes +I/O size (minimum/optimal): 512 bytes / bytes +Disklabel type: dos +Disk identifier: + +Device Boot Start End Sectors Size Id Type +1 2048 4095 2048 1M 83 Linux +------------------- + +Create 2st primary partition +1bebf87248e05d6e4e62b749da65d023 bsd-deprecated.img +Set 2nd partition type +2d8e8dff51a88a045db233418dd73fbe bsd-deprecated.img + +---layout---------- +Disk : 10 MiB, 10485760 bytes, 20480 sectors +Units: sectors of 1 * 512 = 512 bytes +Sector size (logical/physical): 512 bytes / 512 bytes +I/O size (minimum/optimal): 512 bytes / bytes +Disklabel type: dos +Disk identifier: + +Device Boot Start End Sectors Size Id Type +1 2048 4095 2048 1M 83 Linux +2 4096 20479 16384 8M a5 FreeBSD +------------------- + +Create default BSD +2e1cee529cb59c9341afef0443f196a1 bsd-deprecated.img + +---layout---------- + +Welcome to fdisk . +Changes will remain in memory only, until you decide to write them. +Be careful before using the write command. + + +Command (m for help): Entering nested BSD disklabel. + +Command (m for help): Disk 2: 10 MiB, 10485760 bytes, 20480 sectors +Geometry: 255 heads, 63 sectors/track, 1 cylinders +Units: sectors of 1 * 512 = 512 bytes +Sector size (logical/physical): 512 bytes / 512 bytes +I/O size (minimum/optimal): 512 bytes / bytes +Disklabel type: bsd + +Slice Start End Sectors Size Type Fsize Bsize Cpg +c 4096 20479 16384 8M unused 0 0 0 +d 0 16064 16065 7.9M unused 0 0 0 + +Partition table entries are not in disk order. + +Command (m for help): Leaving nested disklabel. + +Command (m for help): +------------------- + +b5c121c2091b2ff26b880551feac7112 bsd-deprecated.img + +---layout---------- + +Welcome to fdisk . +Changes will remain in memory only, until you decide to write them. +Be careful before using the write command. + + +Command (m for help): Entering nested BSD disklabel. + +Command (m for help): Disk 2: 10 MiB, 10485760 bytes, 20480 sectors +Geometry: 255 heads, 63 sectors/track, 1 cylinders +Units: sectors of 1 * 512 = 512 bytes +Sector size (logical/physical): 512 bytes / 512 bytes +I/O size (minimum/optimal): 512 bytes / bytes +Disklabel type: bsd + +Slice Start End Sectors Size Type Fsize Bsize Cpg +a 4096 6144 2049 1M 4.2BSD 0 0 0 +c 4096 20479 16384 8M unused 0 0 0 +d 0 16064 16065 7.9M unused 0 0 0 + +Partition table entries are not in disk order. + +Command (m for help): Leaving nested disklabel. + +Command (m for help): +------------------- + + + +Changes will remain in memory only, until you decide to write them. +Be careful before using the write command. + + +Command (m for help): Entering nested BSD disklabel. + +Command (m for help): + 0 unused 5 4.1BSD 9 4.4LFS d boot + 1 swap 6 Eighth Edition a unknown e ADOS + 2 Version 6 7 4.2BSD b HPFS f HFS + 3 Version 7 8 MS-DOS c ISO-9660 10 AdvFS + 4 System V + +Command (m for help): -- cgit v1.2.3-55-g7522