LVM2 ./Makefile.in ./configure ./configure.in ...
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: meyering at sourceware.org 2007-09-18 14:00:42
Modified files:
. : Makefile.in configure configure.in
Added files:
test : .gitignore Makefile.in lvm-utils.sh mkdtemp t0000-basic.sh t3000-lvcreate-pvtags.sh t4000-pv-range-overflow.sh test-lib.sh
Log message:
Add testing framework, along with first few tests.
* Makefile.in (check): New target.
* configure.in (AC_CONFIG_FILES): Add test/Makefile.
* configure: Regenerate.
* test/.gitignore: New file.
* test/Makefile.in: New file.
* test/lvm-utils.sh: New script.
* test/mkdtemp (die, rand_bytes, mkdtemp): New script.
* test/t0000-basic.sh: New tests.
* test/t3000-lvcreate-pvtags.sh: New, failing test. Derived from a script by Jun'ichi Nomura.
* test/t4000-pv-range-overflow.sh: New test.
* test/test-lib.sh: Testing framework, based on the one from git.
Author: Jim Meyering <[email protected]>
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/Makefile.in.diff?cvsroot=lvm2&r1=1.18&r2=1.19
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/configure.diff?cvsroot=lvm2&r1=1.61&r2=1.62
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/configure.in.diff?cvsroot=lvm2&r1=1.59&r2=1.60
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/.gitignore.diff?cvsroot=lvm2&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/Makefile.in.diff?cvsroot=lvm2&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/lvm-utils.sh.diff?cvsroot=lvm2&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/mkdtemp.diff?cvsroot=lvm2&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t0000-basic.sh.diff?cvsroot=lvm2&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t3000-lvcreate-pvtags.sh.diff?cvsroot=lvm2&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t4000-pv-range-overflow.sh.diff?cvsroot=lvm2&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/test-lib.sh.diff?cvsroot=lvm2&r1=NONE&r2=1.1
Makefile.in +3 -0
@@ -68,3 +68,6 @@ @CSCOPE_CMD@ -b -R all: cscope.out endif + +check: all + $(MAKE) -C test all
configure +2 -1
@@ -11591,7 +11591,7 @@ ################################################################################ -ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile dmeventd/Makefile dmeventd/mirror/Makefile doc/Makefile include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/snapshot/Makefile man/Makefile po/Makefile scripts/Makefile tools/Makefile tools/version.h tools/fsadm/Makefile test/mm/Makefile test/device/Makefile test/format1/Makefile test/regex/Makefile test/filters/Makefile" +ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile dmeventd/Makefile dmeventd/mirror/Makefile doc/Makefile include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/snapshot/Makefile man/Makefile po/Makefile scripts/Makefile tools/Makefile tools/version.h tools/fsadm/Makefile test/mm/Makefile test/device/Makefile test/format1/Makefile test/regex/Makefile test/filters/Makefile test/Makefile" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure
@@ -12206,6 +12206,7 @@ "test/format1/Makefile") CONFIG_FILES="$CONFIG_FILES test/format1/Makefile" ;; "test/regex/Makefile") CONFIG_FILES="$CONFIG_FILES test/regex/Makefile" ;; "test/filters/Makefile") CONFIG_FILES="$CONFIG_FILES test/filters/Makefile" ;; + "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
configure.in +2 -1
@@ -1,6 +1,6 @@ ## ## Copyright (C) 2000-2004 Sistina Software, Inc. All rights reserved. -## Copyright (C) 2004 Red Hat, Inc. All rights reserved. +## Copyright (C) 2004, 2007 Red Hat, Inc. All rights reserved. ## ## This file is part of the LVM2. ##
@@ -649,6 +649,7 @@ lib/locking/Makefile \ lib/mirror/Makefile \ lib/snapshot/Makefile \ +test/Makefile \ man/Makefile \ po/Makefile \ scripts/Makefile \
/cvs/lvm2/LVM2/test/.gitignore,v --> standard output revision 1.1
- renamed from test/.gitignore +4 -0
@@ -0,0 +1,4 @@ +.bin-dir-stamp +Makefile +bin +init.sh
/cvs/lvm2/LVM2/test/Makefile.in,v --> standard output revision 1.1
- renamed from test/Makefile.in +75 -0
75 lines not on this page · raw message
/cvs/lvm2/LVM2/test/lvm-utils.sh,v --> standard output revision 1.1
- renamed from test/lvm-utils.sh +47 -0
47 lines not on this page · raw message
/cvs/lvm2/LVM2/test/mkdtemp,v --> standard output revision 1.1
- renamed from test/mkdtemp +107 -0
107 lines not on this page · raw message
/cvs/lvm2/LVM2/test/t0000-basic.sh,v --> standard output revision 1.1
- renamed from test/t0000-basic.sh +26 -0
@@ -0,0 +1,26 @@ +#!/bin/sh + +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/t3000-lvcreate-pvtags.sh,v --> standard output revision 1.1
- renamed from test/t3000-lvcreate-pvtags.sh +70 -0
70 lines not on this page · raw message
/cvs/lvm2/LVM2/test/t4000-pv-range-overflow.sh,v --> standard output revision 1.1
- renamed from test/t4000-pv-range-overflow.sh +52 -0
52 lines not on this page · raw message
/cvs/lvm2/LVM2/test/test-lib.sh,v --> standard output revision 1.1
- renamed from test/test-lib.sh +251 -0
251 lines not on this page · raw message