| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
- logging is not controlled by "levels" but by "types"; types are
independent of each other... implementation of the usual "log level"
user-level semantics can be simply done on top; the immediate
application is enabling/disabling wire traffic logging independently
of other debug data, since the former is rather bulky and can easily
obscure almost everything else
- all logs go to "outlets", of which we currently have 2: syslog and
stderr; which "types" go to which "outlets" is entirely configurable
|
|
|
|
|
| |
Add 'in_sync' and 'wait_for_sync' to test and wait for synchronization
of a mirror or RAID logical volume.
|
|
|
|
| |
(i.e. an expected failure).
|
|
|
|
|
|
|
|
|
| |
Add make help target.
Add LVM_TEST_PARALLEL to support parallel runs of tests
Work around the problem the dmsetup table/info may return error
by using dmtable and dminfo function that will use 'should'.
(Error happens when some concurently running process removes table
entry while dmsetup command resolves table entries inside the loop.)
|
|
|
|
|
| |
Try to avoid start of dmeventd during vgremove if the code has any bug
inside.
|
|
|
|
|
|
|
|
|
| |
Make the teardown really usable - it will try down to remove all the left
devices even from previous test runs
(the only missing piece is probably proper mdadm teardown)
Add few more local vars
Try to setup PATH and LD_LIBRARY_PATH just once.
Try shorter sleeps.
|
|
|
|
| |
got changed improperly with large update patch.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Indent
Better shell usage
Function simplification
More usage of 'get' functions
Don't use valgrind tracing for check and get function (faster)
Update shell debugging (PS4, better stacktrace)
Support paths with spaces
Export SCRIPTNAME for external usage
Watch for dmeventd unexpectedly started during test
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Indent
Add valgrind support:
env LVM_TEST_VALGRIND={0123} (the higher level, more commands tested)
env LVM_TEST_CLVMD=1 runs clvmd within valgrind.
env VALGRIND script name executed for each lvm command (def. is valg).
Smarted teardown - should minimize occurence of left dev entries
(using dmsetup remove -f only as last resort)
sort removed devices by open count before actual removal
Use "" around string that may contain spaces.
Set log/verbose and activation/retry_deactivation to defined value.
Remove debug.log after successful lvm command (easier to check output).
|
|
|
|
|
| |
Not normally needed - lets' enable it only for test that
really needs it.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Currently we could not test special prefixes in our test suite.
As teardown will not find such device and basicaly busyloops here,
as at cannot remove such names.
This patch adds possibity to use:
vgcreate V_$vg1 $dev
Note: you still need to use $PREFIX somewhere in the name.
(And of course, it's really bad idea to use $PREFIX (=LVMTEST)
for normally used LVs)
The only purpose of this patch is to allow testing cluster with
special vg names that begins with V_ , P_....
|
|
|
|
|
|
|
| |
Support timestamping with harness - using VERBOSE=2
Fix also logging in several situation
(i.e. continue logging multiple test in VERBOSE mode,
do not coredump with empty output).
|
| |
|
| |
|
| |
|
|
|
|
| |
lvm.conf *and* lvmetad is running.
|
| |
|
|
|
|
| |
live VERBOSE output, not just the post-mortem dumps.
|
| |
|
| |
|
|
|
|
|
|
| |
Cleanup generated files from coverage testing.
Do not skip standard .o compilation for lib/not and lib/harness.
Make a bit longer string in harness to fit new shell/ in.
|
|
|
|
|
|
|
| |
So the test script may use a simple line like i.e.:
aux target_at_least dm-thin-pool 1 0 0 || skip
aux target_at_least snapshot-origin 1 6 || skip
|
| |
|
|
|
|
|
| |
Udev is tricky here - since with udev the node does not exists until
it resume happens. So we need to resume devices via its name.
|
|
|
|
| |
Skip trying to make link when real /dev dir is used for test.
|
|
|
|
|
|
|
|
|
| |
When running tests it might be useful to have an override option when
testing on real /dev and some broken system (i.e. Debian and its rules).
So one can use:
LVM_TEST_DEVDIR=/dev LVM_VERIFY_UDEV=1 make check
|
|
|
|
|
|
| |
When read in drain returned <0 value, terminal content has been trashed.
Remove unneeded memset() and use whole buffer.
Free readbuf before exit (valgrind).
|
|
|
|
|
|
|
|
|
|
|
|
| |
Test whether nodes could be used on given filesystem where TMP
dir is being used and skip teardown quicker in fail case.
(makes the problem quickly obvious if you try to such fs).
Skip teardown_dev if we have not created any devs yet.
and do not mkdir /dev/mapper dir when LVM_TEST_DEVDIR is set.
Drop this test from t-000-basic.sh.
|
|
|
|
| |
Since attrs were extended by 2 new fields update check functions.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
daemon/common code in a single libdaemon.a, which is completely private. This
is currently linked into the lvmetad binary, and will be linked into LVM (the
client part, since static linking only picks up only symbols that are actually
used). I have also added --enable/disable-lvmetad to ./configure; although the
current default is off, I expect this to be flipped to on shortly. There's no
LVM-side support yet, but when there is, even when built, it'll still need to
be enabled by an lvm.conf option.
|
|
|
|
|
|
|
|
|
|
|
| |
Add config option to enable crc checking of VG structures.
Currently it's disabled by default.
For the internal test-suite this check it is enabled.
Note: In the case the internal error is detected, debug build with
compile option DEBUG_ENFORCE_POOL_LOCKING helps to catch the source
of the problem.
|
|
|
|
|
| |
For some unknown reason (atm) udev settle takes longer time on recent rawhide.
To pass the test - inrease the settle timeout.
|
|
|
|
|
|
| |
dmsetup --checks
libdevmapper: dm_task_enable_checks()
lvm.conf: activation/checks=1
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
Since some test may leave devices in suspend mode which would require
carefull order of resume operation - use '-f' to replace them with
error targets
For disable_dev - when 'error' target is used for open count - treat
return code as ok (|| true) to avoid breaking futher test processing.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
as we need them later in the teardown process
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
operations like it used to (which will perform them on systems with
non-std dev dirs where test udev rules aren't installed).
|