Zdenek Kabelac
c87e1afa03
tests: export many shell vars with 1 command
2017-07-10 14:23:53 +02:00
Heinz Mauelshagen
70c340dbc2
test: return 0 if ignoring 'a' device health chars is requested
...
This allows lvconvert-raid-reshape-striped_to_linear.sh to succeed when
it reduces raid5 to two stripes before converting to raid1 and linear.
2017-07-04 19:34:10 +02:00
Zdenek Kabelac
006a9eaada
tests: aux.sh fix pattern
...
Commit 72a58ce4b0
fixed 'translation' of
pattern by bash by using "" - so we need to drop '\' here to get
wanted behavior.
2017-06-30 21:13:07 +02:00
Zdenek Kabelac
c31614eccc
tests: aux.sh use subshell for simple redirection
2017-06-30 17:08:47 +02:00
Zdenek Kabelac
57779e39ec
tests: correcting globbing usage
...
Ensure globbing uses current dir.
Break loop when no match is found.
Let STACKTRACE finish its output when gdb fails.
2017-06-30 14:40:50 +02:00
Zdenek Kabelac
9348ad4f16
tests: aux prepares lvmdbusd
...
Correctly skip the test when lvmdbusd is found already running.
For pgrep usage we need to add '-f -l' options to get python3 name
printed.
Remove no longer used 'pids' local var.
2017-06-30 12:12:16 +02:00
Zdenek Kabelac
674a93ffe3
tests: aux do not specify bitmap for raid0
2017-06-30 12:09:10 +02:00
Zdenek Kabelac
e84a145cf4
tests: check.sh uses array for list
...
For properly quoted args, switch to use arrays for arg list.
2017-06-30 12:09:10 +02:00
Zdenek Kabelac
3d90c7fffc
tests: get.sh declare and assign separately
...
Declare and assign separately to avoid masking return values.
Also comment-out currently unused orig variable.
2017-06-29 22:23:17 +02:00
Zdenek Kabelac
834b82b0cd
tests: get.sh double quote
2017-06-29 22:23:17 +02:00
Zdenek Kabelac
d7b3815223
tests: utils.sh separately assign
...
Declare and assign separately to avoid masking return values.
2017-06-29 22:23:17 +02:00
Zdenek Kabelac
cf4b671acd
tests: utils.sh avoid iterating over ls output
2017-06-29 22:23:17 +02:00
Zdenek Kabelac
4697937af4
tests: utils.sh arithmetic
...
expr is antiquated. Consider rewriting this using $((..)), ${} or [[ ]].
$ is unnecessary on arithmetic variables.
2017-06-29 22:23:17 +02:00
Zdenek Kabelac
00957450eb
tests: utils.sh no mixed string array
...
Argument mixes string and array. Use * or separate argument.
2017-06-29 22:23:17 +02:00
Zdenek Kabelac
c396053955
tests: utils.sh double quote
2017-06-29 22:23:17 +02:00
Zdenek Kabelac
b442861f50
tests: lvm-wrapper.sh legacy syntax
2017-06-29 22:23:17 +02:00
Zdenek Kabelac
b1f80512c8
tests: lvm-wrapper.sh double quote
2017-06-29 22:23:17 +02:00
Zdenek Kabelac
32be18959d
tests: inittest.sh double quote and mixing string
2017-06-29 22:23:17 +02:00
Zdenek Kabelac
b45ca523ec
tests: check.sh eliminate useless cat
...
Useless cat. Consider 'cmd < file | ..' or 'cmd file | ..' instead.
2017-06-29 22:23:17 +02:00
Zdenek Kabelac
51237cb504
tests: check.sh better if
...
Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
2017-06-29 22:23:17 +02:00
Zdenek Kabelac
db338c2b42
tests: check.sh drop unnecessary $
...
$/${} is unnecessary on arithmetic variables.
2017-06-29 22:23:17 +02:00
Zdenek Kabelac
c0197040a5
tests: check.sh using grep -F
...
fgrep is non-standard and deprecated. Use grep -F instead.
2017-06-29 22:23:17 +02:00
Zdenek Kabelac
824db54128
tests: check.sh no mixing string
...
Argument mixes string and array. Use * or separate argument.
2017-06-29 22:23:17 +02:00
Zdenek Kabelac
810f856c24
tests: check.sh assign separately
...
Declare and assign separately to avoid masking return values.
2017-06-29 22:23:17 +02:00
Zdenek Kabelac
02729202f3
tests: check.sh double quote
2017-06-29 22:23:17 +02:00
Zdenek Kabelac
491fcd2a92
tests: aux.sh fix pid handling
...
Modification of pids is local (to subshell caused by pipeline).
pids was modified in a subshell. That change might be lost.
2017-06-29 22:23:17 +02:00
Zdenek Kabelac
96fcf82ddd
tests: aux.sh add -r to read
2017-06-29 22:23:17 +02:00
Zdenek Kabelac
ec02307e95
tests: aux.sh array assing
...
Assigning an array to a string! Assign as array, or use * instead of @ to concatenate.
2017-06-29 22:23:17 +02:00
Zdenek Kabelac
8a912d6dbc
tests: aux.sh separately assign
...
Declare and assign separately to avoid masking return values.
2017-06-29 22:23:17 +02:00
Zdenek Kabelac
4f63b7e9c1
tests: aux.sh using grep -c
...
Consider using grep -c instead of grep|wc -l.
2017-06-29 22:23:17 +02:00
Zdenek Kabelac
b16ca76260
tests: aux.sh no mixing string
...
Argument mixes string and array. Use * or separate argument.
2017-06-29 22:23:17 +02:00
Zdenek Kabelac
44e530b919
tests: aux.sh drop unnecessary $
...
$/${} is unnecessary on arithmetic variables.
2017-06-29 22:23:16 +02:00
Zdenek Kabelac
474e3cd66d
tests: aux.sh use pgrep
2017-06-29 22:23:16 +02:00
Zdenek Kabelac
72a58ce4b0
tests: aux.sh double quote
2017-06-29 22:23:16 +02:00
Zdenek Kabelac
f48d1bf147
tests: require also no 'a' for in-sync
...
Raid easily reports 'idle' with 'a', so in this case
we will not report in-sync.
2017-06-23 23:32:44 +02:00
Zdenek Kabelac
3d591ac376
tests: avoid double lines
...
Skip showing same line twice in test's verbose log.
2017-06-20 18:24:52 +02:00
Heinz Mauelshagen
a004cceed2
test: Adjust previous commit
...
Change have_single_core to have_multi_core and go back to || logic in related test scripts.
2017-04-21 01:21:24 +02:00
Alasdair G Kergon
c7fb0cb861
test: Skip some reshape tests that hang on single core machines
...
Skip hanging raid reshape tests until https://bugzilla.redhat.com/1443999
is fixed
2017-04-20 20:05:07 +01:00
Zdenek Kabelac
aa25cfe084
test: correcting binary usage
...
Ensure 'test suite' run uses fsadm and dmeventd from compiled dir,
while for 'rpm' installed test use binaries installed in system.
2017-04-14 01:03:18 +02:00
David Teigland
0ea9a15612
tests: use raid_region_size 512
...
given the new default from 5ae7a016b8
2017-04-13 14:21:34 -05:00
Zdenek Kabelac
59d54d70e7
tests: aux defines fsadm path
2017-04-12 23:05:50 +02:00
Zdenek Kabelac
fb1f38a6f6
tests: fix LD_LIBRARY_PATH
...
Use only selected paths for finding .so in builddir.
So if builddir constains some embeded subdirs with some more
occurences of project (i.e. 'make rpm' build subdir)
those library paths will not get into list.
2017-03-31 17:12:00 +02:00
Zdenek Kabelac
c717011f8e
tests: use LVM_SYSTEM_DIR for etc
...
Instead of hardcoding etc/ dir use $LVM_SYSTEM_DIR.
2017-03-10 19:33:01 +01:00
Heinz Mauelshagen
34caf83172
lvconvert: add infrastructure for RaidLV reshaping support
...
In order to support striped raid5/6/10 LV reshaping (change
of LV type, stripesize or number of legs), this patch
introduces the changes to call the reshaping infratructure
from lv_raid_convert().
Changes:
- add reshaping calls from lv_raid_convert()
- add command definitons for reshaping to tools/command-lines.in
- fix raid_rimage_extents()
- add 2 new test scripts lvconvert-raid-reshape-linear_to_striped.sh
and lvconvert-raid-reshape-striped_to_linear.sh to test
the linear <-> striped multi-step conversions
- add lvconvert-raid-reshape.sh reshaping tests
- enhance lvconvert-raid-takeover.sh with new raid10 tests
Related: rhbz834579
Related: rhbz1191935
Related: rhbz1191978
2017-02-24 05:20:58 +01:00
Zdenek Kabelac
aa72caca5a
tests: support zero_dev
...
When the test would need to try to write some large amount of data
we can give it 'zero' segments - for obvious reason such written data
can't be verified but in some test cases it doesn't really matter.
Usage follows 'error_dev' style.
For now test suite is not supporting any combination of
error/delay/zero segments so only 1 type could be used per PV.
2017-02-22 15:40:59 +01:00
Zdenek Kabelac
1c1ce2739e
tests: some debug code
...
Checking if --deferred would make it any faster - but it's as slow
as without this new optional flag anyway (4.10).
2017-02-21 09:40:21 +01:00
Zdenek Kabelac
2a65e2d49e
tests: ensure first call is version test
...
Check 'dmsetup version' is called before starting any more
advanced logic in $DM_DEV_DIR.
Call also replaces mkdir as it creates needed path with control node.
2017-02-21 09:38:49 +01:00
Zdenek Kabelac
d409fec079
tests: paralelize creation and teardown
...
To speedup initial construction and destruction of test devices
(mainly in case more then 1 is needed) call dmsetup
in parallel.
2017-02-21 00:52:05 +01:00
Heinz Mauelshagen
55eaabd118
lvreduce/lvresize: add ability to reduce the size of a RaidLV
...
- support shrinking of raid0/1/4/5/6/10 LVs
- enhance lvresize-raid.sh tests: add raid0* and raid10
- fix have_raid4 in aux.sh to allow lv_resize-raid.sh
and other scripts to test raid4
Resolves: rhbz1394048
2017-02-09 22:42:03 +01:00
Zdenek Kabelac
b92a9c3e1a
tests: slow down devs for raid more
...
Since we still experience occasiaonal test failure - slow
things down even more to avoid race.
Add support for 'quick' table changes between normal & delayed tables.
2017-01-05 15:54:14 +01:00
Zdenek Kabelac
e1943fc07f
tests: add device holding function
...
Hold device open with sleep and wait till sleep really opens
given devices.
2016-12-22 23:37:07 +01:00
Zdenek Kabelac
8c9c6ab660
tests: no left devices check for skipped test
2016-12-12 11:22:10 +01:00
Zdenek Kabelac
56e4e2ce2b
tests: track leaked devices in tests
...
When test calls teardown, no devices created by test are expected
to be left in table. Trap such orphans and make the test fail.
2016-12-11 23:24:19 +01:00
Zdenek Kabelac
3f6ade4b0d
tests: apostrof
2016-12-05 17:12:42 +01:00
Zdenek Kabelac
b38564b8dc
tests: do not set zero interval in aux lvm.conf
...
0 interval leads as of now to a busy loop with lvmetad and command.
Avoid testing this patological case.
TODO: Code should possibly translate zero interval into some small
sleep. With lvmpolld it's already 1/10s
2016-11-11 16:58:20 +01:00
Heinz Mauelshagen
a9651adc84
test: add raid4 checks to respective tests
...
Add missing checks for valid raid4 mapping to tests.
2016-10-28 21:54:10 +02:00
Zdenek Kabelac
fe437a6e7d
tests: notify dbus only for dbus test
2016-10-11 13:37:44 +02:00
Zdenek Kabelac
78e0fdb618
tests: correcting kernel version test
...
Debug force leaked in.
2016-09-20 22:50:43 +02:00
Zdenek Kabelac
994df22b60
tests: read messages instead of syslog
...
Since on those older system there is rather 'fight' over
syslog reading buffer - lets read output from /var/log/messages
intead.
2016-09-20 22:36:29 +02:00
Zdenek Kabelac
a9c2a62939
tests: kernel message for <3.5 kernels
...
Since /dev/kmsg is useless on kernel <3.5 user there automatically
syslog to obtain traces from kernel log buffer during test.
2016-09-20 17:09:46 +02:00
Zdenek Kabelac
561f773bb4
tests: add check grep_dmsetup
...
Add simple helper/wrapper check function to check result
of dmsetup call i.e.:
check grep_dmsetup table vg-lv "grep_expected"
check grep_dmsetup status vg-lv -v "grep_unexpected"
2016-09-19 14:00:56 +02:00
Zdenek Kabelac
629059ee84
tests: Revert "tests: not redirect strderr to stdout"
...
This reverts commit 5314d36f3d
.
Ok - some tests do look for 'stderr' output of 'not' commands.
So let's keep existing functionality.
2016-09-13 13:23:47 +02:00
Zdenek Kabelac
d34e315b8d
tests: use just single raid_leg_status
...
Simplify 'check' test actualy and correct printed tracing output
2016-09-13 12:25:36 +02:00
Zdenek Kabelac
5314d36f3d
tests: not redirect strderr to stdout
...
Errors are 'wanted' and expected in this case.
2016-09-13 12:25:06 +02:00
Zdenek Kabelac
5b55f9616d
tests: add check function for raid leg status
...
2 new check test functions:
raid_leg_status - to just compare
raid_leg_status_is - to compare and die when different
2016-09-12 16:51:53 +02:00
Tony Asleson
756f51eac8
test/lib/aux.sh: Remove incorrect comment
...
The dbus service needs to use the system bus. The test environment does
not allow work with session bus environment.
2016-08-29 15:26:56 -05:00
Tony Asleson
7c386bf4d4
test/lib/aux.sh: Remove '--udev' for lvmdbusd start
...
The service will start up with udev monitoring and disable it if lvm
starts calling ExternalEvent.
2016-08-29 15:26:56 -05:00
Heinz Mauelshagen
d2c3b23e6d
lvchange: Allow device specification when requesting a repair
...
'lvchange --resync LV' or 'lvchange --syncaction repair LV' request the
RAID layout specific parity blocks in raid4/5/6 to be recreated or the
mirrored blocks to be copied again from the master leg/copy for raid1/10,
thus not allowing a rebuild of a particular PV.
Introduce repeatable option '--[raid]rebuild PV' to allow to request
rebuilds of specific PVs in a RaidLV which are known to contain corrupt
data (e.g. rebuild a raid1 master leg).
Add test lvchange-rebuild-raid.sh to test/shell doing rebuild
variations on raid1/10 and 5; add aux function check_status_chars
to support the new test.
- Resolves rhbz1064592
2016-08-05 16:01:46 +02:00
Zdenek Kabelac
8756297a8d
tests: increase max lines for clvmd
...
Clvmd is a bit more verbose long time running process so
let it live with more logged lines.
Also fix typo in warn message from last commit.
2016-07-11 14:45:25 +02:00
Zdenek Kabelac
34c55d98ee
tests: add LVM_LOG_FILE_MAX_LINES
...
When logging to epoch files we would like to prevent creating too large
log files otherwise a spining command could fulfill available space
very easily and quickly.
Limit for to 100000 per command.
2016-07-11 12:43:28 +02:00
Zdenek Kabelac
2063d6bb06
tests: add line for mixing dmeventd with log
...
TODO: it might be better to log dmeventd messages with test output
just like we do with clvmd - maybe we will switch to this one
instead of extra DMEVENTD log file in future....
2016-07-04 17:41:09 +02:00
Zdenek Kabelac
b91390c211
tests: add mke2fs.conf
...
Add config for mkfs to get more predicatable results
when using mkfs across variety of distributions.
In future maybe use this per all tests as default.
For now user has to specify in a test MKE2FS_CONFIG envvar to use it.
2016-07-04 17:40:25 +02:00
Zdenek Kabelac
2981d1e798
tests: try to force remove higher minor first
...
When force removing thin-pool we loose 'real' access to hidden device,
and if such pool is in suspended state, any thin volume cannot be
dropped. It likely should be also checked by dmsetup, but meanwhile
apply simple logic - try to force remove first all higher minors first
with assumption we first create thin-pool and then thin volume
and there are usually not being released lower dm numbers to
get the order wrong.
2016-07-04 17:40:24 +02:00
Zdenek Kabelac
a67a5d4655
tests: aux prepare_thin_metadata
2016-06-23 14:59:29 +02:00
Zdenek Kabelac
d73a83e8cf
tests: extend prepare_loop
...
Treat args after size as 'extra' params for losetup.
2016-06-01 17:37:52 +02:00
Zdenek Kabelac
08aeea6a12
tests: do not use EPOCH for get wrapper
...
Avoid poluting filesystem with debug.log_DEBUG for get wrapper
2016-05-05 23:55:20 +02:00
Zdenek Kabelac
07c1694ff5
tests: update aux raid support
...
For raid1 use chunksize as bitmap-chunk specification.
Always enforce usage of bitmap - getting comparable outcome
as lvm2 raid support uses.
Add udev_wait after stopping md array - as in fact leg-device
are still in use by target even command has finished.
(mdadm --stop causes WATCH rule wakeup, and
ioctl(STOP_ARRAY) returns IMHO to early - it should finish
and fsync work on leg devices first).
2016-05-05 23:55:20 +02:00
Zdenek Kabelac
69c2f56005
tests: keep using [] for hidden volumes
...
Figure out which test needs to see hidden volumes without [].
But normally use [] for debug printing in tests.
It's confusing otherwise.
2016-04-22 01:14:56 +02:00
Zdenek Kabelac
11dd362454
tests: GLIBC decided to obsolete readdir_r
...
Keep the code compilatible without warnings on newer glibc.
2016-04-21 17:48:19 +02:00
Zdenek Kabelac
545b58542c
tests: still show systems stas when command has not produced debug.log file
...
When no debug.log* file is present whole stacktracking was skipped.
Add extra test the file exists to catch this case.
2016-04-21 00:34:01 +02:00
David Teigland
662090e358
tests: fix check_lvmlockd_test
2016-04-15 12:35:20 -05:00
Marian Csontos
e6768997e1
test: Fix testing of installed lvmdbusd
...
If lvmdbusd is missing expression triggers ERR trap instead of skipping
the test.
2016-04-08 16:26:25 +02:00
Zdenek Kabelac
307ab2c179
tests: do not break teardown on failing losetup
...
Ignore failing 'losetup -d' - i.e. device may have disappeared...
2016-04-06 11:54:37 +02:00
Marian Csontos
82d92009ae
test: Move bus configuration to prepare function
2016-03-23 12:27:34 +01:00
Marian Csontos
1b0775916b
test: Remove pidfile after killing the process
...
Though unlikely keeping files in place may result in random process
killed.
2016-03-23 12:25:18 +01:00
Marian Csontos
bb93a28bc1
test: Fix lvmdbusd tests to work with installed testsuite
2016-03-23 11:59:04 +01:00
Marian Csontos
c1d376b1ab
test: Fix checks to skip lvmdbusd tests
...
The executable is always present in the tree, need to check the
runtime dependencies.
2016-03-23 11:58:48 +01:00
Zdenek Kabelac
0d5b9deff2
tests: use own PID path for lvmetad checking
...
Do not try to check PID of running lvmetad and use own path.
2016-03-14 23:45:45 +01:00
Marian Csontos
e655ccb418
test: Add prepare_lvmdbusd
...
- Check for running lvmdbusd at start
- Add teardown for lvmdbusd
2016-03-09 10:58:21 +01:00
Marian Csontos
cb968ee875
test: Comment out incorrect lockd setup
2016-03-09 10:58:21 +01:00
Marian Csontos
2cf13b701a
test: Update kernels to skip thin-flags with
...
See ed5e5c38b5
2016-03-09 10:09:29 +01:00
David Teigland
ad9cbe2714
tests: direct control of lvm1 usage in tests
...
Using lvm1 metadata with lvmetad is not generally allowed,
but nothing has prevented creating new lvm1 metadata with
lvmetad (missing error checking in pvcreate/vgcreate.)
Various tests are using lvm1 with lvmetad and happen to
work because of the missing error checks.
This commit fixes the tests so they won't fail when the
lvm1/lvmetad error checking is fixed. A new variable
LVM_TEST_LVM1 is defined and is used in the scripts to
decide if lvm1 metadata should be tested. LVM_TEST_LVM1
is not defined when lvmetad is being tested, and the
combination of LVM_TEST_LVM1 and LVM_TEST_LVMETAD can
be used to verify the desired lvmetad+lvm1 behavior.
2016-03-03 14:43:19 -06:00
Peter Rajnoha
45c82260db
tests: add "get lvh_field" for "lvs -H"
2016-03-03 13:50:59 +01:00
Bryn M. Reeves
3dae416229
tests: add driver_at_least() to aux.sh
...
Add a function to test whether the running device-mapper driver
version is at least equal to some given version.
2016-02-25 16:40:58 +00:00
David Teigland
0236a34224
tests: updates for check_lvmlockd
...
Move the lvmlockd-related setup functions into aux.
For check_lvmlockd_test, start a new instance of
lvmlockd --test for each shell test.
2016-02-23 14:00:28 -06:00
David Teigland
f54253d396
tests: add SKIP_WITH_LVMLOCKD
...
to all tests that don't already used vgcreate $SHARED
2016-02-23 09:28:48 -06:00
David Teigland
161ae36363
test: add make check_lvmlockd_test
...
Which runs lvmlockd in --test mode, without
any lock manager.
Also make some adjustments to the check_lvmlockd
variations using the lock managds.
2016-02-22 09:36:35 -06:00
Zdenek Kabelac
ed5e5c38b5
tests: skip thin-flags test on 32bit el6 kernel
...
Until kernel is fixed, stop running test always hitting OOPS there.
2016-02-22 14:59:28 +01:00
Zdenek Kabelac
fcbef05aae
doc: change fsf address
...
Hmm rpmlint suggest fsf is using a different address these days,
so lets keep it up-to-date
2016-01-21 12:11:37 +01:00
Peter Rajnoha
04d1a8a5e4
cleanup: rename 'invisible devices' to 'hidden devices'
2016-01-13 16:43:25 +01:00
Peter Rajnoha
c66a83fdc3
tests: update tests to deal with invisible devices consistently
2016-01-13 13:55:24 +01:00
Zdenek Kabelac
8d86c5db03
tests: improve teardown
...
Do not try to execute vgremove, when test has left suspended devices.
2015-11-24 11:29:28 +01:00
Marian Csontos
6f002c29a5
tests: stacktrace on skip if message is empty
2015-11-19 12:18:33 +01:00
Marian Csontos
2a23550cf3
tests: add missing --skip option and S env.variable
2015-11-19 12:00:59 +01:00
Zdenek Kabelac
ab4773671b
tests: do not skip test when delay is missing
...
Rather then skipping whole test - just do not use it.
Failing tests that have required delay need to deal with reality
and shell either check for HAVE_DM_DELAY and skip portion
of test or using should when needed.
2015-11-09 12:21:17 +01:00
Zdenek Kabelac
6e1e0e8813
tests: using matching type
...
Compare time_t.
2015-10-27 16:00:10 +01:00
Zdenek Kabelac
76cff10a73
tests: avoid reading utils when skipping
...
Save even more CPU/time and avoid reading utils, when skipping test.
2015-10-27 16:00:09 +01:00
Zdenek Kabelac
a2dd1f6e19
tests: support skip flags
2015-10-26 23:57:47 +01:00
Zdenek Kabelac
c301cc5d38
tests: extend timer for 4 hours
...
Extend max time for test suite to 4 hours.
Also replace some 'non-ascii' chars from source files
and keep them plain ascii.
2015-10-26 23:57:47 +01:00
Zdenek Kabelac
2786cd27da
tests: enable raid test on 4.3
...
With kernel -rc6 it's passing our raid tests again - so enable
it in tests.
Note: related only to Fedora rawhide kernels...
2015-10-22 22:46:10 +02:00
Zdenek Kabelac
c4cc5eabfe
tests: start logging dmeventd output
...
Log dmeventd output from test - keep output logging in test
and avoid sending messages to syslog.
2015-10-13 16:02:21 +02:00
Zdenek Kabelac
8cc21354c2
tests: better regex check
...
Enhance check for matching prefix.
2015-10-13 16:02:20 +02:00
Zdenek Kabelac
2cb1f6eafe
tests: show status in in_sync
...
Make visible actual status line when returing 'raid' is in sync.
Useful to prove when kernel is wrong.
2015-10-13 16:02:20 +02:00
Zdenek Kabelac
277dd0aa7a
tests: check devices with prefix aren't in use
...
Avoid running tests, when prefix already exist in the system.
As prefix just uses PID number, we may hit a case for long
running tests, where devices from some previous runs were not
properly cleared away - detect this and fail early.
(Such machine should be inspected and fixed).
2015-10-06 15:23:55 +02:00
Marian Csontos
efcb3bbc8d
test: Fix timeout handling
...
Timeouts were considered as warnings only. Signalling failure is
preferred.
2015-10-01 13:19:29 +02:00
Zdenek Kabelac
7e63364529
tests: check for block device
...
Need to detect if block device exist.
2015-09-22 00:08:44 +02:00
Zdenek Kabelac
9b8c876293
tests: remove only existing loops
...
If loop device meanwhile dissapered, skip 'losetup -d' call.
2015-09-10 17:28:47 +02:00
Zdenek Kabelac
e94ab01940
tests: fix check lv_not_exist
...
Use 'not' to set proper 'expected return status'
so we do not 'leak' debug logs printed for failing case.
2015-09-10 17:28:47 +02:00
Zdenek Kabelac
596ec5c74b
tests: skip raid testing on 4.[1,2] fc24 kernels
...
Hopefull 4.3 will be fixed and test will be updated to let
raid test running again.
Meanwhile using md-raid may effectively kill kernel,
so leave at least other tests running.
2015-09-08 12:12:38 +02:00
David Teigland
e53758c5f6
tests: add lib function to test hidden LVs with lvs -a
2015-08-21 15:09:38 -05:00
Marian Csontos
b785a50da4
test: Help, default and relative paths in runner
...
Add help message.
Handle relative paths first.
Use `.` for OUTDIR instead of `/` if empty.
2015-07-17 20:36:50 +02:00
Marian Csontos
2bc0525e93
test: Fix hardcoded /usr/share in testsuite
2015-07-17 20:36:50 +02:00
Marian Csontos
47ac6a1a2e
test: Fix syntax error in prepare_devs
2015-07-10 16:15:15 +02:00
David Teigland
fe70b03de2
Add lvmlockd
2015-07-02 15:42:26 -05:00
Zdenek Kabelac
9c86d33e68
cleanup: avoid printing gcc warning
...
Casting to (void) with gcc doesn't remove unused_result warning.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25509
2015-06-23 11:06:02 +02:00
Zdenek Kabelac
778b66a719
tests: check for idle only for raid type
2015-05-27 11:59:10 +02:00
Zdenek Kabelac
d3abc25e76
tests: check for clmvd socket
...
A bit hacky since it expects PID_DIR == DEFAULT_RUN_DIR for now,
just to check whether it fixes startup clvmd sync problem.
2015-05-27 11:10:43 +02:00
Zdenek Kabelac
f0a4955eb1
tests: better check for array in sync
...
Update check for raid array being in sync - getting somewhat complex.
It's another way to fight with problems in:
https://bugzilla.redhat.com/show_bug.cgi?id=1210637
2015-05-27 11:10:43 +02:00
Zdenek Kabelac
c254743ef3
tests: drop debug print
2015-05-27 11:10:43 +02:00
Ondrej Kozina
f5199a1cbd
tests: remove forgotten set -v in aux
2015-05-11 19:08:19 +02:00
Zdenek Kabelac
3eb2d4d2ce
tests: typo in aux
...
Ooops editor grabbed q in test.
2015-05-11 16:14:24 +02:00
Zdenek Kabelac
fabc19b73c
tests: disable lvmetad and lvmpolld
...
Since now we enable those by default when compiled with those daemons,
explicitely disable them in tests when needed.
Alphabetically sort configurables.
2015-05-11 15:53:21 +02:00
Zdenek Kabelac
abcab54cca
tests: avoid clobering dmesg
...
Restore old harness access to /dev/kmsg.
2015-05-09 09:17:26 +02:00
Ondrej Kozina
e587b0677b
lvmpolld: Add standalone polldaemon.
...
See doc/lvmpolld_overview.txt
2015-05-09 00:59:18 +01:00
Zdenek Kabelac
53aff9322e
tests: better filter
...
Filter $PREFIX rather then just LVMTEST.
2015-05-08 21:00:10 +02:00
Zdenek Kabelac
7a5a4f952e
tests: play better with mdadm
...
Manage mdadm devices on older distros is a challange.
2015-05-04 13:11:41 +02:00
Zdenek Kabelac
3f05e662bb
tests: validate passed LVM_TEST_DEVDIR
...
Quit test early if passed LVM_TEST_DEVDIR dir does not exists.
2015-05-04 10:15:56 +02:00
Zdenek Kabelac
b09ac72624
tests: wait for scsi device to appear
...
Continue with test as soon as device appear (avoid 2s delay)
2015-05-04 10:14:52 +02:00
Zdenek Kabelac
abdfb1e75b
tests: configure use_lvmetad when needed
2015-05-01 22:49:38 +02:00
Zdenek Kabelac
9c7063ef89
tests: free -h is quite new option
...
Stay with -g and and ignore failure.
2015-05-01 15:40:04 +02:00
Zdenek Kabelac
79844b9066
tests: minor simplifications
...
minor updates
2015-05-01 15:07:59 +02:00
Zdenek Kabelac
fee09f0964
tests: disable usage of fuser
...
Seems we captured problems with debug.log overwrite,
so avoid quite expensive usage of fuser tool with each lvm command.
2015-05-01 15:07:59 +02:00
Zdenek Kabelac
4ce5b5fdf3
tests: run api tests from startup dir
2015-05-01 15:07:59 +02:00
Zdenek Kabelac
a3473e60db
tests: no lvmetad reload for debugless output
...
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"...
2015-05-01 15:07:58 +02:00
Zdenek Kabelac
dd4e6b4e7e
tests: lower version of dm-delay
...
Let's see what will break with lower version 1.1.
Also avoid repeated check of target version.
2015-05-01 15:07:58 +02:00
Zdenek Kabelac
16e8006eb0
tests: rename kill_tagged_processes
...
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.
2015-05-01 15:07:58 +02:00
Zdenek Kabelac
c18e969e30
tests: move conf preparing
...
If the test in the middle is restarting lvmetad
avoid conf regenerating.
2015-05-01 15:07:58 +02:00
Zdenek Kabelac
0eea780bce
tests: hide error message
...
Hide error about missing declare -A support.
2015-05-01 15:07:58 +02:00
Zdenek Kabelac
4daede06e5
tests: move kernel_at_least to aux
...
Hide func processing and reuse existing
version_at_least().
2015-05-01 15:07:58 +02:00
Zdenek Kabelac
f48a4c391c
tests: watch out for RAM size
...
Reduce mem-requirements on low memory boxes,
activate less volumes if machine is below 0.5G.
Also print mem size at test header.
2015-05-01 15:07:58 +02:00