public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xfstests: skip dump tests if dump utils not found
@ 2009-04-19 20:54 Eric Sandeen
  2009-04-19 21:38 ` Christoph Hellwig
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Eric Sandeen @ 2009-04-19 20:54 UTC (permalink / raw)
  To: xfs-oss

I was running xfstests on a NAS box which had no xfsdump,
and any tests which required xfsdump were failing in not-so-nice
ways:

> xfsdump not found
038      [failed, exit status 1] - output mismatch (see 038.out.bad)

I think using _notrun is a lot better:

038      [not run] xfsdump not found

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
---

diff --git a/common.dump b/common.dump
index 6d2f120..fcc4945 100644
--- a/common.dump
+++ b/common.dump
@@ -23,9 +23,9 @@ if [ -n "$DEBUGDUMP" ]; then
 	[ -x $here/xfsinvutil ] && echo "Using xfstests' xfsinvutil for debug"
 fi
 
-[ "$XFSDUMP_PROG" = "" ]    && _fatal "xfsdump not found"
-[ "$XFSRESTORE_PROG" = "" ] && _fatal "xfsrestore not found"
-[ "$XFSINVUTIL_PROG" = "" ] && _fatal "xfsinvutil not found"
+[ "$XFSDUMP_PROG" = "" ]    && _notrun "xfsdump not found"
+[ "$XFSRESTORE_PROG" = "" ] && _notrun "xfsrestore not found"
+[ "$XFSINVUTIL_PROG" = "" ] && _notrun "xfsinvutil not found"
 
 # status returned for not run tests
 NOTRUNSTS=2


_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

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

* Re: [PATCH] xfstests: skip dump tests if dump utils not found
  2009-04-19 20:54 [PATCH] xfstests: skip dump tests if dump utils not found Eric Sandeen
@ 2009-04-19 21:38 ` Christoph Hellwig
  2009-04-19 21:43 ` Josef 'Jeff' Sipek
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 7+ messages in thread
From: Christoph Hellwig @ 2009-04-19 21:38 UTC (permalink / raw)
  To: Eric Sandeen; +Cc: xfs-oss

On Sun, Apr 19, 2009 at 03:54:40PM -0500, Eric Sandeen wrote:
> I was running xfstests on a NAS box which had no xfsdump,
> and any tests which required xfsdump were failing in not-so-nice
> ways:
> 
> > xfsdump not found
> 038      [failed, exit status 1] - output mismatch (see 038.out.bad)
> 
> I think using _notrun is a lot better:
> 
> 038      [not run] xfsdump not found
> 
> Signed-off-by: Eric Sandeen <sandeen@sandeen.net>

Looks good.

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

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

* Re: [PATCH] xfstests: skip dump tests if dump utils not found
  2009-04-19 20:54 [PATCH] xfstests: skip dump tests if dump utils not found Eric Sandeen
  2009-04-19 21:38 ` Christoph Hellwig
@ 2009-04-19 21:43 ` Josef 'Jeff' Sipek
  2009-04-19 21:50 ` [PATCH] xfstests: skip fsr tests if xfs_fsr " Eric Sandeen
  2009-04-19 22:13 ` [PATCH] xfstests: skip dump tests if dump " Felix Blyakher
  3 siblings, 0 replies; 7+ messages in thread
From: Josef 'Jeff' Sipek @ 2009-04-19 21:43 UTC (permalink / raw)
  To: Eric Sandeen; +Cc: xfs-oss

On Sun, Apr 19, 2009 at 03:54:40PM -0500, Eric Sandeen wrote:
> I was running xfstests on a NAS box which had no xfsdump,
> and any tests which required xfsdump were failing in not-so-nice
> ways:
> 
> > xfsdump not found
> 038      [failed, exit status 1] - output mismatch (see 038.out.bad)
> 
> I think using _notrun is a lot better:
> 
> 038      [not run] xfsdump not found
> 
> Signed-off-by: Eric Sandeen <sandeen@sandeen.net>

Sounds good.

Josef 'Jeff' Sipek.

-- 
Bad pun of the week: The formula 1 control computer suffered from a race
condition

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

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

* [PATCH] xfstests: skip fsr tests if xfs_fsr utils not found
  2009-04-19 20:54 [PATCH] xfstests: skip dump tests if dump utils not found Eric Sandeen
  2009-04-19 21:38 ` Christoph Hellwig
  2009-04-19 21:43 ` Josef 'Jeff' Sipek
@ 2009-04-19 21:50 ` Eric Sandeen
  2009-04-19 22:14   ` Felix Blyakher
  2009-04-21 14:14   ` Christoph Hellwig
  2009-04-19 22:13 ` [PATCH] xfstests: skip dump tests if dump " Felix Blyakher
  3 siblings, 2 replies; 7+ messages in thread
From: Eric Sandeen @ 2009-04-19 21:50 UTC (permalink / raw)
  To: xfs-oss

Similar to the xfsdump-related patch; gracefully fail
if no xfs_fsr is found.

I'll probably send another for the acl & attr userspace,
it's actually not always installed on minimal boxes.

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
---

diff --git a/042 b/042
index 7c2bcac..6628040 100755
--- a/042
+++ b/042
@@ -37,6 +37,8 @@ _supported_os IRIX Linux
 
 _require_scratch
 
+[ "$XFS_FSR_PROG" = "" ] && _notrun "xfs_fsr not found"
+
 _cull_files()
 {
     perl -e "\$manifest=\"$tmp.manifest\";" -e '
diff --git a/111 b/111
index 060c0bc..3ce4ee1 100755
--- a/111
+++ b/111
@@ -27,6 +27,8 @@ _supported_fs xfs
 _supported_os Linux
 _require_scratch
 
+[ "$XFS_FSR_PROG" = "" ] && _notrun "xfs_fsr not found"
+
 # real QA test starts here
 umount $SCRATCH_DEV 2>/dev/null
 MKFS_OPTIONS="-bsize=4096"


_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

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

* Re: [PATCH] xfstests: skip dump tests if dump utils not found
  2009-04-19 20:54 [PATCH] xfstests: skip dump tests if dump utils not found Eric Sandeen
                   ` (2 preceding siblings ...)
  2009-04-19 21:50 ` [PATCH] xfstests: skip fsr tests if xfs_fsr " Eric Sandeen
@ 2009-04-19 22:13 ` Felix Blyakher
  3 siblings, 0 replies; 7+ messages in thread
From: Felix Blyakher @ 2009-04-19 22:13 UTC (permalink / raw)
  To: Eric Sandeen; +Cc: xfs-oss


On Apr 19, 2009, at 3:54 PM, Eric Sandeen wrote:

> I was running xfstests on a NAS box which had no xfsdump,
> and any tests which required xfsdump were failing in not-so-nice
> ways:
>
>> xfsdump not found
> 038      [failed, exit status 1] - output mismatch (see 038.out.bad)
>
> I think using _notrun is a lot better:
>
> 038      [not run] xfsdump not found
>
> Signed-off-by: Eric Sandeen <sandeen@sandeen.net>

Seems good.

Felix

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

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

* Re: [PATCH] xfstests: skip fsr tests if xfs_fsr utils not found
  2009-04-19 21:50 ` [PATCH] xfstests: skip fsr tests if xfs_fsr " Eric Sandeen
@ 2009-04-19 22:14   ` Felix Blyakher
  2009-04-21 14:14   ` Christoph Hellwig
  1 sibling, 0 replies; 7+ messages in thread
From: Felix Blyakher @ 2009-04-19 22:14 UTC (permalink / raw)
  To: Eric Sandeen; +Cc: xfs-oss


On Apr 19, 2009, at 4:50 PM, Eric Sandeen wrote:

> Similar to the xfsdump-related patch; gracefully fail
> if no xfs_fsr is found.
>
> I'll probably send another for the acl & attr userspace,
> it's actually not always installed on minimal boxes.
>
> Signed-off-by: Eric Sandeen <sandeen@sandeen.net>

Looks good.

Felix

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

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

* Re: [PATCH] xfstests: skip fsr tests if xfs_fsr utils not found
  2009-04-19 21:50 ` [PATCH] xfstests: skip fsr tests if xfs_fsr " Eric Sandeen
  2009-04-19 22:14   ` Felix Blyakher
@ 2009-04-21 14:14   ` Christoph Hellwig
  1 sibling, 0 replies; 7+ messages in thread
From: Christoph Hellwig @ 2009-04-21 14:14 UTC (permalink / raw)
  To: Eric Sandeen; +Cc: xfs-oss

On Sun, Apr 19, 2009 at 04:50:59PM -0500, Eric Sandeen wrote:
> Similar to the xfsdump-related patch; gracefully fail
> if no xfs_fsr is found.
> 
> I'll probably send another for the acl & attr userspace,
> it's actually not always installed on minimal boxes.

Looks good, too.

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

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

end of thread, other threads:[~2009-04-21 14:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-19 20:54 [PATCH] xfstests: skip dump tests if dump utils not found Eric Sandeen
2009-04-19 21:38 ` Christoph Hellwig
2009-04-19 21:43 ` Josef 'Jeff' Sipek
2009-04-19 21:50 ` [PATCH] xfstests: skip fsr tests if xfs_fsr " Eric Sandeen
2009-04-19 22:14   ` Felix Blyakher
2009-04-21 14:14   ` Christoph Hellwig
2009-04-19 22:13 ` [PATCH] xfstests: skip dump tests if dump " Felix Blyakher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox