summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* tests: missed conversionZdenek Kabelac2015-05-091-1/+1
| | | | Assuming it should test same number as other functions.
* tests: avoid clobering dmesgZdenek Kabelac2015-05-091-18/+10
| | | | Restore old harness access to /dev/kmsg.
* lvmpolld: Add standalone polldaemon.Ondrej Kozina2015-05-09187-34/+636
| | | | See doc/lvmpolld_overview.txt
* tests: better filterZdenek Kabelac2015-05-082-3/+3
| | | | Filter $PREFIX rather then just LVMTEST.
* tests: missing vgZdenek Kabelac2015-05-081-1/+1
|
* format_text: properly validate PV size for restoreZdenek Kabelac2015-05-081-0/+37
| | | | | | | | | | Use 64bit arithmentic for PV size calculation (Coverity). Also remove sector shift for compared PV size, since all values are already held in sectors. This fixes validatio of PV size when restoring PV from vg metadata backup file.
* Python: Improve lv property test coverageTony Asleson2015-05-061-3/+53
| | | | | | | | | | Improve the python unit test case to cover all of the properties of a LV and the properties of a LV segment. In addition we also add a 'tag' to the lv so that we can retrieve it using the 'lv_tags' property to ensure that this works as expected. Signed-off-by: Tony Asleson <tasleson@redhat.com>
* tests: do not restart lvmetad when not necessaryOndrej Kozina2015-05-061-4/+1
| | | | overlooked pvmove-restart test during cleanup
* tests: play better with mdadmZdenek Kabelac2015-05-042-1/+20
| | | | Manage mdadm devices on older distros is a challange.
* tests: check for open_countZdenek Kabelac2015-05-041-5/+8
| | | | | Instead of checking /proc/mounts check for open_count of snap device. Parallel umount has race, so check for open_count.
* tests: drop extra scsi initZdenek Kabelac2015-05-041-9/+5
| | | | | Use first test also for checking the support is there - avoid one extra unnecessary scsi_debug reload.
* tests: check for clvmd process entryZdenek Kabelac2015-05-041-1/+1
| | | | | | Instead of checking just for pid file - rather check for process - since there could be slight race, the pid file is gone, but process still exists.
* tests: validate passed LVM_TEST_DEVDIRZdenek Kabelac2015-05-041-0/+1
| | | | Quit test early if passed LVM_TEST_DEVDIR dir does not exists.
* tests: wait for scsi device to appearZdenek Kabelac2015-05-041-5/+9
| | | | Continue with test as soon as device appear (avoid 2s delay)
* tests: dd needs to fail in this caseZdenek Kabelac2015-05-031-1/+1
|
* tests: more waits on restartZdenek Kabelac2015-05-031-15/+20
| | | | Check for socket presence (hardcoded for now)
* tests: use 800ms write delayZdenek Kabelac2015-05-031-6/+3
| | | | | | | Since this value magically worked for pvmove-abort* use it here as well. Also prepate_lvmetad has better kill&reload mechanism.
* tests: use odirectZdenek Kabelac2015-05-034-7/+6
| | | | | Fill snaphot with odirect so we know data hits disk before we test how full the snapshot is.
* tests: more advance cleanup of running pvmoveZdenek Kabelac2015-05-011-4/+11
| | | | More take down more targets and use time-limited code.
* tests: configure use_lvmetad when neededZdenek Kabelac2015-05-012-3/+5
|
* tests: free -h is quite new optionZdenek Kabelac2015-05-011-1/+1
| | | | Stay with -g and and ignore failure.
* tests: minor simplificationsZdenek Kabelac2015-05-015-20/+11
| | | | minor updates
* tests: disable usage of fuserZdenek Kabelac2015-05-011-4/+4
| | | | | Seems we captured problems with debug.log overwrite, so avoid quite expensive usage of fuser tool with each lvm command.
* tests: run api tests from startup dirZdenek Kabelac2015-05-011-2/+2
|
* tests: no lvmetad reload for debugless outputZdenek Kabelac2015-05-019-23/+26
| | | | | | | | | Introduce LVM_TEST_LVMETAD_DEBUG_OPTS to allow to override default debug opts for lvmetad. However could be still overloaded on command line: make check_lvmetad LVM_TEST_LVMETAD_DEBUG_OPTS="-l all"...
* tests: lower version of dm-delayZdenek Kabelac2015-05-011-1/+4
| | | | | | Let's see what will break with lower version 1.1. Also avoid repeated check of target version.
* tests: rename kill_tagged_processesZdenek Kabelac2015-05-017-12/+31
| | | | | | | Better name for aux function. First use normal -TERM, and only after a while use -KILL (leaving some time to correctly finish) Print INFO about killed processes.
* tests: move conf preparingZdenek Kabelac2015-05-012-2/+1
| | | | | If the test in the middle is restarting lvmetad avoid conf regenerating.
* tests: hide error messageZdenek Kabelac2015-05-011-1/+1
| | | | Hide error about missing declare -A support.
* tests: wait between remountZdenek Kabelac2015-05-011-0/+2
| | | | Let's see if this help with some races...
* tests: move kernel_at_least to auxZdenek Kabelac2015-05-016-23/+12
| | | | | Hide func processing and reuse existing version_at_least().
* tests: watch out for RAM sizeZdenek Kabelac2015-05-013-0/+10
| | | | | | | Reduce mem-requirements on low memory boxes, activate less volumes if machine is below 0.5G. Also print mem size at test header.
* tests: lvmconf updateZdenek Kabelac2015-04-301-3/+17
| | | | | | | | | New lvmconf function is using bash associative arrays - however older systems like RHEL5 doesn't provide this feature. In this case stay with older variant. Restore support for use case like this: aux lvmconf 'tags/@foo {}'
* tests: minimize teardown when uneededZdenek Kabelac2015-04-292-19/+16
| | | | | If test has not yet initilized any device, make teardown a bit faster.
* tests: bash-fu for lvmconfZdenek Kabelac2015-04-291-10/+23
| | | | | Sqeeze about 0.1s out of every created conf and use internal bash associative arrays instead of lot of command forking
* python: python 3 compat patch for lvm2bkabrda@redhat.com2015-04-291-13/+5
| | | | As provided by rhbz: 1136366
* tests: try harder to kill all dangling procsOndrej Kozina2015-04-286-160/+117
| | | | | also simplify and make less prone to an error checks for running bg processes inside a pvmove-resume tests
* tests: simplify removal of dangling bg procsOndrej Kozina2015-04-285-31/+17
| | | | | | | | | | | | | | | | | | | | | | some tests left dangling bg processes originating in lvm2 commands being able to spawn any bg polling process (lvchange, vgchange, pvmove, lvconvert...) Initial fn 'add_to_kill_list' should collect processes with specific parameters (proc's command line and parent processes ID). After testing finishes the fn kill_listed_processes should remove these listed by 'add_to_kill_list'. Unfortunately it proved to be prone to an error especially in scenarios where cmd line of initiating command contained characters required to be espaced before passing to shell script to make it work correctly. (Or if cmd spawned more than one bg process with same cmd line. i.e.: vgchange or lvchange). The new implementation is much simpler. It uses env. variable (LVM_TEST_TAG) for marking a process desired to be killed later or during test env. teardown. (i.e.: LVM_TEST_TAG=kill_me_$PREFIX to kill only processes related to current test environment)
* tests: more help#Zdenek Kabelac2015-04-281-0/+1
|
* tests: always zero disk headerZdenek Kabelac2015-04-281-0/+2
| | | | | It appear that older wipefs doesn't wipe partition table. So ensure there is no partition on LVM_TEST_BACKING_DEVICE.
* tests: more descriptive auxZdenek Kabelac2015-04-281-6/+17
| | | | Tell what's reason of aux fail here.
* tests: drop debug testZdenek Kabelac2015-04-281-1/+0
| | | | Remove 'debug leftover' from test.
* tests: use new help in auxZdenek Kabelac2015-04-252-148/+50
| | | | Simplify tests and use aux mdadm helpers.
* tests: aux for mdadmZdenek Kabelac2015-04-251-1/+66
| | | | Implement aux helper fce for mdadm.
* tests: allow add printable skip messageZdenek Kabelac2015-04-251-0/+1
|
* tests: check sysfs more genericallyZdenek Kabelac2015-04-253-10/+10
| | | | Allow to access more files in device sysfs subtree.
* tests: add double quotes around add_to_kill_list parmsOndrej Kozina2015-04-253-8/+8
|
* tests: try more advanced cleanZdenek Kabelac2015-04-251-1/+2
| | | | | | When test is executed on real device - lets try a more complete cleanup - discard whole device first and try to wipe any headers it might be left from previous test.
* tests: fix md raid test on real /devZdenek Kabelac2015-04-232-14/+22
| | | | | | | Zero raid signatures when raid is stopped - so signatures are not requiring wipe when pvcreate follows. Handle real /dev
* tests: add missing "" around devZdenek Kabelac2015-04-221-1/+1
|