public inbox for lvm2-cvs@sourceware.org
help / color / mirror / Atom feed
* LVM2/test t-fsadm.sh
@ 2010-10-13  9:44 zkabelac
  0 siblings, 0 replies; 4+ messages in thread
From: zkabelac @ 2010-10-13  9:44 UTC (permalink / raw)
  To: lvm-devel, lvm2-cvs

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	zkabelac@sourceware.org	2010-10-13 09:44:53

Modified files:
	test           : t-fsadm.sh 

Log message:
	Skip fsadm testing until proper installation rules are commited in.
	
	For now testing of fsadm is broken - as it's executing fsadm from system
	and not from the package thus we get wrong results.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-fsadm.sh.diff?cvsroot=lvm2&r1=1.3&r2=1.4

--- LVM2/test/t-fsadm.sh	2010/10/08 15:03:21	1.3
+++ LVM2/test/t-fsadm.sh	2010/10/13 09:44:52	1.4
@@ -10,6 +10,7 @@
 # Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
 test_description='Exercise fsadm filesystem resize'
+exit 200
 
 . ./test-utils.sh
 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* LVM2/test t-fsadm.sh
@ 2011-09-19 19:37 zkabelac
  0 siblings, 0 replies; 4+ messages in thread
From: zkabelac @ 2011-09-19 19:37 UTC (permalink / raw)
  To: lvm-devel, lvm2-cvs

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	zkabelac@sourceware.org	2011-09-19 19:37:26

Modified files:
	test           : t-fsadm.sh 

Log message:
	Unmount works with -y

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-fsadm.sh.diff?cvsroot=lvm2&r1=1.7&r2=1.8

--- LVM2/test/t-fsadm.sh	2011/09/19 13:52:22	1.7
+++ LVM2/test/t-fsadm.sh	2011/09/19 19:37:26	1.8
@@ -117,8 +117,9 @@
 	fscheck_reiserfs
 	mount $dev_vg_lv $mount_dir
 
-	not fsadm -y --lvresize resize $vg_lv 20M
+	fsadm -y --lvresize resize $vg_lv 30M
 	umount $mount_dir
+	fscheck_reiserfs
 
 	lvresize -f -L20M $vg_lv
 fi


^ permalink raw reply	[flat|nested] 4+ messages in thread

* LVM2/test t-fsadm.sh
@ 2011-09-19 13:52 zkabelac
  0 siblings, 0 replies; 4+ messages in thread
From: zkabelac @ 2011-09-19 13:52 UTC (permalink / raw)
  To: lvm-devel, lvm2-cvs

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	zkabelac@sourceware.org	2011-09-19 13:52:22

Modified files:
	test           : t-fsadm.sh 

Log message:
	Enable  t-fsadm test
	
	Now all commands are executed from preffered directory.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-fsadm.sh.diff?cvsroot=lvm2&r1=1.6&r2=1.7

--- LVM2/test/t-fsadm.sh	2011/01/31 22:05:30	1.6
+++ LVM2/test/t-fsadm.sh	2011/09/19 13:52:22	1.7
@@ -1,5 +1,5 @@
 #!/bin/bash
-# Copyright (C) 2008-2010 Red Hat, Inc. All rights reserved.
+# Copyright (C) 2008-2011 Red Hat, Inc. All rights reserved.
 #
 # This copyrighted material is made available to anyone wishing to use,
 # modify, copy, or redistribute it subject to the terms and conditions
@@ -10,7 +10,6 @@
 # Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
 test_description='Exercise fsadm filesystem resize'
-exit 200
 
 . lib/test
 
@@ -32,6 +31,8 @@
 vg_lv="$vg/$lv1"
 dev_vg_lv="$DM_DEV_DIR/$vg_lv"
 mount_dir="$TESTDIR/mnt"
+# for recursive call
+export LVM_BINARY=$(which lvm)
 
 test ! -d $mount_dir && mkdir $mount_dir
 
@@ -75,13 +76,13 @@
 
 	fsadm --lvresize resize $vg_lv 30M
 	# Fails - not enough space for 4M fs
-	not fsadm --lvresize resize $dev_vg_lv 4M
+	not fsadm -y --lvresize resize $dev_vg_lv 4M
 	lvresize -L+10M -r $vg_lv
 	lvreduce -L10M -r $vg_lv
 
 	fscheck_ext3
 	mount $dev_vg_lv $mount_dir
-	not fsadm --lvresize resize $vg_lv 9M
+	not fsadm -y --lvresize resize $vg_lv 4M
 	lvresize -L+20M -r -n $vg_lv
 	umount $mount_dir
 	fscheck_ext3
@@ -121,3 +122,5 @@
 
 	lvresize -f -L20M $vg_lv
 fi
+
+vgremove -ff $vg


^ permalink raw reply	[flat|nested] 4+ messages in thread

* LVM2/test t-fsadm.sh
@ 2009-01-15 17:14 wysochanski
  0 siblings, 0 replies; 4+ messages in thread
From: wysochanski @ 2009-01-15 17:14 UTC (permalink / raw)
  To: lvm-devel, lvm2-cvs

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	wysochanski@sourceware.org	2009-01-15 17:14:38

Added files:
	test           : t-fsadm.sh 

Log message:
	Add skeleton of fsadm nightly test but skip (doesn't work yet).

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-fsadm.sh.diff?cvsroot=lvm2&r1=NONE&r2=1.1

/cvs/lvm2/LVM2/test/t-fsadm.sh,v  -->  standard output
revision 1.1
--- LVM2/test/t-fsadm.sh
+++ -	2009-01-15 17:14:39.057222000 +0000
@@ -0,0 +1,25 @@
+#!/bin/bash
+# Copyright (C) 2008 Red Hat, Inc. All rights reserved.
+#
+# This copyrighted material is made available to anyone wishing to use,
+# modify, copy, or redistribute it subject to the terms and conditions
+# of the GNU General Public License v.2.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
+. ./test-utils.sh
+
+exit 200
+# doesn't work right now
+aux prepare_pvs 2
+aux pvcreate --metadatacopies 0 $dev1
+vgcreate -cn $vg $devs
+
+# Test for block sizes != 1024 (rhbz #480022)
+lvcreate -n$lv1 -L 64M $vg
+mke2fs -b4096 -j $G_dev_/$vg/$lv1
+e2fsck -f -y $G_dev_/$vg/$lv1
+fsadm --lvresize resize $G_dev_/$vg/$lv1 128M
+vgremove -ff $vg


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-09-19 19:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-13  9:44 LVM2/test t-fsadm.sh zkabelac
  -- strict thread matches above, loose matches on Subject: below --
2011-09-19 19:37 zkabelac
2011-09-19 13:52 zkabelac
2009-01-15 17:14 wysochanski

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).