Zdenek Kabelac
bdf4e3e2f2
tests: do not leak in mem in destructor
2015-03-11 21:17:23 +01:00
Zdenek Kabelac
6cecf61cc3
tests: cleanup some cxx warnings
2015-03-11 11:02:35 +01:00
Zdenek Kabelac
3f7e62b340
tests: enable kmsg by default
...
By default we want to capture kernel log into test trace
(since when test crashes it could be problem to reproduce).
2015-03-11 11:02:35 +01:00
Zdenek Kabelac
db5166fbfa
tests: extend test timeout to 180sec
...
Some test could take more then minute (with slow udev and slow
emulation) - extend timeout to 180sec.
2015-03-11 11:02:35 +01:00
Zdenek Kabelac
85ef614b37
tests: slightly more efficient vgcreate
...
With larger set of devices it's faster to directly call
vgcreate on empty set of devices then going though separate
pvcreate call first.
2015-03-06 14:05:06 +01:00
Zdenek Kabelac
10b8d2a4ea
tests: hide uninteresting output
...
We don't care about diff output.
2015-02-17 15:54:21 +01:00
Zdenek Kabelac
d303d9973f
tests: BACKING_DEV
...
Reset BACKING_DEV when it's same as LOOP.
Reset only 64K - so just eats a bit less space from underlaying loop
devices...
2015-02-12 15:40:52 +01:00
Zdenek Kabelac
739b751046
tests: don't crash if checked string is shorter
...
Not really sure what is this testing - just avoid coredump if
the test cannot happen since the index would too high.
2015-02-12 15:38:51 +01:00
Zdenek Kabelac
65d95caad5
tests: respect LVM_TEST_DIR
...
Check for empty LVM_TEST_DIR
(regression from 48275c7836
)
2015-02-12 15:38:50 +01:00
Marian Csontos
0e9f3dba75
test: Fix missing return in new test harness.
2015-02-12 13:28:26 +01:00
Marian Csontos
a8b45b7a4c
test: Fix harness not building on RHEL5
2015-02-10 17:02:01 +01:00
Petr Rockai
4686b8cea5
test: Fix a segfault in the test runner.
2015-02-05 13:51:06 +01:00
Petr Rockai
45e2aee8f9
test: It is not an error for a test daemon to exit before teardown.
2015-02-05 13:51:06 +01:00
Petr Rockai
78ba413ed1
test: Remove spurious set -x in lvm-wrapper.
2015-02-05 13:51:06 +01:00
Petr Rockai
d8983d4bd4
test: Properly detect warnings from testcases.
2015-02-05 13:51:06 +01:00
Petr Rockai
c96e42006d
test: Only force an IO sync when the testcase has finished.
2015-02-05 13:51:06 +01:00
Petr Rockai
210a66fbf8
test: Make killing local (test) daemons more robust.
2015-02-05 13:51:06 +01:00
Petr Rockai
1f727f3f3d
test: Call $VALGRIND directly in lvm-wrapper.
2015-02-05 13:51:06 +01:00
Petr Rockai
5d833fd458
test: Add support for running LVM commands in tests through strace.
2015-02-05 13:50:34 +01:00
Petr Rockai
a6d006d9db
test: Make lvm-wrapper available in the installed testsuite, too.
2015-02-05 13:50:33 +01:00
Petr Rockai
c2b7642d4d
test: Fix prepare_scsi_debug_dev.
2015-02-05 13:47:21 +01:00
Petr Rockai
7a0aa25c28
test: Re-try with loopback if a backing device is too small.
2015-02-05 13:47:21 +01:00
Petr Rockai
c82c69bb56
test: Update brick-shelltest (configurable timeout, better banner, exit code).
2015-02-05 13:47:20 +01:00
Petr Rockai
7ed8fc8f7d
test: Update brick-shelltest.h.
2015-02-05 13:47:20 +01:00
Petr Rockai
19bb62e2ec
test: Update brick-shelltest, adding timestamps to logs.
2015-02-05 13:47:20 +01:00
Petr Rockai
8646b50aa9
test: Package up the test runner in a reusable C++ "brick".
2015-02-05 13:47:19 +01:00
Petr Rockai
eec99ffa8c
test: Implement --fatal-timeouts to allow a timely VM restart.
2015-02-05 13:47:19 +01:00
Petr Rockai
34e818042e
test: Make the runner's heartbeat more reliable.
2015-02-05 13:47:19 +01:00
Petr Rockai
f0d314bd6d
test: Disable lvmetad logging in lvconvert-{mirror,raid}*.
2015-02-05 13:47:19 +01:00
Petr Rockai
d488f03229
test: Implement --only option to runner.
2015-02-05 13:47:18 +01:00
Petr Rockai
a8eb702093
test: Fix loading of an append-mode journal.
2015-02-05 13:47:18 +01:00
Petr Rockai
d74c147223
test: Add a missing copyright/licence notice to journal.h.
2015-02-05 13:47:18 +01:00
Petr Rockai
10c992e861
test: Fix a precedence bug in the runner.
2015-02-05 13:47:18 +01:00
Petr Rockai
b3caba849d
test: Use append for journal maintenance instead of rename.
2015-02-05 13:47:18 +01:00
Petr Rockai
23b5a006d4
test: Implement specialised --batch output style w/ rusage stats.
2015-02-05 13:47:18 +01:00
Petr Rockai
a665b90623
test: Add time/rusage formatting to the runner.
2015-02-05 13:47:18 +01:00
Petr Rockai
3fbea6029d
test: Print a heartbeat file (every 20s) in the runner.
2015-02-05 13:47:18 +01:00
Petr Rockai
e8cc9254e0
test: Avoid sleeps in the runner monitoring loop.
2015-02-05 13:47:18 +01:00
Petr Rockai
48275c7836
test: Run in /tmp if LVM_TEST_DIR is unset.
2015-02-05 13:47:18 +01:00
Petr Rockai
246fecee27
test: Rename the --quiet option to --batch.
2015-02-05 13:47:18 +01:00
Petr Rockai
feb2c7bc47
test: Targets and sources can't have the same name if builddir == srcdir.
2015-02-05 13:47:18 +01:00
Petr Rockai
2bc76bcdab
test: Run the testcases chdir'd into --testdir.
2015-02-05 13:47:18 +01:00
Petr Rockai
efb3e7ca00
test: Improve IO handling in the runner.
2015-02-05 13:47:18 +01:00
Petr Rockai
8c8fb67fc2
test: Improve tracking of silence (stuck testcases) in the runner.
2015-02-05 13:47:18 +01:00
Petr Rockai
dc1d157878
test: Make the runner's journal more reliable.
2015-02-05 13:47:17 +01:00
Petr Rockai
d27833ba7c
test: Implement flavours in the runner.
2015-02-05 13:47:17 +01:00
Petr Rockai
f3bf89ebcc
test: Fix handling of envvars in the runner.
2015-02-05 13:47:17 +01:00
Petr Rockai
b4215f956f
test: Make it possible to run tests from an installed location.
2015-02-05 13:47:17 +01:00
Petr Rockai
5698953948
test: Use the new flavour setup files in lib/inittest.
2015-02-05 13:47:17 +01:00
Petr Rockai
9752ee8ed2
test: Fix IO sink destructors in the runner.
2015-02-05 13:47:17 +01:00
Petr Rockai
df27c64041
test: Add a buffer-backed IO sink (for interactive runs).
2015-02-05 13:47:17 +01:00
Petr Rockai
f53fcc0746
test: Implement a file-backed IO sink in the runner.
2015-02-05 13:47:17 +01:00
Petr Rockai
bdd0bc83eb
test: Make runner use bigger IO buffers, put them on stack.
2015-02-05 13:47:17 +01:00
Petr Rockai
7957fc4a44
test: Allow test devices backed by a permanent block device.
2015-02-05 13:47:17 +01:00
Petr Rockai
c5a120c443
test: Add new flavour definition files.
2015-02-05 13:47:17 +01:00
Petr Rockai
fa46385164
test: Write a results/list at the end of a test run.
2015-02-05 13:47:17 +01:00
Petr Rockai
bf16937869
test: Clean up fds properly in the runner.
2015-02-05 13:47:16 +01:00
Petr Rockai
d2dbc65f00
test: Implement journalling and --continue.
2015-02-05 13:47:16 +01:00
Petr Rockai
9dfbce0aa7
test: Split up the new runner into multiple files.
2015-02-05 13:47:16 +01:00
Petr Rockai
f476655fee
test: Import first draft of a new test runner.
2015-02-03 08:49:35 +01:00
Zdenek Kabelac
c75548300d
tests: prepare control node before clvmd
...
Make sure there is 'control' node before clvmd is started.
Somehow 'clvmd' is not allowed by selinux to create one.
TODO: Check is selinux policy is right here...
2014-11-19 23:22:52 +01:00
Zdenek Kabelac
740fcdae7d
tests: thin repair testing
...
More checks for thin related tools.
Add same functionality for cache related tools.
2014-11-17 00:41:33 +01:00
Zdenek Kabelac
3a1c609ac4
tests: reduce number of sync waiting
...
Lets assume faster systems, if we have too big raid arrays,
reduce them.
2014-11-17 00:34:44 +01:00
Zdenek Kabelac
776934aa08
tests: skip another older kernel from raid456
2014-11-17 00:32:49 +01:00
Zdenek Kabelac
21aa850b43
tests: add helper funcionality for using gdb
...
When there is need for using gdb within test suite
just prefix command with LVM_DBG and run test in
standard shell (for stdin).
2014-09-24 10:54:48 +02:00
Zdenek Kabelac
10a448eb2f
tests: update lv_no_exists
...
On successful exit path remove debug.log file.
2014-09-15 13:51:19 +02:00
Zdenek Kabelac
8d63d94d85
tests: still unusable kernel
2014-07-23 00:29:32 +02:00
Zdenek Kabelac
d1094ec4c6
tests: replace cat with $(<
...
Use shell built-in $(<
Print lvm.conf in use for test.
2014-07-02 10:45:44 +02:00
Zdenek Kabelac
6fb19f37fe
tests: wait for udev
...
Before test exits, wait for udev.
2014-06-17 13:43:04 +02:00
Zdenek Kabelac
5c5177c37c
tests: rename test to inittest
...
We are getting into problem when we use 'test' for commands like
should/not/...
So avoid overloading test name and change it to inittest.
2014-06-10 10:51:27 +02:00
Zdenek Kabelac
9f68aadb74
tests: make timeouts longer
...
Add more time for tests, since debug kernels are getting slower...
and we add more and more tests.
However many test should be shortened to avoid testing disk-perfomance
and focus on lvm functionality...
(Often we should probably test with inactive volumes when we check
metadata operation of lvm2)
We may need to support option for 'DEEP' longer testing.
Also something like LVM_TEST_TIMEOUT_FACTOR might be useful
though it would be much better if test suite could approximete
from system perfomance test lenght...
2014-06-10 10:51:26 +02:00
Petr Rockai
eda4c3a41d
test: Make it possible to enable/disable devices silently.
2014-06-08 21:10:47 +02:00
Zdenek Kabelac
77d4e317a4
tests: use manglename none for dmsetup
2014-06-05 17:49:34 +02:00
Zdenek Kabelac
9196942312
tests: add get_devs function
...
Instead of rereading device list via cat - keep
the list in bash array. (Also solves problem
with spaces in device path)
Move usage of "$path" out of lvm shell usage,
since we don't support such thing there...
2014-06-05 17:49:34 +02:00
Zdenek Kabelac
223bdc5eb2
tests: use shell arrays to keep device names
...
Better preserving spaces in device path name,
though admitely rest of test suite need
more repairs...
2014-06-05 17:49:34 +02:00
Zdenek Kabelac
21db25b3c4
tests: fix use of double apostrophes in get
...
Need to put "" around parameters.
2014-06-05 17:49:34 +02:00
Zdenek Kabelac
b0ff3359f2
tests: update aux disable_dev
...
disable_dev can't use transaction - since it may lead occasionaly to
weird error - example could be nomda-missing.sh test case.
Here occasionaly device instead of being removed was left as
error device and testing different code path (which is unfortunatelly
buggy)
When we want to test 'error' device - 'aux error_dev()' should be used.
2014-05-26 22:57:28 +02:00
Zdenek Kabelac
b7476e91ef
tests: add unusable kernel for raid5 testing
2014-05-23 23:35:42 +02:00
Zdenek Kabelac
1208e92b34
tests: add check vg_attr_bit
...
Similar function like 'check lv_attr_bit'
2014-05-22 12:01:44 +02:00
Zdenek Kabelac
9c4953df1b
tests: restore disable_dev behavior
...
Notify needs to go with major:minor before device disappears.
2014-05-21 16:59:38 +02:00
Zdenek Kabelac
c34c33d9ba
tests: notify loop needs maj:min
...
Missed in previous commit.
2014-05-21 12:00:32 +02:00
Zdenek Kabelac
cbdb8fa589
tests: notify lvmetad after udev transation
...
Delay udev notification after the point udev transaction
is finished - since otherwise some device may still
be found missing until udev transaction is finished.
2014-05-21 11:43:24 +02:00
Zdenek Kabelac
2e9792121f
tests: add have_cache and have_raid
...
Need to be aware of build options, when system would be
configure without raid or cache support
2014-05-20 21:50:30 +02:00
Alasdair G Kergon
0ee9d59b48
test: configurable write timeout
...
Hard-coded 3 minutes is far too short when investigating problems.
2014-04-24 22:44:22 +01:00
Zdenek Kabelac
22037ee328
tests: fix creation of scsi debug
...
Use proper '||' test form to avoid unwanted test abort
on failure.
(i.e. running failing test profiles-thin.sh on a real /dev)
2014-04-24 14:42:27 +02:00
Zdenek Kabelac
4d48577ab9
tests: implement lv_attr_bit
...
Add easy check function for cheking lv_attr bits
2014-04-14 13:02:28 +02:00
Peter Rajnoha
504c328e3d
tests: add profiles-thin and prepare_profiles helper fn
2014-04-01 15:52:54 +02:00
Zdenek Kabelac
5b44a036b1
tests: support invalid and fail results
...
Allow more detailed check for failing exit code:
invalid - expects 3
fail - expects 5
2014-03-28 00:41:19 +01:00
Zdenek Kabelac
fb471a372d
tests: remove also 3.14 fc21 kernels
2014-03-26 00:04:59 +01:00
Zdenek Kabelac
c0c55846b0
tests: wait for clvmd.pid file
...
Just like with dmeventd and lvmetad.
Do few indent changes around.
2014-03-21 22:29:28 +01:00
Zdenek Kabelac
81166a84be
tests: more fedora kernels unusable for testing raid456
2014-03-18 10:28:08 +01:00
Zdenek Kabelac
31b1d06ddd
tests: replace skip_if_mirror_recovery_broken
...
Use mirror_recovery_works instead with easier to follow logic.
2014-03-17 16:33:29 +01:00
Zdenek Kabelac
19fd6040c2
tests: quotes for LVM_TEST vars
2014-03-17 16:32:29 +01:00
Zdenek Kabelac
1a0fea104b
tests: put test envvar into braces
...
Ensure we not fail on space.
2014-03-17 14:31:45 +01:00
Zdenek Kabelac
7d3fa6fc32
tests: skip more Fedora kernels for raid456
2014-03-17 14:31:44 +01:00
Zdenek Kabelac
58e812a13f
tests: use DMEVENTD_PIDFILE
...
Test for compiled-in pidfile location
(so we are not based on assumption /var/run or /run link exists)
2014-03-14 11:16:24 +01:00
Zdenek Kabelac
900cb6717b
tests: quick update of location of pid file
...
Until better fix is put in - replace with /run.
2014-03-14 10:40:48 +01:00
Zdenek Kabelac
8b14ebb2f1
tests: another kernel with unusable kmem_check
2014-03-12 16:17:36 +01:00
Zdenek Kabelac
5dc9402774
tests: dmeventd valgrind testing
2014-03-10 12:24:11 +01:00
Zdenek Kabelac
c7262d5b38
tests: aux adds kill_sleep_kill_
...
Move common code to subfunction
2014-03-10 12:24:11 +01:00
Zdenek Kabelac
1c18fc42ec
tests: drop unused make_ioerror
2014-03-10 12:24:11 +01:00
Zdenek Kabelac
6cc75d1497
tests: workaround bash bug
...
Seems new bash4.3 is somewhat buggy
https://bugzilla.redhat.com/show_bug.cgi?id=1074202
Put in cheap workaround for now.
2014-03-10 12:24:10 +01:00
Zdenek Kabelac
4eed2c8142
tests: skip valgrind testing when assigned to 0
...
When LVM_VALGRIND_CLVMD/LVMETAD is set to 0 skip testing.
(Proviosly any value caused to run valgrind testing,
so now '0' skips testing))
2014-03-10 12:24:10 +01:00
Zdenek Kabelac
41e1b12e03
tests: skip another kernel
...
This kernel has still buggy kmem_cache debugging so skip it for raid456.
2014-03-10 12:24:10 +01:00
Peter Rajnoha
cfc9e178bf
tests: fix name-mangling test and remove udev transaction in dmsetup wrapper
2014-03-06 14:46:50 +01:00
Zdenek Kabelac
08aedff1fc
tests: testing usable of /dev/kmsg
...
It's not so easy to recongnize unusable /dev/kmsg
Reorder the code in a way if the first regular read of /dev/kmsg
fail, fallback to klogctl interface.
Call drain_dmesg also for the case there is no user log output.
2014-03-04 17:54:33 +01:00
Zdenek Kabelac
9a99cb8c79
tests: hide error message
...
Make the logging looks normal for this case
2014-03-04 16:41:07 +01:00
Zdenek Kabelac
a01e2ff81c
tests: print kernel version
2014-03-04 16:27:00 +01:00
Zdenek Kabelac
b47bdb4dca
tests: check readability of /dev/kmsg
...
Looks like there are systems with /dev/kmsg device,
which is however not readable
Fix check for result value of klogctl and use only positive value.
2014-03-04 16:27:00 +01:00
Zdenek Kabelac
30810de1b0
tests: reinstantiate support for klogctl
...
Add a bit more complexity here - Switch to use /dev/kmsg
which has been introduced in 3.5 kernels and could run without
lossing lines from /proc/kmsg.
On older systems user may set env var LVM_TEST_CAN_CLOBBER_DMESG=1
to get kernel messages via klogctl() call (which deletes dmesg buffer)
otherwise no logging of kernel messages is provided.
2014-03-04 15:18:19 +01:00
Petr Rockai
cb77bdc253
test: Make teardown (more) resistant to funny DM device names.
2014-03-04 11:16:00 +01:00
Zdenek Kabelac
d739e16d85
tests: restore .txt suffix
2014-03-03 19:30:48 +01:00
Zdenek Kabelac
719261a33a
tests: speedup kmsg processing
...
Since there could be multiple readers of kmsg (test & journald) it needs
to be fast, to capture things like sysrq trace.
But to capture whole output it would need to prioritize reading of kmsg,
thus we would first log kernel messages and followed by command output.
As a trade-off always log command output first and use large drain
buffer so is captures most of messages, but occasionaly miss some
lines.
2014-03-03 19:30:47 +01:00
Zdenek Kabelac
6df716332c
tests: detect nc or socat
...
Since shell is not in -o pipefail mode here,
we need to generate separate failure ahead of tee.
2014-03-02 21:48:28 +01:00
Zdenek Kabelac
6c377f5b3c
tests: restore usage of reading kmsg
...
Basically reverts commit af8580d756
.
"test: Use klogctl in the harness instead of reading /var/log/messages."
Problem is - this interface clears dmesg buffer
(just like call of dmesg -c)
Thus after running lvm2 test suitedmesg is empty - while all the
messages are usually logged in the journal/message, it's still not nice to
clear dmesg buffer.
It's not a pure revert, but switch to use /proc/kmsg directly instead of
reading /var/log/messages.
2014-03-02 21:30:26 +01:00
Zdenek Kabelac
33d69162e4
tests: split raid test
...
Use separate test file for raid456
Change test for broken kernel which has broken raid456 support.
2014-03-02 21:27:26 +01:00
Zdenek Kabelac
75b5855ca1
tests: report selinux mode
2014-03-02 21:27:26 +01:00
Petr Rockai
3b958984f1
test: Properly synchronize direct dmsetup calls.
2014-03-02 20:53:43 +01:00
Petr Rockai
6733ac86d7
test: Fix the failing branch in aux lvmetad_talk.
2014-02-28 23:30:17 +01:00
Petr Rockai
f3b9fe6024
test: Add lvmetad_talk and lvmetad_dump to aux.
2014-02-28 11:23:53 +01:00
Petr Rockai
8e814eb899
test: Fix notify_lvmetad for symlinked devices.
2014-02-28 11:23:53 +01:00
Zdenek Kabelac
f8780e2d79
tests: drop mirror from filter
2014-02-24 21:13:36 +01:00
Jonathan Brassow
fdb7356d6a
test: Add cache[pool] support to lv_tree_devices_ test suite function.
2014-02-24 10:40:00 -06:00
Zdenek Kabelac
0be6caba6e
tests: drop more debug.log
...
Avoid login result from last lvm command when target_at_least fails.
2014-02-17 22:25:53 +01:00
Zdenek Kabelac
177db48c11
tests: add check lv_not_exists
2014-02-11 19:00:06 +01:00
Zdenek Kabelac
4ed831e7ef
tests: remove debug.log in enable_dev
...
In aux functions we may drop debug log from
last running lvm command - so we do not
get debug log from properly executed command,
when we fail here.
2014-02-11 19:00:06 +01:00
Zdenek Kabelac
ef557b8091
tests: update test
...
Remove some unneeded traces and outputs.
2014-02-04 14:49:38 +01:00
Zdenek Kabelac
f18ee04fab
lvmetad: respect LVM_LVMETAD_PIDFILE settings in lvm
...
Test LVM_LVMETAD_PIDFILE for pid for lvm command.
Fix WHATS_NEW envvar name usage
Fix init order in prepare_lvmetad to respect set vars
and avoid clash with system settings.
Update test to really test the 'is running' message.
2014-01-24 15:59:38 +01:00
Petr Rockai
e892ac7398
test: Increase the overall timeout to 3 hours.
2014-01-08 17:11:32 +01:00
Petr Rockai
d52c4154c5
test: Time out the entire testsuite after an hour.
2014-01-08 17:11:32 +01:00
Petr Rockai
af8580d756
test: Use klogctl in the harness instead of reading /var/log/messages.
2014-01-08 17:11:32 +01:00
Zdenek Kabelac
2b7f7d0ab4
tests: use compiled lvm for clvmd executed lvs
2014-01-08 13:52:05 +01:00
Zdenek Kabelac
434d95cef3
tests: clear inactive table before resuming in teardown
2013-12-18 10:40:36 +01:00
Zdenek Kabelac
904a02335f
tests: hide expected error message
...
Test typically enables disabled device - so it mostly expects
error target will be reloaded here - thus hide confusing message.
2013-12-17 14:08:54 +01:00
Petr Rockai
97fbbbc150
test: Make the harness optionally less verbose (QUIET=1).
2013-12-15 16:44:47 +01:00
Zdenek Kabelac
c9fe05eee2
tests: count interrupted test as failed
2013-12-10 11:21:40 +01:00
Alasdair G Kergon
16eab3ec08
config: shorten new sig wiping option string
...
Rename wipe_signatures_on_new_logical_volumes_when_zeroing to
wipe_signatures_when_zeroing_new_lvs.
2013-12-09 09:35:47 +00:00
Zdenek Kabelac
b494881e68
tests: sysrq only when stuck with no output.
...
If we are stuck in user for too long without output,
grab kernel stack traces.
If we just produce too many lines of output, it's
not probably kernel related bug.
2013-12-05 12:40:47 +01:00
Zdenek Kabelac
aa75698a17
tests: harness prints debug.log
...
When the test is interrupted because debug.log has got to big,
and the test doesn't react on SIGINT - and needs to be only
killed with SIGKILL - it's still valuable to print at least
a portion of this debug.log (currently 4MB).
LVM_TEST_UNLIMITED could be set to avoid this limitation
(i.e. when busy-looping lvm command needs to be running
for gdb attachment)
2013-12-05 11:18:15 +01:00
Zdenek Kabelac
76ca82df82
tests: drop RUN... already have this var elsewhere
2013-12-04 21:37:33 +01:00
Zdenek Kabelac
d9461ae89b
tests: replace built-in popen
...
It seems some older bashes have problems to properly execute
both pipes - so replace this code with separate temporary files.
2013-12-04 19:50:53 +01:00
Zdenek Kabelac
e06cfd7437
tests: reuse timeout code for too long debug.log
...
Jump to the same code used for timeout when no output
is made for long time.
Increase the allowed debug.log size to 32MB.
2013-12-04 19:48:29 +01:00
Zdenek Kabelac
7c6b14b74f
tests: monitor debug.log size
...
Show testing directory from test and monitor it in
harness - so when it gets too big - kill test.
2013-12-04 17:10:31 +01:00
Alasdair G Kergon
84394c0219
lvmetad: extend socket/pid file handling
...
Make it easier to run a live lvmetad in debugging mode and
to avoid conflicts if multiple test instances need to be run
alongside a live one.
No longer require -s when -f is used: use built-in default.
Add -p to lvmetad to specify the pid file.
No longer disable pidfile if -f used to run in foreground.
If specified socket file appears to be genuine but stale, remove it
before use.
On error, only remove lvmetad socket file if created by the same
process. (Previous code removes socket even while a running instance
is using it!)
2013-11-29 20:56:29 +00:00
Peter Rajnoha
c24b558c8c
tests: initialize signature wiping
...
Do not use signature wiping for newly created LVs in tests - we're
reusing the devs in tests and such detection could just interfere
inappropriately. We'd need to modify all tests to anwer the prompt
whether any signature found should be removed or not or we'd need
to use "-y" option for all lvcreates in tests. It's better to disable
this feature then and let's do a separate test to test this signature
wiping functionality.
2013-11-28 13:27:52 +01:00
Zdenek Kabelac
47110f7e27
tests: add WARNED test to final list
...
WARNED result should not be forgotten - it's supposed
to be fixed...
keep enum alphabetically sorted
2013-11-22 21:00:56 +01:00
Zdenek Kabelac
b0b061cdbc
tests: skip raid test on 3.12.0
...
3.12.0 kernel prevents raid test to be usable,
leaving unremovable devices in table.
This needs to be fixed ASAP, meanwhile disable test to make
test machines at least usable.
2013-11-19 11:49:33 +01:00
Zdenek Kabelac
fe609141a8
tests: on 32bit test with <16T devs
...
Add 'can_use_16T' to detect systems where we could
safely use 16T devices without causing system deadlocks.
16T size leads on those to endless loops in udevd
- it calls blkid which tries cached read from such device
- this ends in endless loop.
Related problems:
https://bugzilla.redhat.com/show_bug.cgi?id=1015028
2013-11-19 10:55:14 +01:00
Zdenek Kabelac
9f406ce252
tests: drop settle for old systems
...
Reverts previously added udevsettle call.
Seems to be unrelated, while udev on old system may take over 10
minutes, to finish it's very slow and CPU intensive work, it doesn't
interact directly with created device, only access /dev/mapper/control
node via dmsetup, so the device is ocasionaly blocked by something else.
2013-10-17 22:54:12 +02:00
Zdenek Kabelac
7f4452a41e
tests: older losetup allows only single device name
...
Stay compatible with only 1 arg for losetup -d
2013-10-17 17:52:42 +02:00