mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
xfstests: move remaining tests out of top level directory
These are tests that are shared between multiple filesystems (moved to shared), and udf/btrfs/ext4 specific tests, moved to appropriate directories. I created the "shared" directory to indicate tests that are not truly generic, but also not filesystem specific. They might rely on a feature that is only implmented in a few filesystems and so can't be truly generic. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Phil White <pwhite@sgi.com> [rjohnston@sgi.com reworked for TOT changes] Signed-off-by: Rich Johnston <rjohnston@sgi.com>
This commit is contained in:
committed by
Rich Johnston
parent
fc48dfb966
commit
8ff10d6d1c
@@ -36,9 +36,8 @@ here=`pwd`
|
||||
FSTYP=xfs
|
||||
|
||||
SUPPORTED_TESTS="[0-9][0-9][0-9] [0-9][0-9][0-9][0-9]"
|
||||
TEST_GROUP_DIR="tests"
|
||||
GENERIC_GROUP_DIR="$TEST_GROUP_DIR/generic"
|
||||
XFS_GROUP_DIR="$TEST_GROUP_DIR/xfs"
|
||||
SRC_DIR="tests"
|
||||
SRC_GROUPS="generic shared"
|
||||
|
||||
# generic initialization
|
||||
iam=check
|
||||
@@ -87,13 +86,12 @@ _setenvironment()
|
||||
get_group_list()
|
||||
{
|
||||
grp=$1
|
||||
dirs=". $GENERIC_GROUP_DIR $XFS_GROUP_DIR"
|
||||
|
||||
for d in $dirs; do
|
||||
l=$(sed -n < $d/group \
|
||||
for d in $SRC_GROUPS $FSTYP; do
|
||||
l=$(sed -n < $SRC_DIR/$d/group \
|
||||
-e 's/#.*//' \
|
||||
-e 's/$/ /' \
|
||||
-e "s;\(^[0-9][0-9][0-9]\).* $grp .*;$d/\1;p")
|
||||
-e "s;\(^[0-9][0-9][0-9]\).* $grp .*;$SRC_DIR/$d/\1;p")
|
||||
grpl="$grpl $l"
|
||||
done
|
||||
echo $grpl
|
||||
@@ -297,7 +295,7 @@ END { if (NR > 0) {
|
||||
|
||||
echo "" >>check.log
|
||||
date >>check.log
|
||||
echo $list | fmt | sed -e 's/^/ /' -e 's;tests/;;g' >>check.log
|
||||
echo $list | fmt | sed -e 's/^/ /' -e "s;$SRC_DIR/;;g" >>check.log
|
||||
$interrupt && echo "Interrupted!" >>check.log
|
||||
|
||||
if [ ! -z "$n_try" -a $n_try != 0 ]
|
||||
@@ -378,7 +376,7 @@ do
|
||||
|
||||
# the filename for the test and the name output are different.
|
||||
# we don't include the tests/ directory in the name output.
|
||||
seqnum=`echo $seq | sed -e 's;tests/;;'`
|
||||
seqnum=`echo $seq | sed -e "s;$SRC_DIR/;;"`
|
||||
|
||||
echo -n "$seqnum"
|
||||
|
||||
|
||||
@@ -3,29 +3,3 @@
|
||||
# - do not start group names with a digit
|
||||
# - comment line before each group is "new" description
|
||||
#
|
||||
# test-group association ... one line per test
|
||||
#
|
||||
032 mkfs auto quick
|
||||
040 other auto
|
||||
051 acl udf auto quick
|
||||
098 udf auto
|
||||
101 udf
|
||||
102 udf
|
||||
177 rw other auto
|
||||
218 auto fsr quick
|
||||
243 auto quick prealloc
|
||||
254 auto quick
|
||||
264 auto
|
||||
265 auto
|
||||
271 auto rw quick
|
||||
272 auto enospc rw
|
||||
276 auto rw metadata
|
||||
284 auto
|
||||
289 auto quick
|
||||
298 auto trim
|
||||
301 aio dangerous ioctl rw stress
|
||||
302 aio dangerous ioctl rw stress
|
||||
303 aio dangerous ioctl rw stress
|
||||
304 aio dangerous ioctl rw stress
|
||||
305 aio dangerous enospc rw stress
|
||||
307 auto quick
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
# QA groups control file
|
||||
# Defines test groups and nominal group owners
|
||||
# - do not start group names with a digit
|
||||
# - comment line before each group is "new" description
|
||||
#
|
||||
254 auto quick
|
||||
264 auto
|
||||
265 auto
|
||||
276 auto rw metadata
|
||||
284 auto
|
||||
307 auto quick
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user