summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2013-01-25tests: add line(1) checkSami Kerola3-0/+27
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-01-24tests: add more(1) checkSami Kerola5-0/+57
[kzak@redhat.com: use test_more program rather than directly more(1)] Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
2013-01-24tests: add ionice(1) checkSami Kerola3-0/+38
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-01-24tests: add ul(1) checkSami Kerola3-0/+28
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-01-24tests: add tailf(1) checkSami Kerola3-0/+32
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-01-24tests: add mcookie(1) checkSami Kerola3-0/+28
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-01-24tests: add getopt(1) checkSami Kerola3-0/+56
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-01-24tests: add utmpdump(1) checkSami Kerola7-0/+68
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-01-24tests: add rev(1) checkSami Kerola3-0/+26
Fairly lenghty input line tries to ensure realloc segment in code is hit at least once. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-01-15tests: add/improve mount shared-subtree testsKarel Zak6-21/+48
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-01-10hexdump: do not segfault when iterating over an empty format stringOndrej Oprala3-0/+28
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2013-01-09mount: add support for x-mount.mkdir[=<mode>] optionOndrej Oprala2-0/+11
If the target directory (mountpoint) does not exist then mount(8) will create it before mount.<type> is executed or mount(2) syscall is called. Co-Author: Karel Zak <kzak@redhat.com> Signed-off-by: Ondrej Oprala <ooprala@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2012-12-10tests: unset *_DEBUG variablesKarel Zak1-0/+4
Reported-by: Bernhard Voelker <mail@bernhard-voelker.de> Signed-off-by: Karel Zak <kzak@redhat.com>
2012-11-15tests: add shared subtrees to umount --recursive testKarel Zak2-1/+12
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-11-15tests: add umount --recursive testKarel Zak2-0/+102
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-11-12tests: add armv7 lscpu dumpKarel Zak2-0/+12
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-11-12tests: add ppc64-POWER7-64cpu lscpu dumpKarel Zak2-0/+80
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-11-12tests: remove lscpu /sys dumps without 'possible' CPU maskKarel Zak15-0/+0
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-11-08libmount: add private mnt_get_kernel_cmdline_option()Karel Zak3-0/+15
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-10-22fsck.cramfs: compile with -DINCLUDE_FS_TESTS for make checkKarel Zak1-1/+1
make check sudo su - cd tests ./run.sh cramfs Signed-off-by: Karel Zak <kzak@redhat.com>
2012-10-15tests: add mising "export" keywordKarel Zak1-1/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-10-15tests: skip ipcs limits overflow when bc is not availableGilles Espinasse1-0/+1
Found only this one while trying as-root tests Signed-off-by: Gilles Espinasse <g.esp@free.fr>
2012-10-15tests: fix ipcs basic limit when bc is not availableGilles Espinasse1-0/+1
Skip basic limit test if bc is not available. That happen to be the case when building from sources, following LFS book Signed-off-by: Gilles Espinasse <g.esp@free.fr>
2012-10-15ddate: remove from util-linuxSami Kerola5-5/+0
See RedHat bug for reasons why the ddate is cleaned up. The reference is where to get the command in future. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=823156 References: https://github.com/bo0ts/ddate Acked-by: Petr Uzel <petr.uzel@suse.cz> Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
2012-10-09tests: fix mount move test to work with shared mountMilan Broz1-3/+16
If parent mount for test directory is mounted with shared flag, move mount test fails because kernel rejects mount move operation. Use another directory level and explicitly make parent mount private. (All "modern" systems using system have mounts shared for some reason.) Signed-off-by: Milan Broz <mbroz@redhat.com>
2012-10-09tests: ignore test if kernel doesn't support minix fsMilan Broz1-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>
2012-10-09tests: fix timezone for cramfsMilan Broz1-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>
2012-09-12tests: remove encryption loopdev testKarel Zak2-65/+0
Reported-by: Bernhard Voelker <mail@bernhard-voelker.de> Signed-off-by: Karel Zak <kzak@redhat.com>
2012-08-15tests: update build-sys testsKarel Zak14-585/+12
- remove tests programs (no more compiled by default) - add resizepart Signed-off-by: Karel Zak <kzak@redhat.com>
2012-08-03tests: make compatible with autotoolsKarel Zak6-31/+82
The command 'make check' is called from 'make distcheck' (which is used to generate official util-linux tarballs). It means that tests/ stuff has to be compatible with autotools and differentiate between source and build directories. * remove run-nonroot.sh (merged into run.sh * remove commands.sh.in * all tests and top level run.sh accept --builddir and --srcdir command line options * functions.sh modified to use $top_builddir/tests for output files Signed-off-by: Karel Zak <kzak@redhat.com>
2012-08-03build-sys: add tests/run-nonroot.sh to automake fileKarel Zak1-0/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-08-01tests: add libmount optstr deduplicateKarel Zak2-0/+5
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-08-01tests: standardize fdisk headers in MBR testsKarel Zak4-26/+29
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-08-01tests: blkid/md-raid1-part failsBernhard Voelker1-4/+6
[kzak@redhat.com: - I forgot to apply this part of the Bernhard's patch] Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de> Signed-off-by: Karel Zak <kzak@redhat.com>
2012-07-31tests: cleanup ts_is_mountedBernhard Voelker1-3/+0
* tests/functions.sh (ts_is_mounted): Remove check for canonicalization failure again, because it is now done by ts_canonicalize. Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
2012-07-31tests: make blkid/md-raid1-part more robustBernhard Voelker1-6/+6
* tests/expected/blkid/mk-raid1-part: Replace major and minor number of ID_PART_ENTRY_DISK by a special string. Add ID_FS_UUID and ID_FS_UUID_ENC again, also with a special string. * tests/ts/blkid/md-raid1-part: Before comparing the expected output with the actual output, replace the values of ID_PART_ENTRY_DISK, ID_FS_UUID and ID_FS_UUID_ENC with the speacial strings mentioned above. Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
2012-07-31tests: add non-dos mode fdisk testKarel Zak2-0/+330
2012-07-31tests: add layout info to dos mode testKarel Zak2-0/+191
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-07-31tests: rename doslabel testKarel Zak4-26/+28
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-07-30build-sys: add run.sh to make check for non-root usersKarel Zak2-0/+10
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-07-30tests: check for 'make check'Karel Zak1-0/+10
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-07-30build-sys: move tests to check_PROGRAMSKarel Zak1-4/+4
Thanks to Mike Frysinger. Signed-off-by: Karel Zak <kzak@redhat.com>
2012-07-30tests: remove lt- prefixesKarel Zak2-2/+5
Reported-by: Bernhard Voelker <mail@bernhard-voelker.de> Signed-off-by: Karel Zak <kzak@redhat.com>
2012-07-30tests: more robust symlinks usageKarel Zak1-1/+14
Reported-by: Bernhard Voelker <mail@bernhard-voelker.de> Signed-off-by: Karel Zak <kzak@redhat.com>
2012-07-30tests: use ts_is_mounted in mount/regfileBernhard Voelker1-2/+2
If the test directory is on a symlink, then mount/regfile failed because it did not search for the mount point in /proc/mounts canonicalized. Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
2012-07-30tests: search mount point in canonicalized form in /proc/mountsBernhard Voelker1-1/+4
* tests/functions.sh (ts_is_mounted): Enhance to resolve symlinks in given mount point before grep'ing in /proc/mount. If the test directory is on a symlink, then e.g. tests/ts/cramfs/doubles failed because the kernel keeps the mount entry in a canonicalized form in /proc/mounts while this function searched for it with the original path name. Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
2012-07-27tests: update non-lib build testsKarel Zak5-0/+276
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-07-26tests: update build-sys testsKarel Zak13-1018/+1198
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-07-26tests: update partx, add missing whitespaceKarel Zak4-10/+10
... probably removed by git-pull from Sami's repo :-( Signed-off-by: Karel Zak <kzak@redhat.com>
2012-07-26tests: update paths to helpersKarel Zak1-7/+7
Signed-off-by: Karel Zak <kzak@redhat.com>