]> www.infradead.org Git - users/hch/xfstests-dev.git/commitdiff
xfstests: move remaining tests out of top level directory
authorDave Chinner <dchinner@redhat.com>
Fri, 15 Mar 2013 12:27:58 +0000 (12:27 +0000)
committerRich Johnston <rjohnston@sgi.com>
Wed, 27 Mar 2013 01:45:43 +0000 (20:45 -0500)
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>
58 files changed:
check
group
tests/btrfs/254 [moved from 254 with 100% similarity]
tests/btrfs/254.out [moved from 254.out with 100% similarity]
tests/btrfs/264 [moved from 264 with 100% similarity]
tests/btrfs/264.out [moved from 264.out with 100% similarity]
tests/btrfs/265 [moved from 265 with 100% similarity]
tests/btrfs/265.out [moved from 265.out with 100% similarity]
tests/btrfs/276 [moved from 276 with 100% similarity]
tests/btrfs/276.out [moved from 276.out with 100% similarity]
tests/btrfs/284 [moved from 284 with 100% similarity]
tests/btrfs/284.out [moved from 284.out with 100% similarity]
tests/btrfs/307 [moved from 307 with 100% similarity]
tests/btrfs/307.out [moved from 307.out with 100% similarity]
tests/btrfs/group [new file with mode: 0644]
tests/ext4/271 [moved from 271 with 100% similarity]
tests/ext4/271.out [moved from 271.out with 100% similarity]
tests/ext4/301 [moved from 301 with 100% similarity]
tests/ext4/301.out [moved from 301.out with 100% similarity]
tests/ext4/302 [moved from 302 with 100% similarity]
tests/ext4/302.out [moved from 302.out with 100% similarity]
tests/ext4/303 [moved from 303 with 100% similarity]
tests/ext4/303.out [moved from 303.out with 100% similarity]
tests/ext4/304 [moved from 304 with 100% similarity]
tests/ext4/304.out [moved from 304.out with 100% similarity]
tests/ext4/group [new file with mode: 0644]
tests/shared/032 [moved from 032 with 100% similarity]
tests/shared/032.out [moved from 032.out with 100% similarity]
tests/shared/051 [moved from 051 with 100% similarity]
tests/shared/051.out [moved from 051.out with 100% similarity]
tests/shared/218 [moved from 218 with 100% similarity]
tests/shared/218.out [moved from 218.out with 100% similarity]
tests/shared/243 [moved from 243 with 100% similarity]
tests/shared/243.out [moved from 243.out with 100% similarity]
tests/shared/272 [moved from 272 with 100% similarity]
tests/shared/272.out [moved from 272.out with 100% similarity]
tests/shared/289 [moved from 289 with 100% similarity]
tests/shared/289.out [moved from 289.out with 100% similarity]
tests/shared/298 [moved from 298 with 100% similarity]
tests/shared/298.out [moved from 298.out with 100% similarity]
tests/shared/305 [moved from 305 with 100% similarity]
tests/shared/305.out [moved from 305.out with 100% similarity]
tests/shared/group [new file with mode: 0644]
tests/udf/098 [moved from 098 with 100% similarity]
tests/udf/098.out [moved from 098.out with 100% similarity]
tests/udf/101 [moved from 101 with 100% similarity]
tests/udf/101.out [moved from 101.out with 100% similarity]
tests/udf/102 [moved from 102 with 100% similarity]
tests/udf/102.out [moved from 102.out with 100% similarity]
tests/udf/group [new file with mode: 0644]
tests/xfs/040 [moved from 040 with 100% similarity]
tests/xfs/040.good [moved from 040.good with 100% similarity]
tests/xfs/040.out [moved from 040.out with 100% similarity]
tests/xfs/177 [moved from 177 with 100% similarity]
tests/xfs/177.out [moved from 177.out with 100% similarity]
tests/xfs/252 [moved from 252 with 100% similarity]
tests/xfs/252.out [moved from 252.out with 100% similarity]
tests/xfs/group

diff --git a/check b/check
index 42b25b562ffe05c11af98f4cea96b988790a0399..195c25d1ea3c87128878ac788691e4b4d077d29d 100755 (executable)
--- a/check
+++ b/check
@@ -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"
 
diff --git a/group b/group
index d1469709aca4d531e146a613dc59bb7d1f54866e..4e01f0c1d480e3bfd3947f2192cfcdbde4d1dd0c 100644 (file)
--- a/group
+++ b/group
@@ -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
similarity index 100%
rename from 254
rename to tests/btrfs/254
similarity index 100%
rename from 254.out
rename to tests/btrfs/254.out
similarity index 100%
rename from 264
rename to tests/btrfs/264
similarity index 100%
rename from 264.out
rename to tests/btrfs/264.out
similarity index 100%
rename from 265
rename to tests/btrfs/265
similarity index 100%
rename from 265.out
rename to tests/btrfs/265.out
similarity index 100%
rename from 276
rename to tests/btrfs/276
similarity index 100%
rename from 276.out
rename to tests/btrfs/276.out
similarity index 100%
rename from 284
rename to tests/btrfs/284
similarity index 100%
rename from 284.out
rename to tests/btrfs/284.out
similarity index 100%
rename from 307
rename to tests/btrfs/307
similarity index 100%
rename from 307.out
rename to tests/btrfs/307.out
diff --git a/tests/btrfs/group b/tests/btrfs/group
new file mode 100644 (file)
index 0000000..bc6c256
--- /dev/null
@@ -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
similarity index 100%
rename from 271
rename to tests/ext4/271
similarity index 100%
rename from 271.out
rename to tests/ext4/271.out
similarity index 100%
rename from 301
rename to tests/ext4/301
similarity index 100%
rename from 301.out
rename to tests/ext4/301.out
similarity index 100%
rename from 302
rename to tests/ext4/302
similarity index 100%
rename from 302.out
rename to tests/ext4/302.out
similarity index 100%
rename from 303
rename to tests/ext4/303
similarity index 100%
rename from 303.out
rename to tests/ext4/303.out
similarity index 100%
rename from 304
rename to tests/ext4/304
similarity index 100%
rename from 304.out
rename to tests/ext4/304.out
diff --git a/tests/ext4/group b/tests/ext4/group
new file mode 100644 (file)
index 0000000..6a44db3
--- /dev/null
@@ -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
+#
+271 auto rw quick
+301 aio dangerous ioctl rw stress
+302 aio dangerous ioctl rw stress
+303 aio dangerous ioctl rw stress
+304 aio dangerous ioctl rw stress
+
similarity index 100%
rename from 032
rename to tests/shared/032
similarity index 100%
rename from 032.out
rename to tests/shared/032.out
similarity index 100%
rename from 051
rename to tests/shared/051
similarity index 100%
rename from 051.out
rename to tests/shared/051.out
similarity index 100%
rename from 218
rename to tests/shared/218
similarity index 100%
rename from 218.out
rename to tests/shared/218.out
similarity index 100%
rename from 243
rename to tests/shared/243
similarity index 100%
rename from 243.out
rename to tests/shared/243.out
similarity index 100%
rename from 272
rename to tests/shared/272
similarity index 100%
rename from 272.out
rename to tests/shared/272.out
similarity index 100%
rename from 289
rename to tests/shared/289
similarity index 100%
rename from 289.out
rename to tests/shared/289.out
similarity index 100%
rename from 298
rename to tests/shared/298
similarity index 100%
rename from 298.out
rename to tests/shared/298.out
similarity index 100%
rename from 305
rename to tests/shared/305
similarity index 100%
rename from 305.out
rename to tests/shared/305.out
diff --git a/tests/shared/group b/tests/shared/group
new file mode 100644 (file)
index 0000000..0ad640b
--- /dev/null
@@ -0,0 +1,14 @@
+# 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
+#
+032 mkfs auto quick
+051 acl udf auto quick
+218 auto fsr quick
+243 auto quick prealloc
+272 auto enospc rw
+289 auto quick
+298 auto trim
+305 aio dangerous enospc rw stress
+
similarity index 100%
rename from 098
rename to tests/udf/098
similarity index 100%
rename from 098.out
rename to tests/udf/098.out
similarity index 100%
rename from 101
rename to tests/udf/101
similarity index 100%
rename from 101.out
rename to tests/udf/101.out
similarity index 100%
rename from 102
rename to tests/udf/102
similarity index 100%
rename from 102.out
rename to tests/udf/102.out
diff --git a/tests/udf/group b/tests/udf/group
new file mode 100644 (file)
index 0000000..24f682c
--- /dev/null
@@ -0,0 +1,8 @@
+# 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
+#
+098 udf auto
+101 udf
+102 udf
similarity index 100%
rename from 040
rename to tests/xfs/040
similarity index 100%
rename from 040.good
rename to tests/xfs/040.good
similarity index 100%
rename from 040.out
rename to tests/xfs/040.out
similarity index 100%
rename from 177
rename to tests/xfs/177
similarity index 100%
rename from 177.out
rename to tests/xfs/177.out
similarity index 100%
rename from 252
rename to tests/xfs/252
similarity index 100%
rename from 252.out
rename to tests/xfs/252.out
index 4d7f06f3463ce5463351468bb7c0247edec2a163..425bc0a7a795e5ebbb4d032ba11119715fde1d5e 100644 (file)
@@ -25,6 +25,7 @@
 037 dump ioctl remote tape
 038 dump ioctl remote tape
 039 dump ioctl remote tape
+040 other auto
 041 growfs ioctl auto
 042 fsr ioctl auto
 043 dump ioctl tape
 174 rw filestreams auto
 175 dmapi auto
 176 dmapi auto
+177 rw other auto
 178 mkfs other auto
 179 metadata rw auto
 180 metadata rw auto
 242 auto quick prealloc
 244 auto quota quick
 250 auto quick rw prealloc metadata
+252 auto quick prealloc
 253 auto quick
 259 auto quick
 261 auto quick quota