public inbox for lvm2-cvs@sourceware.org
help / color / mirror / Atom feed
* LVM2/test t3000-lvcreate-pvtags.sh
@ 2007-09-18 21:07 meyering
0 siblings, 0 replies; only message in thread
From: meyering @ 2007-09-18 21:07 UTC (permalink / raw)
To: lvm-devel, lvm2-cvs
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: meyering@sourceware.org 2007-09-18 21:07:21
Modified files:
test : t3000-lvcreate-pvtags.sh
Log message:
test/t3000-lvcreate-pvtags.sh: Use better test names.
Author: Jim Meyering <jim@meyering.net>
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t3000-lvcreate-pvtags.sh.diff?cvsroot=lvm2&r1=1.2&r2=1.3
--- LVM2/test/t3000-lvcreate-pvtags.sh 2007/09/18 14:02:22 1.2
+++ LVM2/test/t3000-lvcreate-pvtags.sh 2007/09/18 21:07:21 1.3
@@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-test_description='Ensure that pvmove diagnoses PE-range values 2^32 and larger.'
+test_description="ensure that lvcreate's select-by-tag code works"
privileges_required_=1
. ./test-lib.sh
@@ -56,24 +56,27 @@
'pvcreate $pvs'
vg=lvcreate-pvtags-vg-$$
-test_expect_success "Run this: vgcreate $vg $pvs" \
- 'vgcreate $vg $pvs'
-test_expect_success "Run this: pvchange --addtag fast $pvs" \
- 'pvchange --addtag fast $pvs'
-
-test_expect_success t 'lvcreate -l3 -i3 $vg @fast'
-test_expect_failure u 'lvcreate -l4 -i4 $vg @fast'
-test_expect_failure v 'lvcreate -l2 -i2 $vg /dev/mapper/pv1'
+test_expect_success \
+ 'set up a VG with tagged PVs' \
+ 'vgcreate $vg $pvs &&
+ pvchange --addtag fast $pvs'
+
+test_expect_success '3 stripes with 3 PVs (selected by tag, @fast) is fine' \
+ 'lvcreate -l3 -i3 $vg @fast'
+test_expect_failure 'too many stripes(4) for 3 PVs' \
+ 'lvcreate -l4 -i4 $vg @fast'
+test_expect_failure '2 stripes is too many with just one PV' \
+ 'lvcreate -l2 -i2 $vg /dev/mapper/pv1'
-test_expect_success 'lvcreate mirror' \
+test_expect_success 'lvcreate mirror' \
'lvcreate -l1 -m1 $vg @fast'
-test_expect_success 'lvcreate mirror corelog' \
+test_expect_success 'lvcreate mirror w/corelog' \
'lvcreate -l1 -m2 --corelog $vg @fast'
-test_expect_failure 'lvcreate mirror' \
+test_expect_failure 'lvcreate mirror w/no free PVs' \
'lvcreate -l1 -m2 $vg @fast'
-test_expect_failure 'lvcreate mirror (corelog)' \
+test_expect_failure 'lvcreate mirror (corelog, w/no free PVs)' \
'lvcreate -l1 -m3 --corelog $vg @fast'
-test_expect_failure 'lvcreate mirror' \
+test_expect_failure 'lvcreate mirror with a single PV arg' \
'lvcreate -l1 -m1 --corelog $vg /dev/mapper/pv1'
test_done
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-09-18 21:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-18 21:07 LVM2/test t3000-lvcreate-pvtags.sh meyering
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).