Petr Rockai
c8584e1cce
More test conversions by jstava. Make check still passes.
2008-10-06 16:47:07 +00:00
Petr Rockai
e6166cf711
Make harness.sh exit with non-zero status when tests fail.
2008-09-30 21:45:42 +00:00
Petr Rockai
2285712834
Cosmetic: get rid of trailing garbage on comments in t-vgslpit-usage.sh.
2008-09-30 21:43:55 +00:00
Petr Rockai
53cb6128e8
Improve harness.sh output: also mention failing test's name near the end of its
...
output. Avoids the need to scroll back just to see which failing test you are
looking at.
2008-09-30 21:43:16 +00:00
Petr Rockai
8cac933c71
Fix [ a = b ] usage in t-vgsplit-operation: string comparison is '=', not '=='.
2008-09-30 18:29:10 +00:00
Petr Rockai
03e61a4bf8
Conversion of t-vgsplit-operation.sh by jstava.
2008-09-30 17:56:54 +00:00
Petr Rockai
71446a76b2
Fix a syntax error in one of the scripts, introduced by last commit.
2008-09-30 17:50:56 +00:00
Petr Rockai
28db8d6c7c
More test conversions, all of these are by jstava.
2008-09-30 17:47:34 +00:00
Petr Rockai
786e33d7d5
Port over t-vgreduce-usage. Should fix testsuite hangs where pvremove -ff would
...
have waited for input on certain test failures.
2008-09-30 17:17:04 +00:00
Petr Rockai
b140d6c50e
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
64a95abdee
Convert t-pvremove-usage to use the new test-utils.sh.
2008-09-30 13:19:56 +00:00
Petr Rockai
57f926be17
Update test/Makefile.in to use the new harness for calling tests.
2008-09-29 16:07:02 +00:00
Petr Rockai
4933b67959
Add a test for reappearing lost PVs causing endless metadata correction
...
updates. (A problem Milan fixed recently.)
2008-09-29 16:06:10 +00:00
Petr Rockai
370b4f1b9e
Add a simple test for partial activation.
2008-09-29 16:04:57 +00:00
Petr Rockai
f3b7baa84e
Update a bunch of tests to use functionality from test-utils.sh.
2008-09-29 16:02:50 +00:00
Petr Rockai
eafdb2c807
Export testlib_cleanup_ from test-lib.sh, which is needed for test-utils.sh to
...
be able to call proper EXIT traps.
2008-09-29 16:00:53 +00:00
Petr Rockai
a91fa821ab
Import new test utilities and a test harness.
2008-09-29 15:59:19 +00:00
Milan Broz
dfdb10f6de
Add more vgreduce tests. (Jaroslav Stava)
2008-09-19 16:12:25 +00:00
Milan Broz
5cbe5909eb
Fix vgreduce test, now requires --force flag. (Jaroslav Stava)
2008-09-19 16:10:46 +00:00
Milan Broz
a0d865492e
fix vgreduce tests to detect partial command failure (Jaroslav Stava)
2008-08-28 11:20:49 +00:00
Milan Broz
de27790de8
add vgcreate rejects repeated invocation test
...
add vgcreate fails when the only pv has --metadatacopies 0 test
(by Jaroslav Stava)
2008-08-28 11:09:58 +00:00
Milan Broz
9c910b7be2
add vgrename by uuid test (Jaroslav Stava)
...
fix vgsplit rejects last mda copy test (Jaroslav Stava)
2008-08-28 10:59:10 +00:00
Milan Broz
77dc036c8f
Add pvremove usage test (Jaroslav Stava)
2008-08-28 10:24:55 +00:00
Milan Broz
aa6e8d82ce
- fix environment variable prefix to LVM (this is not GIT:-)
...
- add lvcreate rejects repeated invocation test
- fix pvs metadata test for partial failure test
- add pvchange reject --addtag to lvm1 pv test
(All fixes by Jaroslav Stava)
2008-08-28 10:07:34 +00:00
Dave Wysochanski
3010285bb3
Fix symbolic link creation in test infrastructure.
...
Original code would create "*.so" symbolic links if there were no actual
files ending in "so". The second iteration would then cause an error
in the test logs.
2008-08-21 14:33:48 +00:00
Zdeněk Kabeláč
aaad3252f8
fail testcase for failed commands inside the for loop
2008-08-20 13:34:33 +00:00
Zdeněk Kabeláč
52361c94e5
valid parameter for lvchange -p is 'rw'
2008-08-13 14:28:17 +00:00
Zdeněk Kabeláč
798be60fef
added test for coverage improvement
...
added test for metadata type 1
2008-08-13 13:49:07 +00:00
Milan Broz
582706cde6
add tests for pvchange and vgreduce usage (Jaroslav Stava)
2008-08-12 10:04:31 +00:00
Milan Broz
6537cbdc17
test vgsplit: reject to give away pv with the last mda copy (Jaroslav Stava)
2008-08-12 10:01:56 +00:00
Zdeněk Kabeláč
a4d2fddbb2
add test for pool labels gfs
...
add test for metadatacopies0 and snapshot manipulation
2008-08-05 12:33:41 +00:00
Zdeněk Kabeláč
c54a3f2721
put dmeventd into the LD_LIBRARY_PATH for lvm-wrapper
2008-08-05 12:32:08 +00:00
Zdeněk Kabeláč
5406e3b7c5
avoid endless option parsing loop
...
add support for lvm verbose operation -vvvv
add dlsym path to the test config file
2008-08-05 11:39:54 +00:00
Zdeněk Kabeláč
6b624b7d00
* parse error output for 'auto' keyword
2008-08-04 09:15:15 +00:00
Zdeněk Kabeláč
1f27bf3774
disable mdadm test-case until a better solution is found
2008-08-01 15:44:53 +00:00
Dave Wysochanski
61243c65cd
Add pvcreate tests to verify failure on md array detection.
2008-07-29 21:05:20 +00:00
Dave Wysochanski
cbf1447ebd
Refactor pvcreate - simplify return codes.
2008-07-25 14:59:51 +00:00
Dave Wysochanski
b4a70804f0
Refactor pvcreate - --force parameter.
2008-07-25 14:36:55 +00:00
Dave Wysochanski
43e05607af
Refactor pvcreate - move uuid and restorefile options.
2008-07-25 00:30:57 +00:00
Dave Wysochanski
55793452d5
Add pvcreate tests for uuid and restorefile.
2008-07-24 17:33:40 +00:00
Dave Wysochanski
e0d61a4336
Add more pvcreate tests to validate writing lvm2 label using --labelsector.
2008-07-21 18:50:10 +00:00
Dave Wysochanski
98fadec2b6
Only use lvm2 metadata for now.
2008-07-17 04:03:04 +00:00
Dave Wysochanski
14f464ecb0
Update pvcreate and vgsplit tests.
...
Add more pvcreate tests.
Start handling lvm1 and lvm2 metadata and metadatacopies=0,1.
2008-07-17 03:17:01 +00:00
Dave Wysochanski
2ecdaf9bd4
Add pvcreate sanity tests, check for label_write() failure in _text_pv_write().
...
Failure to check for label_write() return code caused the following test
to indicate it passed when it really failed:
pvcreate rejects labelsector > 1000000000000
2008-07-16 21:32:38 +00:00
Alasdair Kergon
6401f1b1c9
tweak lcov configuration/makefiles
2008-06-27 19:24:17 +00:00
Dave Wysochanski
5d5b575d16
Test script cleanup.
2008-06-25 16:51:26 +00:00
Zdeněk Kabeláč
949c1ab517
Improve/Fix read ahead 'auto' calculation for stripe_size
...
Fix lvchange output for -r auto setting if auto is already set
Add testcase for read ahead
2008-06-18 11:32:14 +00:00
Dave Wysochanski
757f91ca89
Add simple test case to repro pvs segfault with duplicate vgnames.
2008-06-09 15:31:58 +00:00
Jim Meyering
6f0f5a569d
* lvm-utils.sh (init_root_dir_): Correct a diagnostic.
...
Author: Jim Meyering <meyering@redhat.com>
2008-06-06 13:48:57 +00:00
Dave Wysochanski
e46a6d1cc1
Add test for rhbz440405 - lvconvert -m0 fails incorrectly if all PEs allocated.
2008-04-23 18:27:59 +00:00