1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00
Commit Graph

2478 Commits

Author SHA1 Message Date
Zdenek Kabelac
76624d1a8c makefiles: ensure test dir can run unit-test 2018-12-04 14:33:38 -06:00
Zdenek Kabelac
8b13867548 tests: extend sleep 2018-12-04 14:33:38 -06:00
Zdenek Kabelac
cc7169df30 makefiles: clean unit-test 2018-12-04 14:33:38 -06:00
Zdenek Kabelac
1781344b6b tests: drop use_lvmetad from unit test 2018-12-04 14:33:38 -06:00
Zdenek Kabelac
e5ae9b0d2f tests: reduce memory footprint 2018-12-04 14:33:38 -06:00
Zdenek Kabelac
bb8e22d9cc tests: updates 2018-12-04 14:33:38 -06:00
Zdenek Kabelac
9a9cf22aa0 tests: requires at least 2 iterations 2018-12-04 14:33:38 -06:00
Zdenek Kabelac
0172a76622 tests: use select with dmsetup
Use 'dmsetup -S' to greatly simplify such loops.
2018-12-04 14:33:38 -06:00
Zdenek Kabelac
b252c20eb9 tests: add mising udev_wait
mdadm does not handle udev waiting so it may exit earlier,
while devices are still 'running'.
2018-12-04 14:33:38 -06:00
Zdenek Kabelac
224bdce3eb makefiles: improving cleaning rules 2018-12-04 14:33:37 -06:00
Zdenek Kabelac
ae9cadd535 makefiles: avoid dependency calcs for base dir
For some targets we do not want to generate dependencies.
Also add note about usage of such Makefile - it might be
possibly better to rename it to different filename to avoid
any confusion.
2018-12-04 14:33:37 -06:00
Zdenek Kabelac
325d09a60e makefiles: updates for less verbosity 2018-12-04 14:33:37 -06:00
Zdenek Kabelac
a4d72c9cb2 tests: update required raid target
For embeded reshaping operation require higher driver version.
(otherwise we get:

Converting vg/LV1 from raid6 (same as raid6_zr) is directly possible to the following layouts:
 raid6_nc
 raid6_nr
 raid6_la_6
 raid6_ls_6
 raid6_ra_6
 raid6_rs_6
 raid6_n_6
2018-12-04 14:33:37 -06:00
Zdenek Kabelac
b43c8a81cb tests: missing copyright 2018-12-04 14:33:37 -06:00
Zdenek Kabelac
5a057cb85b tests: generate slightly less volumes 2018-12-04 14:33:37 -06:00
Zdenek Kabelac
674eaa13ff tests: speed-up testing full of lvm2 metadata
Generate faster full metadata condition.

FIXME: vgremove is extremaly slow with larger set of LVs.
2018-12-04 14:33:37 -06:00
Zdenek Kabelac
63b4b38b8b tests: update parm for new kernel 2018-12-04 14:33:37 -06:00
Zdenek Kabelac
8955c1b4e5 tests: skip part of test
On kernel 4.8 this test piece oopses machine (fc23).
2018-12-04 14:33:37 -06:00
Zdenek Kabelac
d379754b44 tests: create whole path with mkdir
Create also 'lvm' upper this if such one is missing in /run dir
and use '-p' with mkdir.
2018-12-04 14:33:37 -06:00
Zdenek Kabelac
9a6bcbe195 tests: skip portion of test for lvmpolld
lvmpolld ATM is not desingned to preserve interval checking
in the same way the 'lvconvert' tool is doing - so the passed
'-i 40' is not respected and lvmpolld autonomously checks
state of conversion and updates lvm2 metadata and dm tables
when needed.

So skip portion of test that relayed on this and preserve this logic
only for command line invocation and forking of polling process
where the interval of checking is under full control.
2018-12-04 14:33:37 -06:00
Zdenek Kabelac
30d8077f7a tests: skip when gcore from gdb package is missing
gcore is needed for gathering all userspace mappings.
2018-12-04 14:33:37 -06:00
Zdenek Kabelac
ca6bb353c9 tests: prefer internal header
Although we primarily want to check externally used libdevmapper
library,   out internal  all.h is still keeping all symbols
as the original library has - so for simpler compilation keep
using this private copy for defining needed symbols.
2018-12-04 14:33:37 -06:00
Zdenek Kabelac
8f0364ccd2 tests: correcting header file enclosure
Use "" for internal header file.
2018-12-04 14:33:37 -06:00
Zdenek Kabelac
e52b5f9ab2 tests: still more libs needs 2018-12-04 14:33:37 -06:00
Zdenek Kabelac
b2c52f1731 tests: makefile fixes
New tests needs more options and libs.
2018-12-04 14:33:37 -06:00
Zdenek Kabelac
74d77bfaaa tests: drop unwanted backup 2018-12-04 14:33:37 -06:00
Zdenek Kabelac
3931441190 tests: raise minsize of xfs
mkfs.xfs now needs at least ~1600...
2018-12-04 14:33:37 -06:00
Zdenek Kabelac
977d33c1cb tests: extend 2018-12-04 14:33:37 -06:00
Zdenek Kabelac
60c4802bc3 tests: secure data erase 2018-12-04 14:33:37 -06:00
Zdenek Kabelac
3ac106df6e tests: add wait loop
Add a little wait loop - since lvconvert started background process
and we need to wait till this bg task initiate its work -
adding ~1s loop should give reasonable enough time to start mirroring.
2018-12-04 14:33:36 -06:00
Zdenek Kabelac
499923f0f6 tests: keep results configurable 2018-12-04 14:33:36 -06:00
Zdenek Kabelac
29c6f2874b tests: fix shell quoting 2018-12-04 14:33:36 -06:00
Zdenek Kabelac
9aca3a1d67 tests: add wait for udev
Since the test is currently directly working with live directory,
which can be getting updates from system's udev - add wait
for settling so removal of all known PVs happens after that.
But still this has major influce on behavior of running system,
so the test should never be executed on a user used box.
2018-12-04 14:33:36 -06:00
David Teigland
7498f83833 tests: add new test for lvm on md devices 2018-10-18 13:06:42 -05:00
Zdenek Kabelac
9e1ee07d69 tests: missed char in list
'=' also doesn't belong to property name.
2018-10-17 10:41:25 +02:00
Zdenek Kabelac
015231b11f tests: better support for /var/run 2018-10-16 23:49:35 +02:00
Zdenek Kabelac
32f1afbe36 tests: add raid target presence check 2018-10-16 23:49:35 +02:00
Zdenek Kabelac
69bebfd958 tests: fix conf generation with older shells
For shells without array support, fix selecting bug,
and require keyword to end with some 'space' char,
so  'scan' is not matched with  'scan_var'.
2018-10-16 23:49:35 +02:00
Zdenek Kabelac
f1ac72c848 tests: properly enforce v1
Since with smq policy we can still pick format v2 - enforce
format v1 explicitely.
2018-10-16 21:56:00 +02:00
Zdenek Kabelac
4db228b907 tests: timing without /usr/bin/time
Use just 'date' so the 'time' package doesn't need to be installed
just for this purpose.
2018-10-16 21:56:00 +02:00
Zdenek Kabelac
c15ac326cc tests: fix tested targeted
Fix cut&paste bug.
2018-10-16 21:56:00 +02:00
Zdenek Kabelac
5c36ad06a1 tests: check activation of many thin-pool
Artifitical testing of monitoring of many thin-pools with low number
of resources in use (need only few pools to actually hit the race).
2018-10-10 09:54:08 +02:00
Joe Thornber
8424655af9 Merge branch '2018-09-13-radix-tree-bug' 2018-09-20 14:43:51 +01:00
Joe Thornber
ba6d8a3195 [unit-test/radix-tree] Add a huge test case
Derived from the logs that dct gave me.
2018-09-20 14:38:34 +01:00
Heinz Mauelshagen
945d13541e tests: fix lvconvert-raid-reshape-linear_to_striped-single-type.sh
Add errouneously removed VG creation back in.
2018-09-19 14:53:41 +02:00
David Teigland
17bd91e33e tests: add metadata-full 2018-09-11 12:05:46 -05:00
Heinz Mauelshagen
3832329a6b tests: bump dm-raid version to 1.14.0
Commit 989626926c
introduced 2 new tests
lvconvert-raid-takeover-linear_to_raid4.sh and
lvconvert-raid-takeover-raid4_to_linear.sh
which involve raid reshaping.

Bump the checked dm-raid target version to 1.14.0
which has reshape kernel fixes to avoid test suite
runs to hang.
2018-09-11 16:05:48 +02:00
Heinz Mauelshagen
df67b1da4d tests: adjust target version to enable reshape tests
Bump target version to 1.14.0 which contains fixes
for reshape deadlock/corruption to allow tests to
run once the respective fixes show up in kernels.

Remove now superfluous multi-core checks.

Resolves: rhbz1501145
Related: rhbz1514539
Related: rhbz1586123
Related: rhbz1613039
2018-09-11 15:53:25 +02:00
David Teigland
07d2794a16 tests: remove lvmetad variation 2018-09-10 14:26:57 -05:00
David Teigland
b070c14a8b tests: drop lvmetad parts of system_id test 2018-09-10 14:08:27 -05:00