Alasdair Kergon
9a62f0d59a
And another test that should have been failing - normal allocation policy
...
does not put stripes on the same disk as each other!
2010-04-08 01:58:06 +00:00
Alasdair Kergon
1969deb742
another incorrect test that should have been failing before
2010-04-08 01:43:46 +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
4c68b2cb9c
Avoid spurious skips in the testsuite due to obsoleted
...
dmsetup_has_dm_devdir_support_.
2010-04-07 16:00:19 +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
Petr Rockai
e096611c96
In test harness, use fwrite(3) in place of write(2) to avoid mixing fd-level
...
and FILE-level IO on stdout.
2010-04-07 09:48:11 +00:00
Petr Rockai
c48d915f11
Keep the testsuite stats correct in spite of failed-test repetition.
2010-04-07 09:41:33 +00:00
Petr Rockai
065988dcd7
Move a fragile testcase toward the end of t-mirror-lvconvert.sh.
2010-04-06 23:04:45 +00:00
Petr Rockai
d2aa9707de
Put back the `lvconvert -m+1 --mirrorlog disk' test in t-lvconvert-mirror.sh.
2010-04-06 22:22:26 +00:00
Alasdair Kergon
f3b0e21c20
disable another broken check in a test
2010-04-06 18:13:43 +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
9891603994
Disable broken test.
2010-04-06 16:30:53 +00:00
Alasdair Kergon
3a615fa11f
Display PVs created during tests
2010-04-06 14:25:07 +00:00
Zdenek Kabelac
deb4382dd0
Using 'not' if the test 'should' fail.
2010-04-06 14:24:13 +00:00
Petr Rockai
a39d299df4
Do not pass NULL to setenv in the test harness.
2010-03-31 23:11:12 +00:00
Zdenek Kabelac
43e3c22ae4
Missed to convert T -> SCRIPTS
2010-03-31 23:05:20 +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
Jonathan Earl Brassow
3c4a088312
We only need one extent for the mirror log. So, when specifying
...
the devices on which to place the individual mirror parts, we can
specify the log devices as $dev:x instead of $dev:x-y.
2010-03-31 03:56:25 +00:00
Jonathan Earl Brassow
0f632bf218
For the mirror repair tests, we should use --ignoremonitoring because
...
we are running the repair manually. If we don't ignore, then dmeventd
and the manually run repair can collide. (We should still get clean
results in such a case, but it makes it harder to validate the test
results.)
2010-03-31 02:36:03 +00:00
Petr Rockai
a3a50148fb
Work around a problem in t-mirror-lvconvert: different PV order on the
...
commandline of lvconvert can lead to allocation failures even if enough space
is available. A separate testcase demonstrating the problem will follow.
2010-03-29 16:50:27 +00:00
Petr Rockai
eb256dbb6b
Enforce distinct-PV allocation of snapshot/origin pairs in vgsplit test.
2010-03-29 16:40:51 +00:00
Zdenek Kabelac
c9895ac01e
Fix also error code from clean:
...
And fix previous commit which missed test.
2010-03-29 15:53:11 +00:00
Zdenek Kabelac
1e070872a3
Oops, avoid returning errors from shell to makefile for builddir == srcdir
2010-03-29 15:39:25 +00:00
Zdenek Kabelac
051e55b12b
Split long line in Makefile and keep $abs_top_buildir as shell variable
...
within init.sh.
2010-03-29 14:19:42 +00:00
Zdenek Kabelac
b7be589ed0
Fixing another set of distclean problems where we left some generated files
...
in clvmd, dmevend, man, tests.
Don't include dependency files for clow and cscope.out targets
Improve dependency tracking for dmeventd and liblvm2cmd sources.
2010-03-29 14:17:59 +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
Jonathan Earl Brassow
7a369d3704
Add ability to create mirrored logs for mirror LVs.
...
This check-in enables the 'mirrored' log type. It can be specified
by using the '--mirrorlog' option as follows:
#> lvcreate -m1 --mirrorlog mirrored -L 5G -n lv vg
I've also included a couple updates to the testsuite. These updates
include tests for the new log type, and some fixes to some of the
*lvconvert* tests.
2010-03-26 22:15:43 +00:00
Zdenek Kabelac
d20956dcb1
Updates .so links for plugins
2010-03-26 13:21:28 +00:00
Alasdair Kergon
0aae84f9a2
more diagnostics
2010-03-25 12:16:17 +00:00
Alasdair Kergon
dc49eeb6a3
more diagnostics
2010-03-25 12:14:14 +00:00
Alasdair Kergon
c1a3bffdae
add debug mesg
2010-03-25 11:57:16 +00:00
Alasdair Kergon
1239365201
add debug mesgs and attempt to control which device is used for log as perhaps intended
2010-03-25 11:47:00 +00:00
Alasdair Kergon
a570dca703
add debug output and attempt to control which device gets log as intended perhaps
2010-03-25 11:42:17 +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
c7ee154ba9
Run both locking_type 1 and 3 tests (forgot to uncomment locking_type 1 before
...
last checkin).
2010-03-18 09:28:42 +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
Dave Wysochanski
a09aa49783
Add pvchange -u --all to testsuite.
...
This can be an interesting test case when using PVs with --metadatacopies 0.
2010-03-17 17:02:01 +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
Milan Broz
acb4b5e4de
Fix pvcreate device check.
...
If user try to vgcreate or vgextend non-existent VG,
these messages appears:
# vgcreate xxx /dev/xxx
Internal error: Volume Group xxx was not unlocked
Device /dev/xxx not found (or ignored by filtering).
Unable to add physical volume '/dev/xxx' to volume group 'xxx'.
Internal error: Attempt to unlock unlocked VG xxx.
(the same with existing VG and non-existing PV & vgextend)
# vgextend vg_test /dev/xxx
...
It is caused because code tries to "refresh" cache if
md filter is switched on using cache destroy.
But we can change filters and rescan even without this
machinery now, just use refresh_filters
(and reset md filter afterwards).
(Patch also discovers cache alias bug in vgsplit test,
fix it by using better filter line.)
2010-03-17 14:44:18 +00:00
Zdenek Kabelac
f30875dbc6
Pthread linking change
...
Create new substituted variable PTHREAD_LIBS and link this library
only with tools/libs which really needs it - i.e. dmeventd.
Check for libpthread only for builds with clvmd or dmeventd.
Remove variable LIB_PTHREAD
2010-03-04 11:21:05 +00:00
Dave Wysochanski
d8c4949f3e
Update lvm2app interactive unit test for vg/lv tags.
...
Simple test of vg/lv tag addition/deletion.
Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
2010-02-24 18:16:35 +00:00
Petr Rockai
2fbeba9c32
Relax a check on blkid exit value, which seems to be different in different
...
versions. Fixes a spurious test failure introduced with -o pipefail.
2010-02-22 14:47:55 +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
Dave Wysochanski
97d91b30e6
Add nightly test to cover vg/lv tags add/delete.
...
Simple nightly test coverage for adding / deleting lv/vg tags via
create and change functions.
Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
2010-02-16 17:49:18 +00:00
Dave Wysochanski
6371bcbe55
Add get_{pv|vg|lv}_field() nightly test helper functions.
...
Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
2010-02-16 17:48:46 +00:00
Peter Rajnoha
be40fe90ae
Use udev transactions in testsuite.
2010-02-15 16:30:13 +00:00
Dave Wysochanski
5ffe56d800
Update simple lvm2app unit test for new size apis.
...
Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
2010-02-14 03:23:07 +00:00