Zdenek Kabelac
d6833cc7fa
Skip sysinit test for cluster
...
Add #bin/bash to utils.sh
and update fsadm test to current version of aux script
2011-01-31 22:05:30 +00:00
Zdenek Kabelac
116cbc267c
Fix udev synchronization for no-locking mode
...
Instead of implicitly syncing udev operation in clustered and
file locking code - call synchronization directly in lock_vol() when
the operation unlocks VG
The problem is missing implicit fs_unlock() in the no_locking code.
This is used with --sysinit on read-only filesystem locking dir.
In this case vgchange -ay could exit before all udev nodes are properly
synchronised and may cause problems with accessing such node right after
vgchange --sysinint command is finished.
Add test case for vgchange --sysinit.
2011-01-31 19:52:40 +00:00
Zdenek Kabelac
733b05a693
Lower device size of pvmove test
...
Lower the size of devices in this test for speedup.
And check only once that LVs are prepared properly.
2011-01-28 16:15:08 +00:00
Zdenek Kabelac
194afbe34d
Lower disk space usage of inconsistent mda test
...
Smaller size of devices speedups this test.
2011-01-28 16:13:39 +00:00
Zdenek Kabelac
2c3190b237
Replacei sleep wait with udev settle
...
Use new udev_wait command instead of unpredictable sleep waiting.
As with more devices in the system, udev processing is slower.
2011-01-28 16:12:45 +00:00
Zdenek Kabelac
8f7cff6aec
Query only test related vg name
2011-01-28 16:11:14 +00:00
Zdenek Kabelac
6bd4a36dde
Add command to wait for udevadm settle
2011-01-28 16:10:21 +00:00
Zdenek Kabelac
8f0b0fea66
Do not break pipes
...
As the option 'set -e -o pipefail' is very sensite on pipe breaking
stop using '-q' for grep commands.
Otherwise this command (with large enough table) would fail:
dmsetup table | egrep -q
with exit code 141 (128 + SIGPIPE)
As Peter suggested, he prefers to keep '-o pipefail' - so make sure all
piped commands will read the whole output and will not exit too early.
2011-01-28 16:08:39 +00:00
Zdenek Kabelac
a222da0456
Accelerate mirror tests
...
Instead of recreation of whole device set for each test round,
just cleanup created LVs to empty VG.
Lower the size of PV devices to 16MB
2011-01-28 16:07:04 +00:00
Zdenek Kabelac
fdc5e381d8
Display duration of tests when it passed.
...
Enhance output with info about the test duration.
Cleanup few declarations in the code.
2011-01-28 16:05:38 +00:00
Zdenek Kabelac
23fb1fbd48
Add missing lvm_quit in test
...
Fix occasional confusing memory leak report in testing.
2011-01-26 21:21:56 +00:00
Jonathan Earl Brassow
af7697efbe
Add test to make sure that a log device is retained when a
...
mirror image fails and the policies are set to:
mirror_image_fault_policy = "replace"
mirror_log_fault_policy = "remove"
2011-01-19 19:22:07 +00:00
Zdenek Kabelac
e84c7c7c63
Remove -f from list of targets for cleanup
...
rm -f is already in used for this cleanup.
2011-01-17 15:18:10 +00:00
Zdenek Kabelac
888d273f9a
Set default value to counter_last
...
Missed in previous commit and could be using some random stack value.
2011-01-13 15:03:28 +00:00
Zdenek Kabelac
84b6fab321
Include default make.tmpl
...
Use default clean targets for this Makefile
Use also same build flags for compiling testing tools like harness.
2011-01-13 14:58:59 +00:00
Zdenek Kabelac
424873390b
Enable monitoring for cluster tests
2011-01-13 14:57:18 +00:00
Zdenek Kabelac
c6e087d54a
Check for file with clvmd pid
...
Instead of checking $LOCAL_CLVMD set during some 'aux' execution which
doesn't seem to be propagated to this shell - check for existance of pid
file of clvmd process - so this test is skipped in singlenode cluster test.
2011-01-13 11:05:27 +00:00
Zdenek Kabelac
d044827d9a
Hotfix to stop harness busylooping
...
Harness seems to be able to busyloop in while cycle and not moving forward
for certain buffer - so check whethere there was some progress.
This fix allows to continue after failed cluster test.
Fix gcc warning for hiding global variable 's' -> sig.
2011-01-13 11:02:55 +00:00
Petr Rockai
fd1aaee33f
Kill clvmd properly after locking_type 3 tests (using clvmd/singlenode).
2011-01-12 16:07:55 +00:00
Jonathan Earl Brassow
025e69a15a
Add disk to mirrored log type conversion.
2011-01-11 17:05:08 +00:00
Zdenek Kabelac
95d3c5f7e1
Use strndup as GNU extension
...
strndup needs _GNU_SOURCE defined as it's GNU extension.
Remove duplicate string.h header added in previous harness commit.
2011-01-10 13:25:22 +00:00
Petr Rockai
0011955f3a
Skip the api/percent test on kernels <= 2.6.32.
2011-01-07 15:04:52 +00:00
Petr Rockai
dbb55cb3e1
Add a test for the interaction of snapshots of mirrors and lvconvert --repair.
2011-01-07 14:56:52 +00:00
Petr Rockai
235ea42e59
Add a test for the interaction of transient errors and dmeventd mirror repair.
2011-01-07 14:56:10 +00:00
Petr Rockai
be294072a1
Fix a typo in the new relaxed mirror check (test/lib/check.sh).
2011-01-07 14:42:35 +00:00
Petr Rockai
21ee9f3234
Remove *.t in test/api's make clean target.
2011-01-07 13:07:10 +00:00
Petr Rockai
a1da766a21
Disable activation/monitoring in testing lvm.conf by default.
2011-01-07 13:04:17 +00:00
Petr Rockai
55be86d4c7
Relax the mirror test in test/lib/check.sh.
2011-01-07 13:03:46 +00:00
Petr Rockai
2479e17526
In aux, exit 200 no longer works as skip -- replace with real skip call.
2011-01-07 13:03:04 +00:00
Petr Rockai
62fbc0a033
Fix up the make clean target in test/.
2011-01-07 12:26:02 +00:00
Zdenek Kabelac
5c4622fd2a
Fix gcc warnings for missing headers and prototypes
...
Add missing header string.h (strcmp, strndup).
Add 'static' to fix missing prototypes gcc warning.
Remove unused variables verbose_off, TESTDIR, PREFIX.
2011-01-05 15:03:43 +00:00
Petr Rockai
e485801d49
Remove obsolete bits of support code from test/.
2011-01-05 14:15:26 +00:00
Petr Rockai
20b7fe3379
Re-enable t-lvconvert-repair-transient, avoiding the deadlock by running mkfs
...
asynchronously.
2011-01-05 14:15:01 +00:00
Petr Rockai
5d6a6bdf7b
Fix another bug in t-pvcreate-operation-md (should pass now).
2011-01-05 01:04:47 +00:00
Petr Rockai
5e79ce33d6
Add a test for RHBZ 640621 (metadata/dirs + no PV MDAs broken).
2011-01-05 01:00:34 +00:00
Petr Rockai
7271b0afea
Fix typo in t-pvcreate-operation-md.sh.
2011-01-05 00:38:41 +00:00
Petr Rockai
da6e9afebf
Move the mkdtemp functionality into test/lib/utils.sh.
2011-01-05 00:26:19 +00:00
Petr Rockai
92ebc9219e
Fix a couple of bugs in the new (test/lib/)aux.sh.
2011-01-05 00:25:07 +00:00
Petr Rockai
1b7c4b9bce
Substantial rework of the functional test support code. Some new features:
...
- somewhat neater, more consistent and more readable output
- possible to set any lvm.conf value: aux lvmconf "section/key = value"
- LVM_TEST_NODEBUG to suppress the (lengthy) "## DEBUG" output
- back-substitution on test output ($TESTDIR/$PREFIX -> @TESTDIR@/@PREFIX@)
- support code moved from test/ to test/lib/ --> less clutter
2011-01-05 00:16:18 +00:00
Petr Rockai
9a09ca42d2
Use system assert in test/api/percent.c, for now.
2011-01-03 15:07:39 +00:00
Alasdair Kergon
49e859e5a7
Copyright notices for new files.
2010-12-21 01:14:34 +00:00
Zdenek Kabelac
0281405a4d
Move var declarations to function begining
...
As assert macro jumps to 'bad:' label - we need vg initialized.
2010-12-20 12:29:39 +00:00
Petr Rockai
af979c3b2d
Fix sed substitution in copying tests to builddir (test/Makefile.in).
2010-12-14 23:23:45 +00:00
Petr Rockai
8961b1d503
Add getters for copy_percent and snap_percent to the lvm2app API.
2010-12-14 23:20:58 +00:00
Petr Rockai
d6d4e462a4
Hack up the RUN_BASE computation in the test Makefile.in a bit more (so that it
...
actually works... sometimes).
2010-12-14 17:38:42 +00:00
Petr Rockai
bda30a59b9
Remove a redundant %.o: %.c rule from test/api/Makefile.in.
2010-12-12 22:26:47 +00:00
Petr Rockai
caa443ae49
Fix the sed expression to get "base" names of tests.
2010-12-12 21:17:25 +00:00
Petr Rockai
4f8eeb2a06
Only build the required bits under api/ on make check.
2010-12-12 21:08:00 +00:00
Petr Rockai
6ba68e2a84
Do not build vgtest (superseded by vgtest.t). Fix the build line for .t files.
2010-12-12 20:49:38 +00:00
Petr Rockai
5f4dc7f957
First go at a somewhat more comprehensive mechanism to run "unit" tests for the
...
lvm2app API. Further factoring of the support code needed. RHBZ 654445
2010-12-12 20:36:38 +00:00