summaryrefslogtreecommitdiffstats
path: root/tests/expected
Commit message (Collapse)AuthorAgeFilesLines
...
* tests: improve setarch tests, regarding --uname-2.6 issuesRuediger Meier2016-03-243-1/+18
| | | | | | | | | | | | | | | | | | | | | | | | Add some more tests: * error handling "unknown arch" and "unknown command" * "noop" test with host arch and no other options * all options except --uname-2.6 * --uname-2.6 whithout any other options but handle fatal glibc error "kernel too old" (with debug output) * add a "real" --uname-2.6 test which validates uname(1) output Note the "kernel too old" cases are systems where glibc was configured to support only kernels > 3.0. On some archs (e.g. x86) --uname-2.6 still works with such glibc because 2.6.39 had all needed features on board (e.g. vdso). See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=806911 Some people reported segfaults (after execvp) but I can only reproduce it on arm* and aarch64 qemu-user-space builds. We don't need to fix our tests for such broken systems where also many other tests fail currently. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* setarch: add "exec" message to --verboseRuediger Meier2016-03-221-0/+1
| | | | | | Also we don't need fflush() in non-verbose case. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* lscpu: fix memleak because of ambiguous tagsRuediger Meier2016-03-162-2/+2
| | | | | | | Now the first one of certain ambiguous tags wins. Alternatively to this patch we could have called free() before xstrdup(). Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* lscpu: use cpu and revision tag if availableRuediger Meier2016-03-164-3/+7
| | | | | | | | | | Avoid ifdef which does not work with --sysroot. Our existing test dumps produce even better output now for ppc and sparc. The logic moved to the printing section. CC: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: add new fdisk bsd testKarel Zak2016-03-164-0/+852
| | | | | | | | | | | | | 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-7/+7
| | | | | | | | | | 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: improve skipping of old btrfs-toolsRuediger Meier2016-03-132-2/+0Star
| | | | | | | | | | | | | | | | | Older Linux distributions came with differently incomplete btrfs-tools 0.19+git versions (2009-2013). Old mkfs.btrfs needs minimum device size 256M. Note the most simple way to skip btrfs-tools < 3.14 would be btrfs property --help 2>&1 || ts_skip "btrfs too old" but I want to include 3.12 because of Ubuntu Trusty on travis. This patch partly reverts/rewrites the following commits: 7e604f3c - tests: don't skip case "output undefined" 076153f8 - tests: don't compare btrfs mount options 370d31f7 - tests: skip btrfs tests if version too old Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: update build-sys testsKarel Zak2016-03-1017-16/+32
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk, fdisk: add fflush()Karel Zak2016-03-103-10/+10
| | | | | | | Let's add fflush(stdout) before we print to stderr to make output order more deterministic. Signed-off-by: Karel Zak <kzak@redhat.com>
* misc: remove path name definitions that are unusedSami Kerola2016-03-091-13/+0Star
| | | | | | | | | | | | | | | | | | | | | | After this commit the following produces zero matches. $ for i in \ _PATH_DEV_TTY \ _PATH_INITTAB \ _PATH_MNTTAB_DIR \ _PATH_MOUNTED_LOCK \ _PATH_MOUNTED_TMP \ _PATH_RC \ _PATH_REBOOT \ _PATH_SECURE \ _PATH_SECURETTY \ _PATH_SHUTDOWN_CONF \ _PATH_SINGLE \ _PATH_UMOUNT \ _PATH_USERTTY do git grep $i; done Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: don't compare btrfs mount optionsKarel Zak2016-03-082-6/+0Star
| | | | | | | | | | | | We don't control mount options in the mountinfo file and the options depend on kernel version. It does not make sense to hardcode the options in the expected outputs. Note that libmount should be portable enough to be able to work with all kernel versions. It seems better to check libmount functionality than kernel mount options formatting. Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: don't skip case "output undefined"Ruediger Meier2016-03-0720-25/+2Star
| | | | | | | | | | | | | | | | | | | | | | | | Treat missing expected files as empty and let the test fail if there is non-empty output. Expected output may be missing in these cases: 1. forgot to commit the file after changing/adding a (sub)test 2. a bug in a test where we do tricks with TS_EXPECTED 3. and most notable if ts_die() is called before a subtest is initialized, e.g. in ts_scsi_debug_init() I always wondered why we don't treat this as FAILED. Now we do so, ts_finalize and ts_gen_diff looks much cleaner now. The change discovers that tests with subtest were ignoring the "non-sub" expected files which had to be fixed. BTW we removed any zero sized files. Moreover now we respect diff's return value. In past all test succeeded when diff was not able to write to diffdir, e.g. when running tests as normal user after they run as root. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: cramfs, fix root groupRuediger Meier2016-03-071-2/+78
| | | | | | | | | | | | 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>
* tests: minix, add a useful non-root checkRuediger Meier2016-03-031-2/+364
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: fix minix tests for big endianRuediger Meier2016-03-037-0/+211
| | | | | | | 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>
* mkfs.minix: fix v2/v3 .badblocks inode number for big endianRuediger Meier2016-03-036-13/+2Star
| | | | | | | | | | | | | | For minix v2/v3 on big endian systems the inode number of the unwanted ".badblocks" file was not set to zero. This was introduced when v3 was added in a2657ae3. Actually it did not seem to cause any problems but since we zero it out at all we should do it correctly. Now we zero out the whole directory entry (inclusive ".badblocks" file name, also for v1). Unfortunately we have to update the test data checksums. CC: Davidlohr Bueso <davidlohr@hp.com> Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: minix, some corrections and cleanupRuediger Meier2016-03-034-3/+38
| | | | | | | | | | | | - 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-037-7/+166
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: add logger tests "id _numbers_ with spaces"Ruediger Meier2016-02-212-0/+13
| | | | | | Leading spaces are allowed. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* Merge branch 'test-fixes' of https://github.com/rudimeier/util-linuxKarel Zak2016-02-1259-101/+101
|\ | | | | | | | | | | * 'test-fixes' of https://github.com/rudimeier/util-linux: tests: ts_fdisk_clean(), remove optimal iosize tests: minor cleanup ts_fdisk_clean()
| * tests: ts_fdisk_clean(), remove optimal iosizeRuediger Meier2016-02-1059-101/+101
| | | | | | | | | | | | | | | | It's a pity a pity that we have to remove it. In past our test suite could discover a kernel bug (4.4). But now they've changed optimal iosizes on purpose. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* | tests: add test for loop option in fstabStanislav Brabec2016-02-121-0/+1
| | | | | | | | | | | | | | | | | | | | Add a new fstab tests which check loop mount of the same source multiple times in multiple steps. The test is currently failing, but it should not fail once the triggering bug will be fixed. Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
* | tests: add btrfs mount testsStanislav Brabec2016-02-123-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | btrfs needs a special support in mount. Add a testcase for btrfs specific problems. Coverage: 352740e8: bind mounts pointing to btrfs 2cd28fc8: mounting default subvolume d2f82678: use of "auto" 618a8814: use of "subvolid" Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
* | Merge branch 'colcrt' of git://github.com/kerolasa/lelux-utiliteetitKarel Zak2016-02-118-384/+305Star
|\ \ | |/ |/| | | | | | | | | * 'colcrt' of git://github.com/kerolasa/lelux-utiliteetit: tests: update colcrt test expectations colcrt: reimplementation tests: add colcrt functional tests
| * tests: update colcrt test expectationsSami Kerola2016-02-026-420/+49Star
| | | | | | | | | | | | | | | | The reimplementation caused output to change in some corner cases, such as how binary inputs, long lines with underscores, and white space trimming, are handled. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * tests: add colcrt functional testsSami Kerola2016-02-026-0/+292
| | | | | | | | | | | | | | | | | | Output formats are based on colcrt before recent asan fixes and magic constant replace, that are the commits ee24ab6f1..70e3fcf29. It seems the fixes caused unintentional, and not detected change to output format - which to me means colcrt has a regression that got to be part of release v2.27. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* | docs: fix typos found by codespellRuediger Meier2016-02-031-1/+1
|/ | | | | | Using "codespell" from https://github.com/lucasdemarchi/codespell Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: make swaplabel test more robustKarel Zak2016-01-261-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: update swapfile outputKarel Zak2016-01-261-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: use sfdisk --no-reread wherever it's neededRuediger Meier2016-01-0533-66/+0Star
| | | | | | | | The first BLKRRPART ioctl causes udev events and then second one may fail, see Discussion http://comments.gmane.org/gmane.linux.utilities.util-linux-ng/11885 Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: sfdisk/gpt-reorder, add missing resultsRuediger Meier2015-12-101-0/+45
| | | | | | follow-up 9a17d946 Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* Merge branch 'test-fixes' of https://github.com/rudimeier/util-linuxKarel Zak2015-12-101-0/+6
|\ | | | | | | | | | | | | * 'test-fixes' of https://github.com/rudimeier/util-linux: tests: use xz instead of bzip2 for blkid images tests: add some line tests tests: avoid sed -E
| * tests: add some line testsRuediger Meier2015-12-031-0/+6
| | | | | | | | | | | | regarding e03f29b6 ... Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* | tests: blkdiscard, check return valuesRuediger Meier2015-12-091-0/+31
|/ | | | | CC: Federico Simoncelli <fsimonce@redhat.com> Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: update ZFS testKarel Zak2015-11-191-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add uuidd output checkSami Kerola2015-10-181-0/+11
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: add uuidgen output checkSami Kerola2015-10-181-0/+8
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: add uuid parser checkSami Kerola2015-10-181-0/+15
| | | | | | | The check is based on code by Theodore Ts'o to test libuuid, from which unstable output is commented out. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: replace username with tag in logger testKarel Zak2015-10-062-6/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add missing filesKarel Zak2015-10-062-0/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: update and extend logger testsKarel Zak2015-10-061-0/+13
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add sfdisk --move-data testKarel Zak2015-09-093-0/+81
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: (blkid) update drbdmanageKarel Zak2015-08-311-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: (cal) update US week numbersKarel Zak2015-08-316-610/+610
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* cal: check biggest week number correctly when highlightingSami Kerola2015-08-311-0/+20
| | | | | | | This allows Sunday based week 54 be highlighted, and deny week 54 for Monday based weeks when year has only 52 weeks. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: add very long mount line to libmount mtabKees Cook2015-08-272-0/+14
| | | | | | | | Very long mount lines from the kernel (either from escaping or from giant option lists) could exceed BUFSIZ, leading to parsing failures. This adds a test for the condition. Signed-off-by: Kees Cook <keescook@chromium.org>
* tests: update static build testKarel Zak2015-08-241-0/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: added drbdmanage control volume detection.Philipp Marek2015-08-241-0/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add blkid script to test whole-disk MBR devicesKarel Zak2015-08-211-0/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add colcrt regression testsSami Kerola2015-08-102-0/+387
| | | | | | | Thanks to Alaa Mubaied for providing crash1 input file making colcrt to crash. The crash2 was generated using American Fuzzy Lop. Signed-off-by: Sami Kerola <kerolasa@iki.fi>