xfs
[Top] [All Lists]

[PATCH] acl: add getfacl -R -L -P tests

To: Andreas Grünbacher <agruen@xxxxxxx>
Subject: [PATCH] acl: add getfacl -R -L -P tests
From: Brandon Philips <brandon@xxxxxxxx>
Date: Thu, 8 Jan 2009 13:13:34 -0800
Cc: xfs@xxxxxxxxxxx
User-agent: Mutt/1.5.17 (2007-11-01)
Oops, missed this one when I sent out the series.

Add tests against patches from Andreas to fix up walk_tree.c.

Signed-off-by: Brandon Philips <bphilips@xxxxxxx>

---
 test/getfacl-recursive.test |  194 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 194 insertions(+)

Index: acl-2.2.47/test/getfacl-recursive.test
===================================================================
--- /dev/null
+++ acl-2.2.47/test/getfacl-recursive.test
@@ -0,0 +1,194 @@
+Tests for proper path recursion
+
+       $ mkdir -p 1/2/3
+       $ mkdir 1/link
+       $ touch 1/link/file
+       $ ln -s `pwd`/1/link 1/2/link
+       $ getfacl -P -R 1/2
+       > # file: 1/2
+       > # owner: %TUSER
+       > # group: %TGROUP
+       > user::rwx
+       > group::r-x
+       > other::r-x
+       >
+       > # file: 1/2/3
+       > # owner: %TUSER
+       > # group: %TGROUP
+       > user::rwx
+       > group::r-x
+       > other::r-x
+       >
+
+       $ getfacl -R 1/2
+       > # file: 1/2
+       > # owner: %TUSER
+       > # group: %TGROUP
+       > user::rwx
+       > group::r-x
+       > other::r-x
+       >
+       > # file: 1/2/3
+       > # owner: %TUSER
+       > # group: %TGROUP
+       > user::rwx
+       > group::r-x
+       > other::r-x
+       >
+
+       $ getfacl -R -L 1/2
+       > # file: 1/2
+       > # owner: %TUSER
+       > # group: %TGROUP
+       > user::rwx
+       > group::r-x
+       > other::r-x
+       >
+       > # file: 1/2/3
+       > # owner: %TUSER
+       > # group: %TGROUP
+       > user::rwx
+       > group::r-x
+       > other::r-x
+       >
+       > # file: 1/2/link
+       > # owner: %TUSER
+       > # group: %TGROUP
+       > user::rwx
+       > group::r-x
+       > other::r-x
+       >
+       > # file: 1/2/link/file
+       > # owner: %TUSER
+       > # group: %TGROUP
+       > user::rw-
+       > group::r--
+       > other::r--
+       >
+
+       $ getfacl -P -R 1
+       > # file: 1
+       > # owner: %TUSER
+       > # group: %TGROUP
+       > user::rwx
+       > group::r-x
+       > other::r-x
+       >
+       > # file: 1/2
+       > # owner: %TUSER
+       > # group: %TGROUP
+       > user::rwx
+       > group::r-x
+       > other::r-x
+       >
+       > # file: 1/2/3
+       > # owner: %TUSER
+       > # group: %TGROUP
+       > user::rwx
+       > group::r-x
+       > other::r-x
+       >
+       > # file: 1/link
+       > # owner: %TUSER
+       > # group: %TGROUP
+       > user::rwx
+       > group::r-x
+       > other::r-x
+       >
+       > # file: 1/link/file
+       > # owner: %TUSER
+       > # group: %TGROUP
+       > user::rw-
+       > group::r--
+       > other::r--
+       >
+
+       $ getfacl -R 1
+       > # file: 1
+       > # owner: %TUSER
+       > # group: %TGROUP
+       > user::rwx
+       > group::r-x
+       > other::r-x
+       >
+       > # file: 1/2
+       > # owner: %TUSER
+       > # group: %TGROUP
+       > user::rwx
+       > group::r-x
+       > other::r-x
+       >
+       > # file: 1/2/3
+       > # owner: %TUSER
+       > # group: %TGROUP
+       > user::rwx
+       > group::r-x
+       > other::r-x
+       >
+       > # file: 1/link
+       > # owner: %TUSER
+       > # group: %TGROUP
+       > user::rwx
+       > group::r-x
+       > other::r-x
+       >
+       > # file: 1/link/file
+       > # owner: %TUSER
+       > # group: %TGROUP
+       > user::rw-
+       > group::r--
+       > other::r--
+       >
+
+       $ getfacl -R -L 1
+       > # file: 1
+       > # owner: %TUSER
+       > # group: %TGROUP
+       > user::rwx
+       > group::r-x
+       > other::r-x
+       >
+       > # file: 1/2
+       > # owner: %TUSER
+       > # group: %TGROUP
+       > user::rwx
+       > group::r-x
+       > other::r-x
+       >
+       > # file: 1/2/3
+       > # owner: %TUSER
+       > # group: %TGROUP
+       > user::rwx
+       > group::r-x
+       > other::r-x
+       >
+       > # file: 1/2/link
+       > # owner: %TUSER
+       > # group: %TGROUP
+       > user::rwx
+       > group::r-x
+       > other::r-x
+       >
+       > # file: 1/2/link/file
+       > # owner: %TUSER
+       > # group: %TGROUP
+       > user::rw-
+       > group::r--
+       > other::r--
+       >
+       > # file: 1/link
+       > # owner: %TUSER
+       > # group: %TGROUP
+       > user::rwx
+       > group::r-x
+       > other::r-x
+       >
+       > # file: 1/link/file
+       > # owner: %TUSER
+       > # group: %TGROUP
+       > user::rw-
+       > group::r--
+       > other::r--
+       >
+
+       $ rm -R 1/

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] acl: add getfacl -R -L -P tests, Brandon Philips <=