All of lore.kernel.org
 help / color / mirror / Atom feed
From: mornfall@sourceware.org <mornfall@sourceware.org>
To: lvm-devel@redhat.com
Subject: LVM2/test t-lvconvert-mirror-basic.sh t-lvconv ...
Date: 12 May 2010 13:15:39 -0000	[thread overview]
Message-ID: <20100512131539.28715.qmail@sourceware.org> (raw)

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	mornfall at sourceware.org	2010-05-12 13:15:38

Modified files:
	test           : t-lvconvert-mirror-basic.sh 
Added files:
	test           : t-lvconvert-mirror-basic-0.sh 
	                 t-lvconvert-mirror-basic-1.sh 
	                 t-lvconvert-mirror-basic-2.sh 
	                 t-lvconvert-mirror-basic-3.sh 

Log message:
	Chop up the big t-lvconvert-mirror-basic loop across 4 separate test scripts
	(and use sourcing to avoid code duplication).

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-lvconvert-mirror-basic-0.sh.diff?cvsroot=lvm2&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-lvconvert-mirror-basic-1.sh.diff?cvsroot=lvm2&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-lvconvert-mirror-basic-2.sh.diff?cvsroot=lvm2&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-lvconvert-mirror-basic-3.sh.diff?cvsroot=lvm2&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-lvconvert-mirror-basic.sh.diff?cvsroot=lvm2&r1=1.1&r2=1.2

/cvs/lvm2/LVM2/test/t-lvconvert-mirror-basic-0.sh,v  -->  standard output
revision 1.1
--- LVM2/test/t-lvconvert-mirror-basic-0.sh
+++ -	2010-05-12 13:15:39.141989000 +0000
@@ -0,0 +1,2 @@
+. ./t-lvconvert-mirror-basic.sh
+test_many 0
/cvs/lvm2/LVM2/test/t-lvconvert-mirror-basic-1.sh,v  -->  standard output
revision 1.1
--- LVM2/test/t-lvconvert-mirror-basic-1.sh
+++ -	2010-05-12 13:15:39.225899000 +0000
@@ -0,0 +1,2 @@
+. ./t-lvconvert-mirror-basic.sh
+test_many 1
/cvs/lvm2/LVM2/test/t-lvconvert-mirror-basic-2.sh,v  -->  standard output
revision 1.1
--- LVM2/test/t-lvconvert-mirror-basic-2.sh
+++ -	2010-05-12 13:15:39.310482000 +0000
@@ -0,0 +1,2 @@
+. ./t-lvconvert-mirror-basic.sh
+test_many 2
/cvs/lvm2/LVM2/test/t-lvconvert-mirror-basic-3.sh,v  -->  standard output
revision 1.1
--- LVM2/test/t-lvconvert-mirror-basic-3.sh
+++ -	2010-05-12 13:15:39.395233000 +0000
@@ -0,0 +1,2 @@
+. ./t-lvconvert-mirror-basic.sh
+test_many 3
--- LVM2/test/t-lvconvert-mirror-basic.sh	2010/05/12 10:08:35	1.1
+++ LVM2/test/t-lvconvert-mirror-basic.sh	2010/05/12 13:15:38	1.2
@@ -121,9 +121,9 @@
 
 aux prepare_vg 5
 
-# Test conversion combinations from linear <-> 4-way mirrors
-for i in $(seq 0 4); do
-	for j in $(seq 0 4); do
+test_many() {
+	i=$1
+	for j in $(seq 0 3); do
 		for k in core disk mirrored; do
 			for l in core disk mirrored; do
 				if test "$i" -eq "$j" && test "$k" = "$l"; then continue; fi
@@ -135,5 +135,4 @@
 			done
 		done
 	done
-done
-
+}



                 reply	other threads:[~2010-05-12 13:15 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=20100512131539.28715.qmail@sourceware.org \
    --to=mornfall@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.