public inbox for lvm2-cvs@sourceware.org
help / color / mirror / Atom feed
* LVM2/test t-covercmd.sh
@ 2008-08-20 13:34 zkabelac
0 siblings, 0 replies; 3+ messages in thread
From: zkabelac @ 2008-08-20 13:34 UTC (permalink / raw)
To: lvm-devel, lvm2-cvs
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac@sourceware.org 2008-08-20 13:34:33
Modified files:
test : t-covercmd.sh
Log message:
fail testcase for failed commands inside the for loop
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-covercmd.sh.diff?cvsroot=lvm2&r1=1.2&r2=1.3
--- LVM2/test/t-covercmd.sh 2008/08/13 14:28:17 1.2
+++ LVM2/test/t-covercmd.sh 2008/08/20 13:34:33 1.3
@@ -54,35 +54,36 @@
lvcreate -n "$lv" -l 1%FREE -i5 -I256 "$vg"'
test_expect_success "test *scan and *display tools" \
- 'pvscan &&
- vgscan &&
- lvscan &&
- for i in b k m g t p e H B K M G T P E ; do pvdisplay --units $i ; done &&
+ 'pvscan &&
+ vgscan &&
+ lvscan &&
+ lvmdiskscan &&
vgdisplay --units k &&
- lvdisplay --units g'
+ lvdisplay --units g &&
+ for i in b k m g t p e H B K M G T P E ; do \
+ pvdisplay --units "$i" "$d1" || return $? ; done'
test_expect_success "test vgexport vgimport tools" \
- 'vgchange -an "$vg" &&
- vgexport "$vg" &&
- vgimport "$vg" &&
+ 'vgchange -an "$vg" &&
+ vgexport "$vg" &&
+ vgimport "$vg" &&
vgchange -ay "$vg"'
# "-persistent y --major 254 --minor 20"
+# "-persistent n"
test_expect_success "test various lvm utils" \
- 'lvmdiskscan &&
- for i in dumpconfig formats segtypes ; do lvm $i ; done &&
- for i in pr \"p rw\" an ay -refresh "-monitor y" "-monitor n" \
- "-persistent n" -resync \
- "-addtag MYTAG" "-deltag MYTAG"; \
- do lvchange -$i "$vg"/"$lv" ; done &&
- pvck "$d1" &&
- vgck "$vg" &&
- lvrename "$vg" "$lv" "$lv-rename" &&
- vgcfgbackup -f $(pwd)/backup.$$ "$vg" &&
- vgchange -an "$vg" &&
- pvdisplay &&
- vgcfgrestore -f $(pwd)/backup.$$ "$vg" &&
- vgremove -f "$vg" &&
+ 'for i in dumpconfig formats segtypes
+ do lvm "$i" || return $? ; done &&
+ for i in pr "p rw" an ay "-monitor y" "-monitor n" \
+ -resync -refresh "-addtag MYTAG" "-deltag MYETAG"
+ do lvchange -$i "$vg"/"$lv" || return $? ; done &&
+ pvck "$d1" &&
+ vgck "$vg" &&
+ lvrename "$vg" "$lv" "$lv-rename" &&
+ vgcfgbackup -f "$(pwd)/backup.$$" "$vg" &&
+ vgchange -an "$vg" &&
+ vgcfgrestore -f "$(pwd)/backup.$$" "$vg" &&
+ vgremove -f "$vg" &&
pvresize --setphysicalvolumesize 10M "$d1"'
test_expect_failure "test various errors and obsoleted tools" \
^ permalink raw reply [flat|nested] 3+ messages in thread
* LVM2/test t-covercmd.sh
@ 2010-06-28 21:49 wysochanski
0 siblings, 0 replies; 3+ messages in thread
From: wysochanski @ 2010-06-28 21:49 UTC (permalink / raw)
To: lvm-devel, lvm2-cvs
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: wysochanski@sourceware.org 2010-06-28 21:49:31
Modified files:
test : t-covercmd.sh
Log message:
Update t-covercmd pvck to take proper device argument.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-covercmd.sh.diff?cvsroot=lvm2&r1=1.7&r2=1.8
--- LVM2/test/t-covercmd.sh 2009/07/07 19:28:57 1.7
+++ LVM2/test/t-covercmd.sh 2010/06/28 21:49:31 1.8
@@ -63,7 +63,7 @@
lvchange -$i "$vg"/"$lv"
done
-pvck "$d1"
+pvck "$dev1"
vgck "$vg"
lvrename "$vg" "$lv" "$lv-rename"
vgcfgbackup -f "$(pwd)/backup.$$" "$vg"
^ permalink raw reply [flat|nested] 3+ messages in thread
* LVM2/test t-covercmd.sh
@ 2008-08-13 14:28 zkabelac
0 siblings, 0 replies; 3+ messages in thread
From: zkabelac @ 2008-08-13 14:28 UTC (permalink / raw)
To: lvm-devel, lvm2-cvs
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac@sourceware.org 2008-08-13 14:28:18
Modified files:
test : t-covercmd.sh
Log message:
valid parameter for lvchange -p is 'rw'
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-covercmd.sh.diff?cvsroot=lvm2&r1=1.1&r2=1.2
--- LVM2/test/t-covercmd.sh 2008/08/13 13:49:07 1.1
+++ LVM2/test/t-covercmd.sh 2008/08/13 14:28:17 1.2
@@ -71,7 +71,7 @@
test_expect_success "test various lvm utils" \
'lvmdiskscan &&
for i in dumpconfig formats segtypes ; do lvm $i ; done &&
- for i in pr pw an ay -refresh "-monitor y" "-monitor n" \
+ for i in pr \"p rw\" an ay -refresh "-monitor y" "-monitor n" \
"-persistent n" -resync \
"-addtag MYTAG" "-deltag MYTAG"; \
do lvchange -$i "$vg"/"$lv" ; done &&
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-06-28 21:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-20 13:34 LVM2/test t-covercmd.sh zkabelac
-- strict thread matches above, loose matches on Subject: below --
2010-06-28 21:49 wysochanski
2008-08-13 14:28 zkabelac
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).