public inbox for lvm2-cvs@sourceware.org
help / color / mirror / Atom feed
* LVM2/test t-000-basic.sh
@ 2010-04-20 15:19 wysochanski
  0 siblings, 0 replies; 3+ messages in thread
From: wysochanski @ 2010-04-20 15:19 UTC (permalink / raw)
  To: lvm-devel, lvm2-cvs

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	wysochanski@sourceware.org	2010-04-20 15:19:36

Modified files:
	test           : t-000-basic.sh 

Log message:
	Add device creation to basic nightly test.
	
	Ensure we can create devices for use in tests before running the real
	tests.  This may in various cases, and may involve machine configuration
	rather than a failure in some specific test.
	For example, if a test is run with LVM_TEST_DIR=/tmp, selinux is enabled,
	and the default security context is set to "<<none>>" for /tmp, all the
	tests will fail, unable to create devices, since dmsetup will fail, a
	result of machpathcon() returning an error code.
	
	Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>

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

--- LVM2/test/t-000-basic.sh	2010/04/07 14:46:26	1.8
+++ LVM2/test/t-000-basic.sh	2010/04/20 15:19:36	1.9
@@ -24,3 +24,7 @@
   error "Can't create nodes on filesystem"
 echo >$DM_DEV_DIR/null || 
   error "Filesystem for tests does not allow using device nodes (check nodev)"
+
+# ensure we can create devices (uses dmsetup, etc)
+aux prepare_devs 5
+


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

* LVM2/test t-000-basic.sh
@ 2009-07-13 12:42 mornfall
  0 siblings, 0 replies; 3+ messages in thread
From: mornfall @ 2009-07-13 12:42 UTC (permalink / raw)
  To: lvm-devel, lvm2-cvs

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	mornfall@sourceware.org	2009-07-13 12:42:27

Modified files:
	test           : t-000-basic.sh 

Log message:
	Get rid of the mdadm presence check in t-000-basic: no actual test uses
	it. When we need mdadm in the tests, we can easily do 'which mdadm || exit 200'
	to skip the test.

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

--- LVM2/test/t-000-basic.sh	2009/02/22 22:11:59	1.6
+++ LVM2/test/t-000-basic.sh	2009/07/13 12:42:26	1.7
@@ -20,10 +20,6 @@
 # ensure they are the same
 diff -u actual expected
 
-# Need mdadm for some pvcreate tests
-# verify mdadm is installed and in path (needed for pvcreate tests) ... is it?
-which mdadm
-
 mknod $G_root_/dev/null c 1 3 ||
   error "Can't create nodes on filesystem"
 echo >$G_root_/dev/null || 


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

* LVM2/test t-000-basic.sh
@ 2007-12-05  9:49 meyering
  0 siblings, 0 replies; 3+ messages in thread
From: meyering @ 2007-12-05  9:49 UTC (permalink / raw)
  To: lvm-devel, lvm2-cvs

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	meyering@sourceware.org	2007-12-05 09:49:08

Modified files:
	test           : t-000-basic.sh 

Log message:
	Avoid spurious test failure when compiled with readline support.
	
	* test/t-000-basic.sh: Invoke initial test of lvm with its "version"
	argument, so that the behavior of the tool doesn't depend on whether
	readline was enabled at configure time.
	
	Author: Jun'ichi Nomura <j-nomura@ce.jp.nec.com>
	Committer: Jim Meyering <meyering@redhat.com>

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

--- LVM2/test/t-000-basic.sh	2007/09/21 17:12:13	1.1
+++ LVM2/test/t-000-basic.sh	2007/12/05 09:49:08	1.2
@@ -13,8 +13,8 @@
 
 . ./test-lib.sh
 
-lvm >/dev/null 2>&1
-if test $? != 3; then
+lvm version >/dev/null 2>&1
+if test $? != 0; then
     echo >&2 'You do not seem to have built lvm yet.'
     exit 1
 fi


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

end of thread, other threads:[~2010-04-20 15:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-20 15:19 LVM2/test t-000-basic.sh wysochanski
  -- strict thread matches above, loose matches on Subject: below --
2009-07-13 12:42 mornfall
2007-12-05  9:49 meyering

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