summaryrefslogtreecommitdiffstats
path: root/tests/ts/fdisk
Commit message (Collapse)AuthorAgeFilesLines
* tests: Skip fdisk/mbr-nondos-mode on Sparc as unsupportedKarel Zak2019-08-191-5/+2Star
| | | | | | | | | The test has been originally designed as usable on sparc, but now we use it for many features which are MBR specific. Reported-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> Co-Author: Anatoly Pugachev <matorola@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: use subtests in fdisk/mbr-nondos-modeKarel Zak2019-02-271-18/+39
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add fdisk (dos) first sector dialog testKarel Zak2019-02-271-0/+18
| | | | | | | The test verifies that the "First sector" dialog offers relevant range in the begin of the device if the end of the device is already used. Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add mdadm locksKarel Zak2017-12-071-1/+8
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: GPT device resize testKarel Zak2017-11-141-0/+63
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: consolidate rmmod scsi_debugRuediger Meier2016-10-214-8/+0Star
| | | | | | | | | - auto cleanup on test exit - Add smart timeout: Newer openSUSE systems on OBS failed to rmmod almost always. udevadm settle does not seem to have any affect. - now tests will fail if rmmod fails Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: keep 'hppa' in fdisk/bsd test tooKarel Zak2016-08-161-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: really fix fdisk/bsd for hppaHelge Deller2016-08-161-1/+1
| | | | | | | | | | | Finally fix the bsd testcase on the hppa architecture. Commit 1b7be556e553cdcef6213ead6340832c306011ed tried to fix it, but missed the fact that "uname -m" returns "parisc" or "parisc64" instead of "hppa*". Signed-off-by: Helge Deller <deller@gmx.de> Cc: 827225@bugs.debian.org
* tests: Fix fdisk/id and fdisk/mbr-nondos-mode on SparcJames Clarke2016-07-142-0/+26
| | | | | | | On Sparc, fdisk defaults to using SUN disk labels, which causes the output from these tests to differ from non-Sparc. Signed-off-by: James Clarke <jrtc27@jrtc27.com>
* tests: don't depend on GNU md5sumRuediger Meier2016-04-134-0/+4
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: remove deprecated md5sum based fdisk/bsd testRuediger Meier2016-04-062-152/+3Star
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: fix fdisk/bsd for hppaRuediger Meier2016-04-061-1/+2
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: add new fdisk bsd testKarel Zak2016-03-161-0/+140
| | | | | | | | | | | | | New BDS test based on hexdump, this commit provides: bsd_0_64.BE - generated on ppc64 bsd_0_64.LE - generated on ppc64le bsd_1_0.LE - generated on x86_64 bsd_1_0.BE - generated on s390 the last missing is Alpha where all is different :-) Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: mark old bsd fdisk test as deprecatedKarel Zak2016-03-161-1/+1
| | | | | | | | | | 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 <kzak@redhat.com>
* tests: fix fdisk/bsd for alphaRuediger Meier2016-03-161-1/+10
| | | | | | | | | | | | There are special __alpha__ ifdefs in libfdisk/src/bsd.c Regarding 565964a9 and a80886e9. BTW it was a bad idea to use md5sum. In case of failure it would be much easier to debug hexdump diffs. Now it's nearly impossible to collect all these exotic hexdumps. CC: Andreas Henriksson <andreas@fatal.se> Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* docs: fix typos found by codespellRuediger Meier2016-02-032-2/+2
| | | | | | Using "codespell" from https://github.com/lucasdemarchi/codespell Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: introduce TS_LOOP_DEVS for cleanupRuediger Meier2015-04-141-3/+2Star
| | | | | | | | | | | | | | We are maintaining an array TS_LOOP_DEVS to de-initialize devices always on exit. Until now there was no cleanup in ts_skip(). The downside is that we can't execute ts_device_init() in a subshell anymore. The device is returned via global variable TS_LODEV, similar like we do already in ts_scsi_debug_init(). Tests which don't use ts_device_init() to create loop devices may use ts_register_loop_device() to get them cleaned up later. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: avoid &>> for bash compatibilityRuediger Meier2015-03-261-1/+1
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: fix fdisk/bsd for ppc64leRuediger Meier2015-03-131-2/+2
| | | | | | | | | | | | Actually Aurelien's patch a80886e9 should have addressed this already because it's the case LE, BSD_LABELSECTOR = 0, BSD_LABELOFFSET = 64. I've asked about this on mailing list but couldn't get more informations. Thread "test fdisk/bsd on exotic archs": http://comments.gmane.org/gmane.linux.utilities.util-linux-ng/10621 Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: improve readability for fdisk/bsdRuediger Meier2015-03-131-6/+10
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: fix fdisk/bsd again for big endianRuediger Meier2015-01-261-1/+1
| | | | | | Looks this line was accidentally out-commented in 06d199e8. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: check for wipefs and helpers in fdisk testsKarel Zak2014-10-151-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: update bsd testKarel Zak2014-10-141-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: update fdisk formattingKarel Zak2014-10-145-6/+6
| | | | | | | fdisk --list does no more use extra linebreak (\n) before and after partition table entries. Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: fix fdisk/bsd for the two possible sectors/offsetsAurelien Jarno2014-08-201-8/+25
| | | | | | | | | | | | | | | | | | | | BSD disklabels depend on the endianess, but also on the architecture as one can see in include/pt-bsd.h with the BSD_LABELSECTOR and BSD_LABELOFFSET #define. This cause the testsuite to fail on the affected architectures as the disk image is not the same as the expected result. Commit 180b3a7e tried to fix the endianess, but the special PowerPC case has been chosen as a reference, so it still fails for example on MIPS BE or S/390. This patch fixes the testsuite by converting the md5sums to the expected values, still depending on the endianess, but also for the two possible sectors/offsets. This has been tested on Alpha, MIPS, PowerPC and x86-64, so this should cover all 4 cases. Cc: Andreas Henriksson <andreas@fatal.se> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* tests: fix fdisk/bsd for big endian systemsRuediger Meier2014-06-091-0/+12
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: consolidate some checks for commandsRuediger Meier2014-05-151-3/+4
| | | | | | | | | | | Use ts_check_prog for mdadm, readelf, file, ntpdate, bc (mdadm was not always checked so far). There are some positive side-effects. We are using always $PATH now instead of randomly hardcoded /usr/bin, /sbin, etc. If we ever want to change this again, we should do this generically in ts_init. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: ts_scsi_debug_init must not run in a subshellRuediger Meier2014-05-134-18/+21
| | | | | | | | | | | ts_skip and ts_die won't work from subshell. Now we simply use TS_DEVICE which is globally set in that function. I've made sure that we never change TS_DEVICE variable after we've got it. So we could use it again for cleanup on exit in ts_{finalize,die,skip} functions. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: ts_device_init requires loop supportRuediger Meier2014-05-131-0/+1
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: add fdisk 'f' command MBR testKarel Zak2014-04-231-0/+79
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: check commands needed for running a test existSami Kerola2014-03-0712-4/+33
| | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: avoid executing dirname(1) commandSami Kerola2014-02-1712-12/+12
| | | | | | Bash parameter expansion does the same thing. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: test corruted GPT headersKarel Zak2013-10-231-1/+14
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* ORIG_HEADKarel Zak2013-09-251-1/+1
| | | | | | | | | | | tests: update sun label test * add fdisk -l outputs (to make the test more usable) * use more usable geometry * don't expect that 'create sun label' oprations asks for C/H/S (we follows fdisk_context defaults) Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: (sun) make it more obvious why the first sector movedKarel Zak2013-09-251-10/+25
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: refresh fdisk testsKarel Zak2013-09-186-57/+49Star
|
* tests: consolidate scsi_debug usageKarel Zak2013-04-124-56/+12Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: use udevadm settle rather than sleepKarel Zak2013-04-124-5/+8
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: update aks-partition-number dialog (planned regression)Karel Zak2013-03-111-1/+1
| | | | | | | | | | | Since 2.23 the fdisk ask-partition-number dialog don't ask for partition number if there is only one partition. This was default in DOS driver, now it's default everywhere. For Sun/BSD it's regression... but we don't want to maintain any extra code --- sorry --- we don't want any exception in the code. Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: update 'odd input' fdisk testKarel Zak2013-03-111-0/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: fix typo in fdisk testKarel Zak2013-03-112-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: ignore stderr in fdisk -lKarel Zak2013-03-111-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add fdisk GPT testKarel Zak2013-03-061-0/+84
| | | | | | | | Note that the test does not check on-disk data (by checksum) because the current fdisk does not allow to modify automatically generated partition and disk UUIDs. Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add fdisk BSD testKarel Zak2013-03-061-0/+106
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: standardize fdisk headers in MBR testsKarel Zak2012-08-012-3/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add non-dos mode fdisk testKarel Zak2012-07-311-0/+135
|
* tests: add layout info to dos mode testKarel Zak2012-07-311-0/+33
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: rename doslabel testKarel Zak2012-07-312-2/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: tests: update oddinput testDavidlohr Bueso2012-06-211-2/+3
| | | | | | | | Adding mbr to the API breaks this test, specifically when reading the first 512 bytes of the MBR, update the expected output for oddinput.toosmall. Also let the test create and remove the test file instead of having it in the expected directory. Signed-off-by: Davidlohr Bueso <dave@gnu.org>
* tests: add ts_fdisk_clean function to make fdisk output comparableFrancesco Cosoleto2011-08-305-19/+5Star
| | | | Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>