summaryrefslogtreecommitdiffstats
path: root/tests/ts/minix
Commit message (Collapse)AuthorAgeFilesLines
* tests: add some more udevadm settleRuediger Meier2018-03-071-0/+1
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* disk-utils/mkfs.minix: Set ninodes after checking maxNate Clark2017-01-041-0/+1
| | | | | | | | | | | ninodes in the superblock needs to be set after inodes is checked against MINIX_MAX_INODES otherwise a value larger than MINIX_MAX_INODES can be attempted to be stored in the superblock. Without this change the command "mkfs.minix -2 -i 65530 <dev>" would write a minix superblock with ninodes set to 0. Signed-off-by: Nate Clark <nate@neworld.us>
* tests: consolidate rmmod scsi_debugRuediger Meier2016-10-211-2/+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: check for mount(8) in minix testKarel Zak2016-06-011-0/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: hotfix, wait for scsi_debug partionRuediger Meier2016-03-091-1/+4
| | | | | | | Maybe we shouldn't use scsi_debug's num_parts=1 but fdisk to add a partion. This seems to work better with udevadm settle. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: minix, add a useful non-root checkRuediger Meier2016-03-032-15/+32
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: fix minix tests for big endianRuediger Meier2016-03-031-0/+10
| | | | | | | You may diff the new .BE files with non-BE file to see whether they look fine. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: minix, some corrections and cleanupRuediger Meier2016-03-031-11/+18
| | | | | | | | | | | | - move generic "check_minix_fs_type" tests to the top - add some todos/notes about potential issues - add "real" badblocks test (-l) - don't check sed's but fsck's return value - to see debian bug 773892 we would need "-f" - add some more hexdumps CC: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: minix, use hexdump instead of md5sumRuediger Meier2016-03-031-2/+3
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: fix redirectionStanislav Brabec2016-02-121-2/+2
| | | | | | | | | | | | | | | | | | | Many tests do. 2>&1 >> $TS_OUTPUT It redirects stdout to $TS_OUTPUT and stderr to stdout. It could cause unintended ignoring of errors on strerr and false positive result of the test. Use >> $TS_OUTPUT 2>&1 instead to redirect both stdout and stderr to $TS_OUTPUT. Automatically created by: cd tests/ts sed -i 's:2>\&1 >> \$TS_OUTPUT:>> $TS_OUTPUT 2>\&1:g' $(fgrep -rl '2>&1 >> $TS_OUTPUT' .) Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
* tests: fix minix tests filenamesKarel Zak2015-08-031-8/+9
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: try mkfs & mount all supported minix versionsKarel Zak2015-08-031-20/+25
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: fix minix testKarel Zak2015-08-031-5/+9
| | | | | | | | | - run the test with UID=0 only. The minix FS inode contains UID and GID, so the final image checksum depends on user... - always use subtest name for the images Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add fsck.minix checksSami Kerola2015-08-033-0/+67
| | | | | | | The debian bug was fixed in commit 730ae9c89971, and the rest are about having test coverity for various file name lenghts and minix fs versions. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: never use -o pipefailRuediger Meier2015-04-212-4/+0Star
| | | | | | | | | | | | | | | | | | | It was hard to find out that pipefail was the reason why our test-suite could have random failures for aribtrary tests, for example the ones which are using ts_device_has_uuid() or ts_mount(). Bash's pipefall option is evil! It may return error for such a simple line like this one $ echo -e "xxx\nyyy" | grep -q "xxx" because the left echo command will get SIGPIPE when grep exits after the first match. So the command line above could return an error eventhough it does exactly what we want. This patch removes any pipefail from our tests. The funny thing is that I couldn't find any case where we relied on this feature anyway. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: loop tests, don't call ts_die() with DEVICE parameterRuediger Meier2015-04-141-1/+1
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: introduce TS_LOOP_DEVS for cleanupRuediger Meier2015-04-142-4/+4
| | | | | | | | | | | | | | 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: ts_mount knows which fs is expectedRuediger Meier2014-05-161-1/+1
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests, add function ts_mountRuediger Meier2014-05-161-2/+1Star
| | | | | | | | | | | | | | | | We want to generalize mounts similar to how we do it already in minix/mkfs. Currently most of our other checks just fail if "fs not supported". Note that the new function checks a bit stronger than before in minix/mkfs. It respects mount's return value and stderr goes to $TS_OUTPUT too. It's a bit ugly that we write to $TS_OUTPUT from inside of the function. But if the caller would do it then we couldn't ts_skip and the whole function would be pointless. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: ts_device_init requires loop supportRuediger Meier2014-05-132-0/+2
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: check commands needed for running a test existSami Kerola2014-03-072-4/+6
| | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: avoid executing dirname(1) commandSami Kerola2014-02-172-2/+2
| | | | | | Bash parameter expansion does the same thing. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: ignore test if kernel doesn't support minix fsMilan Broz2012-10-091-1/+2
| | | | | | | | Minix mount test returs failure if kernel have no minix support, minix: mkfs ... FAILED (minix/mkfs) ignore test result instead in this case. Signed-off-by: Milan Broz <mbroz@redhat.com>
* tests: make minix tests more robustKarel Zak2012-02-212-0/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: grammar fixesDavidlohr Bueso2011-08-171-1/+1
| | | | | | Trivial change, "Cannot found" to "Cannot find". Signed-off-by: Davidlohr Bueso <dave@gnu.org>
* rename util-linux-ng back to util-linuxKarel Zak2010-11-302-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: cleanup ts/minixKarel Zak2009-02-182-0/+82
Signed-off-by: Karel Zak <kzak@redhat.com>