summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* tests: update build testsKarel Zak2014-06-1819-220/+363
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: skip some last tests if no dns supportRuediger Meier2014-06-124-19/+28
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: split last into dns and nodns subtestsRuediger Meier2014-06-126-30/+34
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: add utmpdump-circle test (arch independent)Ruediger Meier2014-06-122-0/+43
| | | | | | | This one is a completely arch independent conversion round: text -> bin -> text -> bin Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: provide missing test data for "last" on exotic archsRuediger Meier2014-06-122-4/+18
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: skip utmpdump tests for exotic archsRuediger Meier2014-06-125-12/+26
| | | | | | | We introduce utmp_functions.sh and skip tests if size of utmp struct does not match our wtmp test data. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: merge last/ and utmpdump/ into new utmp/ dirRuediger Meier2014-06-1123-32/+51
| | | | | | | We want to prepare and simplify utmp sepcific fixes. Beside all this renaming we also update/add some text data to have it more consistent. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: fix fdisk/bsd for big endian systemsRuediger Meier2014-06-091-0/+12
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: rewrite hwclock testRuediger Meier2014-06-081-21/+76
| | | | | | | | | | | | | | | | Major changes: - don't use deprecated ntpdate but sntp client - don't update sys time from ntp, just compare offsets - now hwclock is the only command which needs root permissions - resolve ntp server to one fixed IP to get comparable offsets always from the same remote machine - don't enter the systohc/hctosys loop if not even --show works - verbose but not too ugly debug output Note, maybe later the resolve_host function could be moved to functions.sh because other tests (e.g. last) should check whether dns is available. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: fix python tests for dist and out-of-tree buildsRuediger Meier2014-06-047-8/+13
| | | | | | | | | - add python helper scripts to the dist - helper scripts are always in srcdir - python libs are in builddir - abort tests if helpers are missing Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: ignore deprecated lastRuediger Meier2014-06-032-0/+4
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: remove deprecated mount testsRuediger Meier2014-06-034-87/+0Star
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* Merge branch 'lscpu-detect-v3' of https://github.com/rudimeier/util-linuxKarel Zak2014-05-304-0/+31
|\ | | | | | | | | | | | | | | | | * 'lscpu-detect-v3' of https://github.com/rudimeier/util-linux: lscpu: improve vmware detection tests: add lscpu IBM pSeries test data lscpu: detect OS/400 and pHyp hypervisors tests: add vbox lscpu dump lscpu: minor cleanup and improve hypervisor detection
| * tests: add lscpu IBM pSeries test dataRuediger Meier2014-05-292-0/+2
| | | | | | | | | | | | | | | | | | Just adding missing files /proc/device-tree/ibm,partition-name /proc/device-tree/hmc-managed? to our existing lscpu-ppc64-POWER7-64cpu dump. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
| * tests: add vbox lscpu dumpRuediger Meier2014-05-292-0/+29
| | | | | | | | | | | | | | | | | | | | | | Taken from openSUSE-13.1 guest in VirtualBox-4.3.10 (host=Win7): Hypervisor vendor: Oracle Virtualization type: full Dump was provides by Bernhard Voelker. CC: Bernhard Voelker <mail@bernhard-voelker.de> Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* | build: fix some compiler warningsRuediger Meier2014-05-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Most of them catched on 32bit gcc and icc. disk-utils/fsck.cramfs.c: printf format type lib/boottime.c: unused variables misc-utils/cal.c: set but never used sys-utils/losetup.c: set but never used sys-utils/lscpu-dmi.c: defined but not used sys-utils/switch_root.c: comparison between signed and unsigned tests/helpers/test_sysinfo.c: printf format type
* | tests: split off losetup scsi_debug partRuediger Meier2014-05-275-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: run tests in deterministic orderRuediger Meier2014-05-271-0/+1
| | | | | | | | | | | | | | Not really needed but it makes debugging of existing build logs much more easier. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* | tests: ts_scsi_debug_init skip instead of dieRuediger Meier2014-05-271-6/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If any of these modprobe commands fails then it's not a broken test. ALso ts_die often does not work correctly from subtests which should be fixed someday too. BTW modprobe dry-run (even the real modprobe) is not reliable. Moreover now we respect blacklisted modules (-b). This error handling is not only useful to let the test-suite succeed on broken systems but also to not fail all "scsi_debug tests" after just one of them failed to umount something. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* | Merge branch 'setarch' of https://github.com/rudimeier/util-linuxKarel Zak2014-05-261-0/+11
|\ \ | | | | | | | | | | | | | | | * 'setarch' of https://github.com/rudimeier/util-linux: setarch: add shortcut binary uname26 setarch: flush output streams before exec
| * | setarch: flush output streams before execRuediger Meier2014-05-221-0/+11
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes the following (non-deterministic) discrepancy: $ setarch x86_64 -RFZLvXBIST3 --uname-2.6 echo success Switching on READ_IMPLIES_EXEC. Switching on ADDR_LIMIT_32BIT. Switching on SHORT_INODE. Switching on WHOLE_SECONDS. Switching on STICKY_TIMEOUTS. Switching on ADDR_LIMIT_3GB. Switching on UNAME26. success $ setarch x86_64 -RFZLvXBIST3 --uname-2.6 echo success &> /tmp/bla; cat /tmp/bla success 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>
* tests: remove test_fsck.cramfs (reverts 6c32ae78)Ruediger Meier2014-05-191-1/+1
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* 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-164-4/+27
|\ | | | | | | | | | | | | | | * '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-162-2/+4
| | | | | | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
| * tests: ts_mount validates error messageRuediger Meier2014-05-161-3/+9
| | | | | | | | | | | | | | Skip only if mount reports a non-empty fs which is not available in /proc/filesystems. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
| * tests, add function ts_mountRuediger Meier2014-05-162-2/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | tests: add function ts_check_progRuediger Meier2014-05-151-0/+5
|/ | | | 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-1449-148/+217
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * '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-135-4/+10
| | | | | | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
| * tests, don't write TS_DEVICE to stdout anymoreRuediger Meier2014-05-131-1/+0Star
| |
| * 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: cleanup ts_scsi_debug_initRuediger Meier2014-05-131-6/+7
| | | | | | | | | | | | | | | | Sort out global and local vars. Now we set TS_DEVICE globally to be use later. Skip really quiet if modprobe fails. 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: add function ts_check_losetupRuediger Meier2014-05-131-0/+12
| | | | | | | | | | | | Unfortunately losetup -f does not return an error nowadays. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
| * tests: ts_device_init remove useless error handlingRuediger Meier2014-05-121-7/+4Star
| | | | | | | | | | | | | | Don't know why we should deinit the empty string. This patch prepares further refactoring or error handling. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* | tests: add .BE hexdump test results (from s390)Karel Zak2014-05-1423-0/+707
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | 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-132-2/+10
| | | | | | | | 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>