]> www.infradead.org Git - users/hch/xfstests-dev.git/commitdiff
tests: make shared/051 a generic test
authorEric Biggers <ebiggers@google.com>
Fri, 21 Jul 2017 04:22:05 +0000 (21:22 -0700)
committerEryu Guan <eguan@redhat.com>
Mon, 24 Jul 2017 04:23:39 +0000 (12:23 +0800)
The ACL test shared/051 was very similar to generic/099 which was not
being run and was just removed; most likely the script was copy+pasted
at some point.  Since shared/051 has been getting maintained+run and is
not really XFS and UDF-specific, move it to generic, reusing the old
number of 099.  One change was required for it to work on other
filesystems: the output of 'find' must be sorted.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/generic/099 [moved from tests/shared/051 with 98% similarity]
tests/generic/099.out [moved from tests/shared/051.out with 99% similarity]
tests/generic/group
tests/shared/group

similarity index 98%
rename from tests/shared/051
rename to tests/generic/099
index 298838e70a06d06db4476f86f6f53ba64731e7ad..f65c53f12620e8cdf59c093f7ebed5c075f2f252 100755 (executable)
@@ -1,5 +1,5 @@
 #! /bin/bash
-# FS QA Test No. 051
+# FS QA Test No. 099
 #
 # Test out ACLs.
 #
@@ -67,7 +67,7 @@ _cleanup()
 #
 
 # real QA test starts here
-_supported_fs xfs udf
+_supported_fs generic
 _supported_os Linux
 _require_test
 _require_runas
@@ -292,10 +292,10 @@ popd >/dev/null
 chown -R 12345.54321 root
 echo "Change #1..."
 _runas -u 12345 -g 54321 -- chacl -r u::rwx,g::-w-,o::--x root
-find root -print | xargs chacl -l
+find root -print | sort | xargs chacl -l
 echo "Change #2..."
 _runas -u 12345 -g 54321 -- chacl -r u::---,g::---,o::--- root
-find root -print | xargs chacl -l
+find root -print | sort | xargs chacl -l
 
 #-------------------------------------------------------
 
similarity index 99%
rename from tests/shared/051.out
rename to tests/generic/099.out
index 2b5220f76decea5bc0141e88add65abfce05a0ae..94172420285e513f7f0c22e204bc5416a39309c9 100644 (file)
@@ -1,4 +1,4 @@
-QA output created by 051
+QA output created by 099
 
 === Test minimal ACE ===
 Setup file
@@ -111,6 +111,8 @@ acldir/file2 [u::r--,g::r--,o::---]
 Change #1...
 root [u::rwx,g::-w-,o::--x]
 root/a [u::rwx,g::-w-,o::--x]
+root/a/0 [u::rwx,g::-w-,o::--x]
+root/a/0/mumble [u::rwx,g::-w-,o::--x]
 root/a/1 [u::rwx,g::-w-,o::--x]
 root/a/1/mumble [u::rwx,g::-w-,o::--x]
 root/a/2 [u::rwx,g::-w-,o::--x]
@@ -129,9 +131,9 @@ root/a/8 [u::rwx,g::-w-,o::--x]
 root/a/8/mumble [u::rwx,g::-w-,o::--x]
 root/a/9 [u::rwx,g::-w-,o::--x]
 root/a/9/mumble [u::rwx,g::-w-,o::--x]
-root/a/0 [u::rwx,g::-w-,o::--x]
-root/a/0/mumble [u::rwx,g::-w-,o::--x]
 root/b [u::rwx,g::-w-,o::--x]
+root/b/c0 [u::rwx,g::-w-,o::--x]
+root/b/c0/0 [u::rwx,g::-w-,o::--x]
 root/b/c1 [u::rwx,g::-w-,o::--x]
 root/b/c1/1 [u::rwx,g::-w-,o::--x]
 root/b/c2 [u::rwx,g::-w-,o::--x]
@@ -150,11 +152,11 @@ root/b/c8 [u::rwx,g::-w-,o::--x]
 root/b/c8/8 [u::rwx,g::-w-,o::--x]
 root/b/c9 [u::rwx,g::-w-,o::--x]
 root/b/c9/9 [u::rwx,g::-w-,o::--x]
-root/b/c0 [u::rwx,g::-w-,o::--x]
-root/b/c0/0 [u::rwx,g::-w-,o::--x]
 Change #2...
 root [u::---,g::---,o::---]
 root/a [u::---,g::---,o::---]
+root/a/0 [u::---,g::---,o::---]
+root/a/0/mumble [u::---,g::---,o::---]
 root/a/1 [u::---,g::---,o::---]
 root/a/1/mumble [u::---,g::---,o::---]
 root/a/2 [u::---,g::---,o::---]
@@ -173,9 +175,9 @@ root/a/8 [u::---,g::---,o::---]
 root/a/8/mumble [u::---,g::---,o::---]
 root/a/9 [u::---,g::---,o::---]
 root/a/9/mumble [u::---,g::---,o::---]
-root/a/0 [u::---,g::---,o::---]
-root/a/0/mumble [u::---,g::---,o::---]
 root/b [u::---,g::---,o::---]
+root/b/c0 [u::---,g::---,o::---]
+root/b/c0/0 [u::---,g::---,o::---]
 root/b/c1 [u::---,g::---,o::---]
 root/b/c1/1 [u::---,g::---,o::---]
 root/b/c2 [u::---,g::---,o::---]
@@ -194,8 +196,6 @@ root/b/c8 [u::---,g::---,o::---]
 root/b/c8/8 [u::---,g::---,o::---]
 root/b/c9 [u::---,g::---,o::---]
 root/b/c9/9 [u::---,g::---,o::---]
-root/b/c0 [u::---,g::---,o::---]
-root/b/c0/0 [u::---,g::---,o::---]
 
 === Test out error messages for ACL text parsing  ===
 Note: Old interface gave more informative error msgs
index ae847c8a8e2b3dc337f8f241d725a0beedc3bc8d..e13b56836efdcef24431ce1c0420dcb70d60de88 100644 (file)
 096 auto prealloc quick zero
 097 attr auto quick
 098 auto quick metadata
+099 acl auto quick
 100 udf auto
 101 auto quick metadata
 102 auto rw
index fab933159f0aecbb5f0a1cc4df6d88e12560433a..b3663a03e17926069df02f920d32ddb23d37723f 100644 (file)
@@ -11,7 +11,6 @@
 006 auto enospc
 007 dangerous_fuzzers
 032 mkfs auto quick
-051 acl udf auto quick
 272 auto enospc rw
 289 auto quick
 298 auto trim