All of lore.kernel.org
 help / color / mirror / Atom feed
From: meyering@sourceware.org <meyering@sourceware.org>
To: lvm-devel@redhat.com
Subject: LVM2/test t3000-lvcreate-pvtags.sh
Date: 18 Sep 2007 21:07:21 -0000	[thread overview]
Message-ID: <20070918210721.27742.qmail@sourceware.org> (raw)

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	meyering at 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



                 reply	other threads:[~2007-09-18 21:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070918210721.27742.qmail@sourceware.org \
    --to=meyering@sourceware.org \
    --cc=lvm-devel@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.