Skip to contentSkip to conversation

LVM2/test Makefile.in t-000-basic.sh t-lvcreat ...

PATCH [email protected] 1 participant 1 message Sep 21, 2007

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: meyering at sourceware.org 2007-09-21 17:12:14

Modified files:
test : Makefile.in
Added files:
test : t-000-basic.sh t-lvcreate-pvtags.sh
t-lvcreate-usage.sh t-pv-range-overflow.sh
Removed files:

	test           : t0000-basic.sh t1000-lvcreate-usage.sh 
	                 t3000-lvcreate-pvtags.sh 
	                 t4000-pv-range-overflow.sh 

Log message:
Rename test scripts not to include the 4-digit number.

Author: Jim Meyering <[email protected]>

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-000-basic.sh.diff?cvsroot=lvm2&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-lvcreate-pvtags.sh.diff?cvsroot=lvm2&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-lvcreate-usage.sh.diff?cvsroot=lvm2&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-pv-range-overflow.sh.diff?cvsroot=lvm2&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/Makefile.in.diff?cvsroot=lvm2&r1=1.5&r2=1.6
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t0000-basic.sh.diff?cvsroot=lvm2&r1=1.2&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t1000-lvcreate-usage.sh.diff?cvsroot=lvm2&r1=1.2&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t3000-lvcreate-pvtags.sh.diff?cvsroot=lvm2&r1=1.3&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t4000-pv-range-overflow.sh.diff?cvsroot=lvm2&r1=1.2&r2=NONE

/cvs/lvm2/LVM2/test/t-000-basic.sh,v --> standard output revision 1.1

- renamed from test/t-000-basic.sh +35 -0
@@ -0,0 +1,35 @@
+#!/bin/sh
+# Copyright (C) 2007 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_description='Basics: see if tools are built, etc.'
+
+. ./test-lib.sh
+
+lvm >/dev/null 2>&1
+if test $? != 3; then
+    echo >&2 'You do not seem to have built lvm yet.'
+    exit 1
+fi
+
+v=$abs_top_srcdir/tools/version.h
+test_expect_success \
+  "get version string from $v" \
+  'sed -n "/#define LVM_VERSION ./s///p" '"$v"'|sed "s/ .*//" > expected'
+
+test_expect_success \
+  'get version of a just-built binary, ensuring PATH is set properly' \
+  'lvm pvmove --version|sed -n "1s/.*: *\([0-9][^ ]*\) .*/\1/p" > actual'
+
+test_expect_success \
+  'ensure they are the same' \
+  'diff -u actual expected'
+
+test_done

/cvs/lvm2/LVM2/test/t-lvcreate-pvtags.sh,v --> standard output revision 1.1

- renamed from test/t-lvcreate-pvtags.sh +82 -0

82 lines not on this page · raw message

/cvs/lvm2/LVM2/test/t-lvcreate-usage.sh,v --> standard output revision 1.1

- renamed from test/t-lvcreate-usage.sh +79 -0

79 lines not on this page · raw message

/cvs/lvm2/LVM2/test/t-pv-range-overflow.sh,v --> standard output revision 1.1

- renamed from test/t-pv-range-overflow.sh +61 -0

61 lines not on this page · raw message

test/Makefile.in +1 -6
@@ -39,12 +39,7 @@
 # Shell quote;
 SHELL_PATH_SQ = $(subst ','\'',$(SHELL_PATH))
 
-# T = $(wildcard t[0-9][0-9][0-9][0-9]-*.sh)
-T = \
-  t0000-basic.sh \
-  t1000-lvcreate-usage.sh \
-  t3000-lvcreate-pvtags.sh \
-  t4000-pv-range-overflow.sh
+T = $(wildcard t-*.sh)
 
 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
 	cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@