summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* tests: getting paraller_jobs more robustRuediger Meier2014-03-291-1/+10
| | | | | | | | | | | | This patch fixes several issues: 1. lscpu may not exist on all systems. 2. Option -b is not always available but we can skip it because it's the documented default for -p. 3. Some old lscpu versions print --help output to stdout in case of error. So in case 2. it would count all the help lines as CPUs, which could be really bad on slow single core machines. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* Merge branch 'fix-ppc-tests' of https://github.com/rudimeier/util-linuxKarel Zak2014-03-2818-28/+66
|\ | | | | | | | | | | | | | | | | | | * 'fix-ppc-tests' of https://github.com/rudimeier/util-linux: tests: fix last for bigendian tests: fix utmpdump/ipv6tobin for bigendian tests: fix utmpdump/to-binary for bigendian tests: fix utmpdump/ipv6totxt for bigendian tests: fix utmpdump/to-text for bigendian tests: swaplabel needs to respect pagesize
| * tests: fix last for bigendianRuediger Meier2014-03-236-17/+31
| | | | | | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
| * tests: fix utmpdump/ipv6tobin for bigendianRuediger Meier2014-03-152-1/+7
| | | | | | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
| * tests: fix utmpdump/to-binary for bigendianRuediger Meier2014-03-152-1/+7
| | | | | | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
| * tests: fix utmpdump/ipv6totxt for bigendianRuediger Meier2014-03-153-1/+3
| | | | | | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
| * tests: fix utmpdump/to-text for bigendianRuediger Meier2014-03-153-1/+3
| | | | | | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
| * tests: swaplabel needs to respect pagesizeRuediger Meier2014-03-152-7/+15
| | | | | | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* | Merge branch 'fix-ipcs-q-fallback' of https://github.com/rudimeier/util-linuxKarel Zak2014-03-286-8/+19
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 'fix-ipcs-q-fallback' of https://github.com/rudimeier/util-linux: travis-ci: abort if make check fails ipcs: fix memleak in ipc_*_get_info functions ipcs: fix ipc_sem_get_info fallback case ipcs: fix ipc_shm_get_info fallback case ipcs: fix ipc_msg_get_info fallback case tests: add basic test case for ipcs -m -i n tests: add basic test case for ipcs -s -i n tests: add basic test case for ipcs -q -i n tests: quote generated arguments for ipcrm ipcs: cleanup jumplabel stlyes
| * | tests: add basic test case for ipcs -m -i nRuediger Meier2014-03-132-1/+5
| | | | | | | | | | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
| * | tests: add basic test case for ipcs -s -i nRuediger Meier2014-03-132-1/+5
| | | | | | | | | | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
| * | tests: add basic test case for ipcs -q -i nRuediger Meier2014-03-132-0/+3
| | | | | | | | | | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
| * | tests: quote generated arguments for ipcrmRuediger Meier2014-03-133-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | In case that awk fails to parse out the right id the next ipc command will give us a clear error message instead of telling us to use correct syntax. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* | | tests: cleanup, remove unused lscpu outputRuediger Meier2014-03-2717-1114/+0Star
| | | | | | | | | | | | | | | | | | All these files are not used since a292bbde or 0d86c70a. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* | | tests: add lscpu dump for ppc cpu with no cache sizeRuediger Meier2014-03-272-0/+15
| |/ |/| | | | | | | | | | | Taken from qemu-system-ppc (qemu 1.7) machine with installed debian 7.4 wheezy, kernel 3.2.0-4-powerpc. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* | tests: try hard to create swaplabel's test imageRuediger Meier2014-03-141-5/+13
| | | | | | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* | tests: return error if failures file not usableRuediger Meier2014-03-131-1/+1
| | | | | | | | | | | | In past this could happen when doing make distcheck. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* | tests: write tests/failures to build- instead of srcdirRuediger Meier2014-03-131-4/+4
|/ | | | | | | All other test output goes to builddir too and moreover "make distcheck" complains about writing to it's read-only srcdir. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: check swaplabel, and perform more swapon boundary testsSami Kerola2014-03-123-0/+51
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: cleanup fallocateKarel Zak2014-03-121-4/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* Merge branch 'master' of https://github.com/rudimeier/util-linuxKarel Zak2014-03-121-2/+10
|\ | | | | | | | | * 'master' of https://github.com/rudimeier/util-linux: tests, skip fallocate for unsupported filesystems
| * tests, skip fallocate for unsupported filesystemsRuediger Meier2014-03-111-2/+10
| |
* | tests: refresh fdisk outputsKarel Zak2014-03-118-150/+107Star
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | tests: update fdisk MBR and SUN testsKarel Zak2014-03-113-93/+83Star
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | libfdisk: (bsd) fix outputKarel Zak2014-03-111-16/+14Star
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | cfdisk: follow terminal-colors.dKarel Zak2014-03-111-53/+53
|/ | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: check commands needed for running a test existSami Kerola2014-03-07122-30/+373
| | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: remove deprecated-mount/Karel Zak2014-03-052-119/+13Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* hexdump: color unit may now be longer than the corresponding format unitOndrej Oprala2014-03-043-4/+90
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* build-sys: enable parallel tests for make checkKarel Zak2014-02-171-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: make tests to run parallelSami Kerola2014-02-172-20/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | Unarguably this change makes test output to be more messy, but when I compare run time tells with clear numbers parallel is quicker. For me the quickness is important factor. Running test suite always after a change is preferrably quick, and if something is indicated to be broken it is ok to spend time in drilling down what happen. $ time ./tests/run.sh --parallel=5 [...] real 1m48.037s Same without parallelization. $ time ./tests/run.sh real 3m16.687s The default is changed to be parallel, where job count is same as number of CPUs. [kzak@redhat.com: - propagate --parallel into function.sh - don't use extra title for non-parallel execution - disable by default] Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: fdisk now prints SGI system partitions tooKarel Zak2014-02-171-0/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: update libmount tabdiff testsKarel Zak2014-02-174-0/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: update ionice testKarel Zak2014-02-171-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add isosize --sectors and --divisor testsSami Kerola2014-02-174-1/+14
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: align last.1 with recent phantom detectionSami Kerola2014-02-171-8/+8
| | | | | | | None existing account is not still-logged-in but gone mysteriously, assuming wtmp logout markup is missing. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: avoid executing dirname(1) commandSami Kerola2014-02-17138-138/+138
| | | | | | Bash parameter expansion does the same thing. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: fix trailing spaces in cal(1) stuffKarel Zak2014-02-173-389/+391
| | | | | Reported-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: accept (deleted) path suffix in mountinfo fileKarel Zak2014-02-172-0/+12
| | | | | Addresses: debian bug #711183 Signed-off-by: Karel Zak <kzak@redhat.com>
* hexdump: add highlighting supportOndrej Oprala2014-02-1030-0/+987
| | | | | | | | | [kzak@redhat.com: - fix coding style, - use xalloc in all code, - fix strtol usage] Signed-off-by: Ondrej Oprala <ooprala@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: cal(1) is year is limited to signed 32 bit valueSami Kerola2014-02-064-369/+355Star
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: update build-sys testsKarel Zak2014-01-1718-18/+15Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: update lscpu testsKarel Zak2014-01-141-33/+35
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add partx --update testKarel Zak2014-01-142-0/+11
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: update partx sgi testKarel Zak2014-01-141-0/+2
| | | | | | | Since commit 4253275490926cf533bfd0bc33279729e9ff427a the libblkid lists system partitions for SGI label. Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: libmount: skip tabfiles-py when pylibmount is disabledMike Frysinger2014-01-061-0/+2
| | | | | | | The default configure disables python support, so this test fails by default. Add a simple check for module availability. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* tests: last: skip when last is not enabledMike Frysinger2014-01-062-0/+4
| | | | | References: https://bugs.gentoo.org/489794 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* tests: cal: do not let --week=<num> to adjust requested monthSami Kerola2013-12-061-42/+42
| | | | | | | | | The previous commit made --week=<number> to have smaller weight value than a month supplied by user. The commit started to print the month that has more days at the week when a week is split to two months, and only one month output is requested. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: cal: take account week numbers when determing month lenghtSami Kerola2013-12-061-8/+4Star
| | | | | | | The month header does not need to wrap if month width with week number allows printing to single line. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* namei: align missing files with rest of the print outSami Kerola2013-12-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | This change should make namei output more readable when multiple arguments are supplied. The old: $ namei -l /usr/foo f: /usr/foo drwxr-xr-x root root / drwxr-xr-x root root usr foo - No such file or directory The new: $ namei -l /usr/foo f: /usr/foo drwxr-xr-x root root / drwxr-xr-x root root usr foo - No such file or directory Signed-off-by: Sami Kerola <kerolasa@iki.fi>