Test out the new acl text error msgs.
[xfstests-dev.git] / 051.out
diff --git a/051.out b/051.out
index 0d84941b50cd1b0d4266bd80f01170b004ae8332..50a84df301df22801e107476ca890f2ef39af1dc 100644 (file)
--- a/051.out
+++ b/051.out
@@ -8,6 +8,7 @@ Setup file
 file1 []
 Expect to FAIL
 chacl: "u::r--,g::rwx,o:rw-" is an invalid ACL specification.
+cannot find permission separator after char ":" (position 16)
 Expect to PASS
 file1 [u::r--,g::rwx,o::rw-]
 
@@ -21,27 +22,27 @@ file1 [u::r-x,g::---,o::---]
 Expect to PASS
 Test was executed
 Expect to FAIL
-sh: ./file1: Permission denied
+./file1: Permission denied
 
 --- Test group permissions ---
 file1 [u::---,g::r-x,o::---]
 Expect to FAIL - acl1 is owner
-sh: ./file1: Permission denied
+./file1: Permission denied
 Expect to PASS - acl2 matches group
 Test was executed
 Expect to PASS - acl2 matches sup group
 Test was executed
 Expect to FAIL - acl3 is not in group
-sh: ./file1: Permission denied
+./file1: Permission denied
 
 --- Test other permissions ---
 file1 [u::---,g::---,o::r-x]
 Expect to FAIL - acl1 is owner
-sh: ./file1: Permission denied
+./file1: Permission denied
 Expect to FAIL - acl2 is in group
-sh: ./file1: Permission denied
+./file1: Permission denied
 Expect to FAIL - acl2 is in sup. group
-sh: ./file1: Permission denied
+./file1: Permission denied
 Expect to PASS - acl3 is not owner or in group
 Test was executed
 
@@ -49,18 +50,20 @@ Test was executed
 
 --- Test adding a USER ACE ---
 Expect to FAIL as no MASK provided
-chacl: error setting access acl on "file1": Invalid argument
+chacl: "u::---,g::---,o::---,u:id2:r-x" is an invalid ACL specification.
+mask required and no mask
 Ensure that ACL has not been changed
 file1 [u::---,g::---,o::r-x]
 Expect to PASS - USER ACE matches user
 file1 [u::---,g::---,o::---,u:id2:r-x,m::rwx]
 Test was executed
 Expect to FAIL - USER ACE does not match user
-sh: ./file1: Permission denied
+./file1: Permission denied
 
 --- Test adding a GROUP ACE ---
 Expect to FAIL as no MASK provided
-chacl: error setting access acl on "file1": Invalid argument
+chacl: "u::---,g::---,o::---,g:id2:r-x" is an invalid ACL specification.
+mask required and no mask
 Ensure that ACL has not been changed
 file1 [u::---,g::---,o::---,u:id2:r-x,m::rwx]
 file1 [u::---,g::---,o::---,g:id2:r-x,m::rwx]
@@ -69,20 +72,20 @@ Test was executed
 Expect to PASS - GROUP ACE matches sup group
 Test was executed
 Expect to FAIL - GROUP ACE does not match group
-sh: ./file1: Permission denied
+./file1: Permission denied
 
 --- Test MASK ---
-file1 [u::---,g::---,o::---,g:id2:r-x,m::-wx]
+file1 [u::---,g::---,o::---,g:id2:r-x,m::-w-]
 Expect to FAIL as MASK prohibits execution
-./file1: ./file1: Permission denied
+./file1: Permission denied
 Expect to FAIL as MASK prohibits execution
-./file1: ./file1: Permission denied
+./file1: Permission denied
 Expect to PASS as MASK allows execution
 Test was executed
 
 --- Test ACE priority ---
 Expect to FAIL as should match on owner
-sh: ./file1: Permission denied
+./file1: Permission denied
 Expect to PASS as should match on user
 Test was executed
 
@@ -93,3 +96,134 @@ file1 [o::---,g::---,u::---]
 acldir [u::rwx,g::rwx,o::rwx/u::r-x,g::r--,o::---]
 -r--r----- 0 0 file2
 file2 [u::r--,g::r--,o::---]
+-r--r----- 0 0 file3
+file3 [u::r--,g::r--,o::---]
+
+=== Removing ACLs ===
+file1 [o::---,g::---,u::---]
+acldir [u::rwx,g::rwx,o::rwx/u::r-x,g::r--,o::---]
+acldir/file2 [u::r--,g::r--,o::---]
+Remove ACLs...
+file1 []
+acldir []
+acldir/file2 []
+
+=== Recursive change ACL ===
+Change #1...
+root [u::rwx,g::-w-,o::--x]
+root/a [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]
+root/a/2/mumble [u::rwx,g::-w-,o::--x]
+root/a/3 [u::rwx,g::-w-,o::--x]
+root/a/3/mumble [u::rwx,g::-w-,o::--x]
+root/a/4 [u::rwx,g::-w-,o::--x]
+root/a/4/mumble [u::rwx,g::-w-,o::--x]
+root/a/5 [u::rwx,g::-w-,o::--x]
+root/a/5/mumble [u::rwx,g::-w-,o::--x]
+root/a/6 [u::rwx,g::-w-,o::--x]
+root/a/6/mumble [u::rwx,g::-w-,o::--x]
+root/a/7 [u::rwx,g::-w-,o::--x]
+root/a/7/mumble [u::rwx,g::-w-,o::--x]
+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/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]
+root/b/c2/2 [u::rwx,g::-w-,o::--x]
+root/b/c3 [u::rwx,g::-w-,o::--x]
+root/b/c3/3 [u::rwx,g::-w-,o::--x]
+root/b/c4 [u::rwx,g::-w-,o::--x]
+root/b/c4/4 [u::rwx,g::-w-,o::--x]
+root/b/c5 [u::rwx,g::-w-,o::--x]
+root/b/c5/5 [u::rwx,g::-w-,o::--x]
+root/b/c6 [u::rwx,g::-w-,o::--x]
+root/b/c6/6 [u::rwx,g::-w-,o::--x]
+root/b/c7 [u::rwx,g::-w-,o::--x]
+root/b/c7/7 [u::rwx,g::-w-,o::--x]
+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/1 [u::---,g::---,o::---]
+root/a/1/mumble [u::---,g::---,o::---]
+root/a/2 [u::---,g::---,o::---]
+root/a/2/mumble [u::---,g::---,o::---]
+root/a/3 [u::---,g::---,o::---]
+root/a/3/mumble [u::---,g::---,o::---]
+root/a/4 [u::---,g::---,o::---]
+root/a/4/mumble [u::---,g::---,o::---]
+root/a/5 [u::---,g::---,o::---]
+root/a/5/mumble [u::---,g::---,o::---]
+root/a/6 [u::---,g::---,o::---]
+root/a/6/mumble [u::---,g::---,o::---]
+root/a/7 [u::---,g::---,o::---]
+root/a/7/mumble [u::---,g::---,o::---]
+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/c1 [u::---,g::---,o::---]
+root/b/c1/1 [u::---,g::---,o::---]
+root/b/c2 [u::---,g::---,o::---]
+root/b/c2/2 [u::---,g::---,o::---]
+root/b/c3 [u::---,g::---,o::---]
+root/b/c3/3 [u::---,g::---,o::---]
+root/b/c4 [u::---,g::---,o::---]
+root/b/c4/4 [u::---,g::---,o::---]
+root/b/c5 [u::---,g::---,o::---]
+root/b/c5/5 [u::---,g::---,o::---]
+root/b/c6 [u::---,g::---,o::---]
+root/b/c6/6 [u::---,g::---,o::---]
+root/b/c7 [u::---,g::---,o::---]
+root/b/c7/7 [u::---,g::---,o::---]
+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  ===
++ chacl u file1
+chacl: "u" is an invalid ACL specification.
+could not find qualifier separator after tag "u"
++ chacl u: file1
+chacl: "u:" is an invalid ACL specification.
+cannot find permission separator after char ":" (position 2)
++ chacl u:rumpledumpleunknownuser file1
+chacl: "u:rumpledumpleunknownuser" is an invalid ACL specification.
+cannot find permission separator after char ":" (position 2)
++ chacl u:rumpledumpleunknownuser: file1
+chacl: "u:rumpledumpleunknownuser:" is an invalid ACL specification.
+cannot find user "rumpledumpleunknownuser"
++ chacl g:rumpledumpleunknowngrp file1
+chacl: "g:rumpledumpleunknowngrp" is an invalid ACL specification.
+cannot find permission separator after char ":" (position 2)
++ chacl g:rumpledumpleunknowngrp: file1
+chacl: "g:rumpledumpleunknowngrp:" is an invalid ACL specification.
+cannot find group "rumpledumpleunknowngrp"
++ chacl o:user1:rwx file1
+chacl: "o:user1:rwx" is an invalid ACL specification.
+garbage after other tag: "user1"
++ chacl m:user1:rwx file1
+chacl: "m:user1:rwx" is an invalid ACL specification.
+garbage after mask tag: "user1"
++ chacl a::rwx file1
+chacl: "a::rwx" is an invalid ACL specification.
+invalid tag: "a"
++ set +x