summaryrefslogtreecommitdiffstats
path: root/tests/ts
Commit message (Collapse)AuthorAgeFilesLines
* tests: split off losetup scsi_debug partRuediger Meier2014-05-273-61/+90
| | | | | | | It's a pity that we would skip the whole test if scsi_debug is not available. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: fix, typo schedutils/cpusetRuediger Meier2014-05-271-1/+1
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: skip umount-alltargets on regular mtabKarel Zak2014-05-261-0/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* 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>
* Merge branch 'tests-mount' of https://github.com/rudimeier/util-linuxKarel Zak2014-05-163-4/+3Star
|\ | | | | | | | | | | | | | | * 'tests-mount' of https://github.com/rudimeier/util-linux: tests: use ts_mount for cramfs tests: ts_mount knows which fs is expected tests: ts_mount validates error message tests, add function ts_mount
| * tests: use ts_mount for cramfsRuediger Meier2014-05-162-2/+2
| | | | | | | | 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: check for mkfs.ext{2,3,4}Ruediger Meier2014-05-1527-0/+29
| | | | | | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* | tests: consolidate some checks for commandsRuediger Meier2014-05-158-22/+21Star
|/ | | | | | | | | | | Use ts_check_prog for mdadm, readelf, file, ntpdate, bc (mdadm was not always checked so far). There are some positive side-effects. We are using always $PATH now instead of randomly hardcoded /usr/bin, /sbin, etc. If we ever want to change this again, we should do this generically in ts_init. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* Merge branch 'travis-root-checks-v2' of https://github.com/rudimeier/util-linuxKarel Zak2014-05-1447-135/+194
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 'travis-root-checks-v2' of https://github.com/rudimeier/util-linux: travis-ci: enable root checks travis-ci: minor cleanup and speedup tests: introduce TS_CMD_UUIDGEN (never use installed one) tests, don't write TS_DEVICE to stdout anymore tests: ts_scsi_debug_init must not run in a subshell tests: cleanup ts_scsi_debug_init tests: some more tests need loop support tests: ts_device_init requires loop support tests: use ts_check_losetup in losetup test tests: add function ts_check_losetup tests: ts_device_init remove useless error handling
| * tests: introduce TS_CMD_UUIDGEN (never use installed one)Ruediger Meier2014-05-134-4/+9
| | | | | | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
| * tests: ts_scsi_debug_init must not run in a subshellRuediger Meier2014-05-1317-130/+146
| | | | | | | | | | | | | | | | | | | | | | ts_skip and ts_die won't work from subshell. Now we simply use TS_DEVICE which is globally set in that function. I've made sure that we never change TS_DEVICE variable after we've got it. So we could use it again for cleanup on exit in ts_{finalize,die,skip} functions. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
| * tests: some more tests need loop supportRuediger Meier2014-05-132-0/+2
| | | | | | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
| * tests: ts_device_init requires loop supportRuediger Meier2014-05-1328-1/+28
| | | | | | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
| * tests: use ts_check_losetup in losetup testRuediger Meier2014-05-131-0/+9
| | | | | | | | | | | | | | In losetup test we have to handle the special case that ts_check_losetup requires a working losetup binary. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* | tests, script/race is known to failRuediger Meier2014-05-131-0/+4
| | | | | | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* | tests: script/race would work with variable loop countRuediger Meier2014-05-131-1/+9
| | | | | | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* | tests: ipcs/limits2 is known to failRuediger Meier2014-05-131-0/+5
| | | | | | | | | | | | | | See github issue #51, comment 2 https://github.com/karelzak/util-linux/issues/51 Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* | tests: fix hexdump for big endianRuediger Meier2014-05-132-1/+32
| | | | | | | | | | | | | | | | For now endianess dependent subtests have undefined output on BE systems until sombody re-checks this and provides expected output files with .BE suffix. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* | tests: fix hexdump, add ts_finalizeRuediger Meier2014-05-131-0/+2
|/ | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: check /proc availability, and go-around if it is incompleteSami Kerola2014-05-121-13/+17
| | | | | | | | | | | | | | | | | | Unavailability of /proc is fatal for kill, and continuing with the test in that case does not make sense as it will only mean false positive errors. Where /proc/<pid>/status file(s) does not exist the check will perform opportunistic sleep with assumption the test_sigreceive will be ready to be killed if it has some time to init. [kzak@redhat.com: - remove dependence on gawk, just use shell - fix typo in "test /proc"] CC: Ruediger Meier <sweet_f_a@gmx.de> Reference: https://travis-ci.org/rudimeier/util-linux/jobs/24561058 Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add test case for last -time-format=fullRuediger Meier2014-05-081-1/+4
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* column: inform user when multibyte conversion error occursSami Kerola2014-05-071-0/+30
| | | | | | | | | The column(1) read input until conversion error, and used incomplete input when outputing, that made at least me to wonder where the rest disappeared without explanation. IMHO it is better to fail immediately rather than do only half of the task. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: fix kill problemsRuediger Meier2014-05-064-12/+14
| | | | | | | | | | | | | There were several failures (missing tmp files, missing pids) on travis build farm which I couldn't track down completely. Here we fix some possible issues: - mktemp -u is unsafe, maybe even in practice if there is a bad random generator - make sure that mktemp does not give us pure integer filnames which would not work for "kill by-name" - avoid using trap, could be that it removed tmp files on wrong signals Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: kill_functions.sh needs gawk (skip if sourced)Ruediger Meier2014-05-061-1/+4
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: add kill_functions.sh to avoid duplicate codeKarel Zak2014-04-285-65/+43Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: check kill all user processesSami Kerola2014-04-261-0/+66
| | | | | CC: Bernhard Voelker <mail@bernhard-voelker.de> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: check kill print pid optionSami Kerola2014-04-261-0/+69
| | | | | CC: Bernhard Voelker <mail@bernhard-voelker.de> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: check various ways to specify kill signalSami Kerola2014-04-261-0/+77
| | | | | CC: Bernhard Voelker <mail@bernhard-voelker.de> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: check kill is converting signals names correctlySami Kerola2014-04-261-0/+74
| | | | | CC: Bernhard Voelker <mail@bernhard-voelker.de> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: rely on ts_init_py onlyKarel Zak2014-04-231-2/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add fdisk 'f' command MBR testKarel Zak2014-04-231-0/+79
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* Merge branch 'fix-ppc-tests' of https://github.com/rudimeier/util-linuxKarel Zak2014-03-2815-26/+64
|\ | | | | | | | | | | | | | | | | | | * '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-151-1/+7
| | | | | | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
| * tests: fix utmpdump/to-binary for bigendianRuediger Meier2014-03-151-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-151-5/+13
| | | | | | | | 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-283-8/+14
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * '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-131-1/+3
| | | | | | | | | | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
| * | tests: add basic test case for ipcs -s -i nRuediger Meier2014-03-131-1/+3
| | | | | | | | | | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
| * | tests: add basic test case for ipcs -q -i nRuediger Meier2014-03-131-0/+2
| | | | | | | | | | | | 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: add lscpu dump for ppc cpu with no cache sizeRuediger Meier2014-03-271-0/+0
| |/ |/| | | | | | | | | | | 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: check swaplabel, and perform more swapon boundary testsSami Kerola2014-03-121-0/+44
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>