Petr Rockai
cad4999faa
Disable the rather-dangerous prepare_scsi_debug_dev in the testsuite.
2010-04-13 07:02:14 +00:00
Petr Rockai
cd7d2bc5e4
For the testsuite, set a default polling interval to 0 in lvm.conf. Cuts down
...
testing time considerably.
2010-04-13 06:24:20 +00:00
Petr Rockai
09d11ca3d8
Don't forget to cd into $TESTDIR in test-utils.sh / prepare_testdir.
2010-04-07 21:38:01 +00:00
Petr Rockai
3103d5e2d9
Fix a mis-override of $PWD in test-utils.sh.
2010-04-07 21:19:20 +00:00
Petr Rockai
36bc6c3d19
Set ulimit -c to unlimited to allow coredumps to be collected and analysed in
...
the testsuite.
2010-04-07 16:04:22 +00:00
Petr Rockai
ed5686d981
Refactor the test utilities, dropping the legacy test-lib.sh and curtailing
...
lvm-utils.sh. Clears up lots of unused code, should have little observable
impact (it does change test directory layout slightly).
2010-04-07 14:46:26 +00:00
Alasdair Kergon
6d25082d65
Fix is_partitioned_dev not to attempt to reopen device.
2010-04-06 17:36:41 +00:00
Alasdair Kergon
3a615fa11f
Display PVs created during tests
2010-04-06 14:25:07 +00:00
Petr Rockai
7ca751c78d
Re-run failing tests with log/verbose=4 (-vvvv) to help with debugging.
2010-03-31 22:18:17 +00:00
Petr Rockai
5a4760792f
When a scsi_debug modprobe fails, skip the test instead of failing it.
2010-03-28 15:52:04 +00:00
Peter Rajnoha
2e08dbcb65
Export and use only valid cookie value in test suite.
2010-03-23 14:47:35 +00:00
Petr Rockai
e2e67c87f5
Skip locking_type 3 tests instead of failing when system-wide clvmd is running.
2010-03-18 09:27:39 +00:00
Petr Rockai
649c45078f
Add infrastructure for running the functional testsuite with locking_type set
...
to 3, using a local (singlenode) clvmd.
2010-03-18 09:19:30 +00:00
Mike Snitzer
d0af5def87
testsuite: get stacktrace if test drops core
...
Requires lvm be built with debugging (-g).
Also requires 'ulimit -c' be non-zero (to drop core file).
2010-03-17 14:55:28 +00:00
Petr Rockai
943c443426
In testsuite, catch also failures that happen in the middle of a pipeline.
2010-02-17 15:41:28 +00:00
Peter Rajnoha
be40fe90ae
Use udev transactions in testsuite.
2010-02-15 16:30:13 +00:00
Dave Wysochanski
b34f3ea13f
Remove unnecessary "dmsetup resume" after "dmsetup create".
...
It is not necessary to resume after a create since the create will
create the table and make it active.
2010-02-01 19:43:22 +00:00
Mike Snitzer
8e8f77f8f3
Add a common way to establish a scsi_debug-based 4K drive for use by an
...
LVM2 test (rather than using the traditional loop device).
prepare_scsi_debug_dev currently assumes exclussive access to the
scsi_debug module. Any script that tries to use prepare_scsi_debug_dev
when scsi_debug is unavailable or already loaded into the kernel will be
skipped.
t-topology-support.sh shows how prepare_scsi_debug_dev function can be
used repeatedly (within a script) to test LVM2 ontop of a ramdisk-based
SCSI device w/ arbitrary scsi_debug features.
2010-01-19 16:44:57 +00:00
Peter Rajnoha
0366ff6fb0
Enable udev_sync and udev_rules in lvm.conf by default while running tests.
2010-01-11 15:43:19 +00:00
Milan Broz
0c409a58ee
Explicitly use non-clustered vgcreate in test.
...
(So the tests can run under cluster locking and do not require
cluster mirror or snapshots.)
Add vgscan before block device readahead change
(flush long running process - clvmd - dev cache.)
2009-12-28 18:33:04 +00:00
Petr Rockai
99a304bc17
Optionally abort on internal errors (and leverage this option in the
...
testsuite). (This is showing a problem in the pvmove test for me, so I expect
the tests to start failing -- this needs to be fixed separately though.)
2009-11-30 17:17:11 +00:00
Petr Rockai
7aa72b6820
Add test for RHBZ 481793 (passing, thanks to vg_read changes checked in
...
previously).
2009-08-02 21:45:45 +00:00
Milan Broz
970f241c52
Check max_lv on only place and force the check only for new volume.
...
We can temporarily violate max_lv during mirror conversion etc.
(If the operation fails, orphan mirror images are visible to administrator
for manual remove for example. Not that this should ever happen:-)
Force limit only for lvcreate (and vg merge) command.
Patch also adds simple max_lv tests into testsuite
2009-05-13 21:29:10 +00:00
Dave Wysochanski
3a5d73beb0
Update test-utils to cope with ":" in device names and allow configurable names.
2009-05-13 19:18:47 +00:00
Petr Rockai
3802b91a4a
Avoid scanning non-PV devices in functional tests, otherwise lvconvert --repair
...
breaks for some reason -- possibly needs investagation, but this should fix it
in the meantime.
2009-04-24 08:00:48 +00:00
Petr Rockai
bf180e98f4
A C implementation of "not" that handles fatal signals rather more
...
intelligently than the shell implementation. C code by Jaroslav Stava.
I have done a rudimentary review and checked that tests still pass.
2009-01-12 18:45:44 +00:00
Petr Rockai
0ce31ccc15
Document current state of inconsistent metadata behaviour of a few commands in
...
a test. Should make changes to the !consistent bits of code easier. To be
expanded.
2009-01-09 10:16:57 +00:00
Zdenek Kabelac
f80091eea3
operate on test subdirectory instead on main /dev
2008-12-10 16:16:53 +00:00
Dave Wysochanski
8d2f8d7b6b
Fix test-utils.h for rhel4 backward compatability.
...
for losetup, break out of the loop when successful setup of loop device,
and only look at 7 loop devices (default loop module setting)
for blockdev, use old option if new one is not available
2008-12-05 05:03:23 +00:00
Petr Rockai
fe2b20db56
Use separate locking directory for each of the tests, as they never share a
...
volume group, or physical devices for that matter. Hopefully fixes occasional
test errors due to locking failures. Patch by jstava.
2008-11-10 12:36:23 +00:00
Petr Rockai
4c2389c80a
Fix typo.
2008-11-04 14:38:53 +00:00
Petr Rockai
4249331805
Re-indent test-utils.sh consistently, using tabs.
2008-10-14 19:48:01 +00:00
Petr Rockai
14ddc57fc3
Add a workaround for missing losetup -s
by jstava, and a print a stacktrace
...
on errors (also by jstava). Currently requires bash, a fix for that may come
later -- explicitly using bash to run tests in the meantime.
2008-10-06 16:55:30 +00:00
Petr Rockai
e011f1770c
Convert t-vgsplit-usage.sh to use the new test-utils.sh. Original conversion by
...
jstava. Lvm1 testing restored by mornfall.
2008-09-30 15:20:09 +00:00
Petr Rockai
bae6646b68
Import new test utilities and a test harness.
2008-09-29 15:59:19 +00:00