Dave Wysochanski
819fbc6ed5
Remove unnecessary linker flags for liblvm.
2009-03-08 17:29:26 +00:00
Dave Wysochanski
53e7c8fa34
Add DSO generation for new LVM application library.
...
Fix test/api/test build.
2009-03-08 17:06:55 +00:00
Milan Broz
d0b99cb260
pe_start can be overwritten in VG metadata, so it is not PV label-only field.
2009-02-25 23:31:06 +00:00
Milan Broz
fa22cc2e20
Try to avoid full rescan if label scan is enough.
2009-02-25 23:29:06 +00:00
twoerner
ed774a5691
Added files lib/lvm.h and lib/lvm_base.c:
...
New structure lvm (used as an alias to cmd_context), new type definition lvm_t
for the lvm handle. Added functions lvm_create, lvm_destroy and
lvm_reload_config using the new handle.
Modified test/api/test.c:
Use new lvm.h header file and lvm_t handle.
Removed lib/lvm2.h
Author: Thomas Woerner <twoerner@redhat.com>
2009-02-24 13:03:45 +00:00
Alasdair Kergon
3640dc2fa3
Move tools/version.h to lib/misc/lvm-version.h.
...
Split LVM_VERSION into MAJOR, MINOR, PATCHLEVEL, RELEASE and RELEASE_DATE.
2009-02-22 22:11:58 +00:00
Milan Broz
c158759c11
Comment out pvcreate pagesize alignment test for now.
2009-02-22 19:32:28 +00:00
Alasdair Kergon
b49362420c
Add --dataalignment to pvcreate to specify alignment of data area. (mbroz)
...
This patch is not fully tested and leaves some related bugs unfixed.
Intended behaviour of the code now:
pe_start in the lvm2 format PV label header is set only by pvcreate (or
vgconvert -M2) and then preserved in *all* operations thereafter.
In some specialist cases, after the PV is added to a VG, the pe_start
field in the VG metadata may hold a different value and if so, it
overrides the other one for as long as the PV is in such a VG.
Currently, the field storing the size of the data area in the PV label
header always holds 0. As it only has meaning in the context of a
volume group, it is calculated whenever the PV is added to a VG (and can
be derived from extent_size and pe_count in the VG metadata).
2009-02-22 19:00:26 +00:00
Petr Rockai
12811483be
In testsuite's not.c, print a notice when program dies of a fatal signal.
2009-02-17 19:37:28 +00:00
Petr Rockai
822aa2a352
Fix test output collection in harness.c.
2009-02-17 19:36:16 +00:00
Petr Rockai
5d3e57094a
Only fail when tests have failed, but not when they have been just skipped.
2009-02-16 16:49:21 +00:00
Petr Rockai
182494a5b7
Re-implement the test harness in C. This lets us pass through signals and
...
trigger proper test teardown upon harness interrupt or termination. I also
tweaked the output somewhat while I was at it...
2009-02-12 19:54:45 +00:00
Dave Wysochanski
26b4c34778
Add skeleton of fsadm nightly test but skip (doesn't work yet).
2009-01-15 17:14:38 +00:00
Petr Rockai
125fb7fbdb
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
d6778847c9
Fix some checks in lvm-utils.sh. Note that "$(test ...)" is always empty, since
...
"test" never prints anything. Therefore, "return $(test ...)" is equivalent to
just "return;" which means success in sh (same as return 0). We can however,
thanks to set -e, use "test foo = bar" as an assertion.
PS: test a == b is invalid syntax. It is either = or -eq: = is textual and -eq
is numeric comparison.
2009-01-10 12:19:41 +00:00
Petr Rockai
1027762816
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
Milan Broz
7bb4897b9f
Remove status=noxfer from test, not all dd versions support this (RHEL4 for example).
2008-12-16 20:02:52 +00:00
Zdeněk Kabeláč
7e3a1a8b18
operate on test subdirectory instead on main /dev
2008-12-10 16:16:53 +00:00
Zdeněk Kabeláč
5f1b8f71f3
add simple test for dev node usability (detect devices mounted with nodev)
2008-12-10 16:15:41 +00:00
Dave Wysochanski
cca8bb9092
Add liblvm interactive test infrastructure to build.
2008-12-07 19:37:07 +00:00
Dave Wysochanski
08774dc558
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
25a82bcbe3
Add a bunch of sub-tests aimed at testing various bugzillas, by jstava.
2008-11-11 15:46:15 +00:00
Petr Rockai
cb58100587
Import a bunch of new tests by jstava. Mostly everything pass, they however
...
tend to expose the lvremove -ff vg ordering bug.
2008-11-11 15:29:24 +00:00
Petr Rockai
9a8f6c824f
Fix t-pool-labels to pass again after the vgdisplay error return fix from
...
last Friday.
2008-11-10 13:44:01 +00:00
Petr Rockai
db98500b72
Minor code and documentation cleanups and changes by jstava.
2008-11-10 12:43:35 +00:00
Petr Rockai
3feee09cfe
add bz264241 check
...
remove lvconvert progress notifications (-i100)
(by jstava)
2008-11-10 12:41:52 +00:00
Petr Rockai
edb5071d3b
bz429342 lvcreate --nosync
...
bz192865 lvconvert logtype of an inactive mirror lv
(both by jstava)
2008-11-10 12:37:53 +00:00
Petr Rockai
e9509aa5e6
Add bz186013 check -- lvcreate rejects an invalid regionsize (jstava).
2008-11-10 12:37:03 +00:00
Petr Rockai
5e6ca1b72d
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
543bf2ffbd
Explicitly check after lvremove -ff vg that it did its job. By jstava.
2008-11-10 12:32:00 +00:00
Petr Rockai
e5ecc2b942
Set LD_LIBRARY_PATH in init.sh, as it is required to run dmsetup now as well,
...
which otherwise picks up the system version of libdevmapper, which is a pretty
bad idea.
2008-11-07 01:30:03 +00:00
Petr Rockai
446852db3b
Fix typo.
2008-11-04 14:38:53 +00:00
Petr Rockai
7c90b57e87
Also report the tests that have been skipped, at the end of harness.sh.
2008-11-04 14:37:51 +00:00
Petr Rockai
6339e2588b
Use $(abs_top_builddir) instead of @DMDIR@ and update paths appropriately.
2008-11-04 14:37:10 +00:00
Petr Rockai
883486cc67
Re-indent test-utils.sh consistently, using tabs.
2008-10-14 19:48:01 +00:00
Petr Rockai
f367f9b747
Conversion of last 2 tests to use test-utils.sh, by jstava.
2008-10-14 19:41:12 +00:00
Petr Rockai
4d534dd7e4
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
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