From: Eric Sandeen <sandeen@sandeen.net>
To: xfs mailing list <xfs@oss.sgi.com>
Subject: [PATCH 2/3] xfstests: make 053 and 077 generic
Date: Wed, 03 Feb 2010 15:38:37 -0600 [thread overview]
Message-ID: <4B69ECDD.8050806@sandeen.net> (raw)
In-Reply-To: <4B69EC23.8040207@sandeen.net>
053 and 077 can be generic w/ a little tweaking.
Also change 077's filler to something more likely
to be on a random system under test, and add it
to the enospc group.
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
---
diff --git a/053 b/053
index 98644a7..439cbe6 100755
--- a/053
+++ b/053
@@ -38,18 +38,17 @@ trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
. ./common.attr
# real QA test starts here
-_supported_fs xfs
+_supported_fs generic
_supported_os Linux
-[ ! -x /bin/chacl -a ! -x /usr/bin/chacl ] && _notrun "chacl command not found"
-
_require_scratch
+_acl_requirements
_acl_setup_ids
_do_die_on_error=y
test=$SCRATCH_MNT/test
# make filesystem on scratch using the defaults
-_do 'make filesystem on $SCRATCH_DEV' '_scratch_mkfs_xfs'
+_do 'make filesystem on $SCRATCH_DEV' '_scratch_mkfs'
_do 'mount filesytem' '_scratch_mount'
# create test files and set acls
@@ -84,7 +83,7 @@ list_acls()
echo "acls before repair:"
list_acls
_do 'unmount $SCRATCH_DEV' 'umount $SCRATCH_DEV'
-_do 'repair filesystem' '_scratch_xfs_repair'
+_do 'repair filesystem' '_check_scratch_fs'
_do 'mount filesytem' '_scratch_mount'
echo "acls after repair: "
list_acls
diff --git a/077 b/077
index cdee8da..a3d9334 100755
--- a/077
+++ b/077
@@ -30,8 +30,8 @@ echo "QA output created by $seq"
here=`pwd`
tmp=/tmp/$$
status=1
-#filler=$here/../../linux
-filler=/home/fsgqa/isms/2.4.x-xfs
+# Something w/ enough data to fill 50M of fs...
+filler=/lib/modules/
_cleanup()
{
@@ -44,14 +44,16 @@ trap "_cleanup; rm -f $tmp.*; exit \$status" 0 1 2 3 15
# get standard environment, filters and checks
. ./common.rc
. ./common.filter
+. ./common.attr
# real QA test starts here
-_supported_fs xfs
+_supported_fs generic
_supported_os Linux
-[ ! -d $filler ] && _notrun "No linux directory to source files from"
+[ ! -d $filler ] && _notrun "No directory to source files from"
_require_scratch
+_acl_requirements
echo "*** create filesystem"
@@ -59,7 +61,8 @@ rm -f $seq.full
umount $SCRATCH_DEV >/dev/null 2>&1
echo "*** MKFS ***" >>$seq.full
echo "" >>$seq.full
-_scratch_mkfs_xfs -dsize=50m >>$seq.full 2>&1 \
+let SIZE=50*1024*1024
+_scratch_mkfs_sized $SIZE >>$seq.full 2>&1 \
|| _fail "mkfs failed"
_scratch_mount >>$seq.full 2>&1 \
|| _fail "mount failed"
diff --git a/group b/group
index 6b8528f..c66d965 100644
--- a/group
+++ b/group
@@ -187,7 +187,7 @@ deprecated
074 rw udf auto
075 rw udf auto quick
076 metadata rw udf auto quick
-077 acl attr auto
+077 acl attr auto enospc
078 growfs auto quick
079 acl attr ioctl metadata auto quick
080 rw ioctl
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
next prev parent reply other threads:[~2010-02-03 21:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-03 21:35 [PATCH 0/3] resending a few xfstests patches as a series Eric Sandeen
2010-02-03 21:37 ` [PATCH 1/3] xfstests: routine to create scratch of certain size Eric Sandeen
2010-02-05 9:37 ` Christoph Hellwig
2010-02-03 21:38 ` Eric Sandeen [this message]
2010-02-05 9:37 ` [PATCH 2/3] xfstests: make 053 and 077 generic Christoph Hellwig
2010-02-03 21:41 ` [PATCH 3/3] xfstests: rename _acl_requirements to _require_acls Eric Sandeen
2010-02-05 9:38 ` Christoph Hellwig
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B69ECDD.8050806@sandeen.net \
--to=sandeen@sandeen.net \
--cc=xfs@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.