summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBrandon Philips <bphilips@suse.de>2009-02-13 17:55:43 -0800
committerAndreas Gruenbacher <agruen@suse.de>2009-02-23 02:38:12 +0100
commit2b4de8ec10ba2085823ef53f7bc1925bc28de125 (patch)
treeeb87262ee0ff7ab675a23beb60506456d7b1468f /test
parent49f3db813298a1cd95e54b87cbbd15c712a78c91 (diff)
downloadacl-2b4de8ec10ba2085823ef53f7bc1925bc28de125.tar.gz
acl: move nfs tests to their own folder
Since these tests require nfs mounts to run move them into a seperate folder so they don't run by default. Signed-off-by: Brandon Philips <bphilips@suse.de>
Diffstat (limited to 'test')
-rw-r--r--test/nfs/nfs-dir.test (renamed from test/nfs-dir.test)4
-rw-r--r--test/nfs/nfsacl.test (renamed from test/nfsacl.test)10
2 files changed, 7 insertions, 7 deletions
diff --git a/test/nfs-dir.test b/test/nfs/nfs-dir.test
index 9dfd19a..33e5f5f 100644
--- a/test/nfs-dir.test
+++ b/test/nfs/nfs-dir.test
@@ -6,13 +6,13 @@ the nfs mount, and requires the following environment variable:
EXPORT_PATH => the path that is mounted at the working directory.
Create a test directory and file.
-
+
$ umask 022
$ mkdir %{EXPORT_PATH}/test
$ echo blah > %{EXPORT_PATH}/test/blah
Make sure the file can be accessed before.
-
+
$ su bin
$ cat test/blah
> blah
diff --git a/test/nfsacl.test b/test/nfs/nfsacl.test
index ce80140..4f37322 100644
--- a/test/nfsacl.test
+++ b/test/nfs/nfsacl.test
@@ -2,7 +2,7 @@ This is a regression test for bugs in the nfsacl protocol extension.
The test should be run on an NFS export mount with ACL support.
Create a test directory and file.
-
+
$ umask 022
$ mkdir -p test/sub
$ echo blah > test/sub/blah
@@ -13,7 +13,7 @@ The test should be run on an NFS export mount with ACL support.
> -rw-r--r-- test/sub2/blah
$ rm -rf test/sub2
-
+
$ setfacl -m u:daemon:rwx test/sub
$ setfacl -dm u:daemon:rwx test/sub
$ getfattr -m- test/sub
@@ -26,15 +26,15 @@ The test should be run on an NFS export mount with ACL support.
$ find test/sub2 | sort | xargs ls -dl | awk '{print $1,$8}'
> drwxrwxr-x+ test/sub2
> -rw-r--r-- test/sub2/blah
-
+
$ rm -rf test/sub2
-
+
$ setfacl -m u:daemon:rw test/sub/blah
$ cp -rp test/sub test/sub2
$ find test/sub2 | sort | xargs ls -dl | awk '{print $1,$8}'
> drwxrwxr-x+ test/sub2
> -rw-rw-r--+ test/sub2/blah
-
+
$ rm -rf test/sub2
Clean up.