summaryrefslogtreecommitdiffstats
path: root/tests/ts/cramfs
Commit message (Collapse)AuthorAgeFilesLines
* tests: rewrite fsck-bad-headerRuediger Meier2018-01-241-5/+69
| | | | | | | Fix test for systems with pagesize != 4096 Loop over many combinations of sizes, endianness and blocksizes. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* fsck.cramfs: fix crash when superblock size is too smallRuediger Meier2018-01-241-1/+1
| | | | | | | | | | | This hopefully fixes the original problem addressed by the reverted patch 7cb962c7. The bug was introduced by myself in f991dbd3 "fsck.cramfs: allow smaller superblock sizes" CC: Tobias Stoeckmann <tobias@stoeckmann.org> Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: add fsck.cramfs bad-header testKarel Zak2017-11-021-0/+38
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: (cramfs) check for test_sysinfoKarel Zak2016-10-041-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: don't depend on GNU md5sumRuediger Meier2016-04-132-2/+4
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: cramfs, fix root groupRuediger Meier2016-03-072-11/+13
| | | | | | | | | | | | Sudo may login as group wheel or may use user's original group. Note that group 0 is not named "root" on all Unix systems. We have some more tests with similar issues but they are Linux-only (losetup, scsi_debug). We don't fix them unless somebody complains. BTW we use hexdump instead of md5sum. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* build-sys: portable usage of find commandRuediger Meier2016-02-181-1/+1
| | | | | | | | - use dot instead of skipping search-path - avoid -perm /a+x - avoid -path Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: fix redirectionStanislav Brabec2016-02-123-3/+3
| | | | | | | | | | | | | | | | | | | 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: never use -o pipefailRuediger Meier2015-04-214-8/+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-2/+2
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: introduce TS_LOOP_DEVS for cleanupRuediger Meier2015-04-141-2/+1Star
| | | | | | | | | | | | | | 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: fix cramfs/mkfs for BE and different pagesizesRuediger Meier2015-04-021-1/+16
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: use ts_cd everywhere to change direcrorySami Kerola2014-07-181-4/+4
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* fsck.cramfs: refactor option -x/--extractRuediger Meier2014-05-191-4/+1Star
| | | | | | | | | | | | | | | | | We want to clean it up to compile it later per default (not only if defined INCLUDE_FS_TESTS). - Rename option --destination to --extract. - DIR argument is now optional because we want to keep the use case "test uncompression without writing files" ... but we don't want it always. - Remove shortopt -x because shortopts with optional args are evil. Changing the cmd interface is no compatibility issue here because all affected options errored out per default in past. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: fix fsck.cramfs for systems with certain page sizesRuediger Meier2014-05-191-1/+1
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests, fix cramfs for systems with certain page sizesRuediger Meier2014-05-182-3/+6
| | | | | | | This is only a partial fix to get comparable image md5sums. fsck.cramfs still fails if system page size > 4096 Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: use ts_mount for cramfsRuediger Meier2014-05-162-2/+2
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: some more tests need loop supportRuediger Meier2014-05-131-0/+1
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: ts_device_init requires loop supportRuediger Meier2014-05-131-1/+1
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: check commands needed for running a test existSami Kerola2014-03-074-0/+18
| | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: avoid executing dirname(1) commandSami Kerola2014-02-174-4/+4
| | | | | | Bash parameter expansion does the same thing. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: minor changes to make tests more portableKarel Zak2013-08-261-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add mising "export" keywordKarel Zak2012-10-151-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: fix timezone for cramfsMilan Broz2012-10-091-0/+1
| | | | | | | | cramfs test need explicitly set timezone otherwise ls diff fails with cramfs: mkfs checksums ... FAILED (cramfs/mkfs) Signed-off-by: Milan Broz <mbroz@redhat.com>
* tests: remove unssuported losetup -sKarel Zak2012-01-121-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: remove unexpected set -xKarel Zak2012-01-121-2/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add mkfs.carmfs test for small FS with duplicate filesKarel Zak2011-11-231-0/+53
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: grammar fixesDavidlohr Bueso2011-08-171-2/+2
| | | | | | 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-303-3/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: mount cramfs read-onlyKarel Zak2010-06-041-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: remove vol_id from testsKarel Zak2009-12-041-3/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: cleanup ts/cramfs/mkfs-endiannessKarel Zak2009-02-181-0/+53
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: cleanup ts/cramfs/fsck-endiannessKarel Zak2009-02-183-0/+57
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: refresh and cleanup cramfs/mkfsroot2009-02-111-18/+25
| | | | Signed-off-by: root <root@nb.net.home>
* tests: create subdirs for test scriptsKarel Zak2009-02-111-0/+91
Signed-off-by: Karel Zak <kzak@redhat.com>