summaryrefslogtreecommitdiffstats
path: root/testsuites/fstests/fspermission
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2018-04-09 13:40:29 +1000
committerChris Johns <chrisj@rtems.org>2018-04-10 08:24:54 +1000
commit8967e5fa78361bc7db4681ed117b0e7164821ef5 (patch)
tree61d7c94ddec9cb8d812a10790059168be046ac2e /testsuites/fstests/fspermission
parenttestsuite/libtests: Merged nested Makefile.am files into one Makefile.am (diff)
downloadrtems-8967e5fa78361bc7db4681ed117b0e7164821ef5.tar.bz2
testsuite/fstests: Merged nested Makefile.am files into one Makefile.am
This change is part of the testsuite Makefile.am reorganization. Update #3382
Diffstat (limited to 'testsuites/fstests/fspermission')
-rw-r--r--testsuites/fstests/fspermission/imfs_fspermission.scn52
-rw-r--r--testsuites/fstests/fspermission/jffs2_fspermission.scn53
-rw-r--r--testsuites/fstests/fspermission/mimfs_fspermission-interupted.scn47
-rw-r--r--testsuites/fstests/fspermission/mrfs_fspermission.scn53
4 files changed, 205 insertions, 0 deletions
diff --git a/testsuites/fstests/fspermission/imfs_fspermission.scn b/testsuites/fstests/fspermission/imfs_fspermission.scn
new file mode 100644
index 0000000000..87120ea5f7
--- /dev/null
+++ b/testsuites/fstests/fspermission/imfs_fspermission.scn
@@ -0,0 +1,52 @@
+*** FILE SYSTEM TEST ( IMFS ) ***
+Initializing filesystem IMFS
+
+
+*** PERMISSION TEST ***
+The previous cmask is 022
+The file mode of file01 is 755
+The file mode of file02 is 755
+The file mode of dir01 is 755
+The previous cmask is 321
+The file mode of file01 is 456
+The file mode of file02 is 456
+The file mode of dir01 is 456
+The file mode of file01 is 777
+The file mode of file02 is 240
+The file mode of dir01 is 340
+Testing open with arguments: "file02,O_RDONLY" EXPECT "EACCES"
+PASS
+Testing open with arguments: "file02,O_RDWR" EXPECT "EACCES"
+PASS
+Change euid and check
+Testing open with arguments: "file02,O_WRONLY" EXPECT "EACCES"
+PASS
+Testing open with arguments: "file02,O_RDWR" EXPECT "EACCES"
+PASS
+Testing creat with arguments: "path,mode" EXPECT "EACCES"
+PASS
+Testing rename with arguments: "path,\"test\"" EXPECT "EACCES"
+PASS
+Testing truncate with arguments: "path,0" EXPECT "EACCES"
+PASS
+Testing link with arguments: "path,\"test\"" EXPECT "EACCES"
+PASS
+Testing unlink with arguments: "path" EXPECT "EACCES"
+PASS
+Change egid and check
+Testing open with arguments: "file02,O_WRONLY" EXPECT "EACCES"
+PASS
+Testing open with arguments: "file02,O_RDONLY" EXPECT "EACCES"
+PASS
+Testing open with arguments: "file02,O_RDWR" EXPECT "EACCES"
+PASS
+Testing creat with arguments: "path,mode" EXPECT "EACCES"
+PASS
+The directory file mode is 777
+The directory file mode is 321
+*** END OF PERMISSION TEST ***
+
+
+Shutting down filesystem IMFS
+*** END OF FILE SYSTEM TEST ( IMFS ) ***
+
diff --git a/testsuites/fstests/fspermission/jffs2_fspermission.scn b/testsuites/fstests/fspermission/jffs2_fspermission.scn
new file mode 100644
index 0000000000..d587b38bad
--- /dev/null
+++ b/testsuites/fstests/fspermission/jffs2_fspermission.scn
@@ -0,0 +1,53 @@
+
+
+*** FILE SYSTEM TEST ( JFFS2 ) ***
+Initializing filesystem JFFS2
+
+
+*** PERMISSION TEST ***
+The previous cmask is 022
+The file mode of file01 is 755
+The file mode of file02 is 755
+The file mode of dir01 is 755
+The previous cmask is 321
+The file mode of file01 is 456
+The file mode of file02 is 456
+The file mode of dir01 is 456
+The file mode of file01 is 777
+The file mode of file02 is 240
+The file mode of dir01 is 340
+Testing open with arguments: "file02,O_RDONLY" EXPECT "EACCES"
+PASS
+Testing open with arguments: "file02,O_RDWR" EXPECT "EACCES"
+PASS
+Change euid and check
+Testing open with arguments: "file02,O_WRONLY" EXPECT "EACCES"
+PASS
+Testing open with arguments: "file02,O_RDWR" EXPECT "EACCES"
+PASS
+Testing creat with arguments: "path,mode" EXPECT "EACCES"
+PASS
+Testing rename with arguments: "path,\"test\"" EXPECT "EACCES"
+PASS
+Testing truncate with arguments: "path,0" EXPECT "EACCES"
+PASS
+Testing link with arguments: "path,\"test\"" EXPECT "EACCES"
+PASS
+Testing unlink with arguments: "path" EXPECT "EACCES"
+PASS
+Change egid and check
+Testing open with arguments: "file02,O_WRONLY" EXPECT "EACCES"
+PASS
+Testing open with arguments: "file02,O_RDONLY" EXPECT "EACCES"
+PASS
+Testing open with arguments: "file02,O_RDWR" EXPECT "EACCES"
+PASS
+Testing creat with arguments: "path,mode" EXPECT "EACCES"
+PASS
+The directory file mode is 777
+The directory file mode is 321
+*** END OF PERMISSION TEST ***
+
+
+Shutting down filesystem JFFS2
+*** END OF FILE SYSTEM TEST ( JFFS2 ) ***
diff --git a/testsuites/fstests/fspermission/mimfs_fspermission-interupted.scn b/testsuites/fstests/fspermission/mimfs_fspermission-interupted.scn
new file mode 100644
index 0000000000..e425aa7b07
--- /dev/null
+++ b/testsuites/fstests/fspermission/mimfs_fspermission-interupted.scn
@@ -0,0 +1,47 @@
+*** FILE SYSTEM TEST ( MOUNTED IMFS ) ***
+Initializing filesystem MOUNTED IMFS
+
+
+*** PERMISSION TEST ***
+The previous cmask is 022
+The file mode of file01 is 755
+The file mode of file02 is 755
+The file mode of dir01 is 755
+The previous cmask is 321
+The file mode of file01 is 456
+The file mode of file02 is 456
+The file mode of dir01 is 456
+The file mode of file01 is 777
+The file mode of file02 is 240
+The file mode of dir01 is 340
+Testing open with arguments: "file02,O_RDONLY" EXPECT "EACCES"
+PASS
+Testing open with arguments: "file02,O_RDWR" EXPECT "EACCES"
+PASS
+Change euid and check
+Testing open with arguments: "file02,O_WRONLY" EXPECT "EACCES"
+PASS
+Testing open with arguments: "file02,O_RDWR" EXPECT "EACCES"
+PASS
+Testing creat with arguments: "path,mode" EXPECT "EACCES"
+PASS
+Testing rename with arguments: "path,\"test\"" EXPECT "EACCES"
+PASS
+Testing truncate with arguments: "path,0" EXPECT "EACCES"
+PASS
+Testing link with arguments: "path,\"test\"" EXPECT "EACCES"
+PASS
+Testing unlink with arguments: "path" EXPECT "EACCES"
+PASS
+Change egid and check
+Testing open with arguments: "file02,O_WRONLY" EXPECT "EACCES"
+PASS
+Testing open with arguments: "file02,O_RDONLY" EXPECT "EACCES"
+PASS
+Testing open with arguments: "file02,O_RDWR" EXPECT "EACCES"
+PASS
+Testing creat with arguments: "path,mode" EXPECT "EACCES"
+PASS
+The directory file mode is 777
+The directory file mode is 321
+*** END OF PERMISSION TEST ***
diff --git a/testsuites/fstests/fspermission/mrfs_fspermission.scn b/testsuites/fstests/fspermission/mrfs_fspermission.scn
new file mode 100644
index 0000000000..903ae4b415
--- /dev/null
+++ b/testsuites/fstests/fspermission/mrfs_fspermission.scn
@@ -0,0 +1,53 @@
+
+
+*** FILE SYSTEM TEST ( MOUNTED RFS ) ***
+Initializing filesystem MOUNTED RFS
+
+
+*** PERMISSION TEST ***
+The previous cmask is 022
+The file mode of file01 is 755
+The file mode of file02 is 755
+The file mode of dir01 is 755
+The previous cmask is 321
+The file mode of file01 is 456
+The file mode of file02 is 456
+The file mode of dir01 is 456
+The file mode of file01 is 777
+The file mode of file02 is 240
+The file mode of dir01 is 340
+Testing open with arguments: "file02,O_RDONLY" EXPECT "EACCES"
+PASS
+Testing open with arguments: "file02,O_RDWR" EXPECT "EACCES"
+PASS
+Change euid and check
+Testing open with arguments: "file02,O_WRONLY" EXPECT "EACCES"
+PASS
+Testing open with arguments: "file02,O_RDWR" EXPECT "EACCES"
+PASS
+Testing creat with arguments: "path,mode" EXPECT "EACCES"
+PASS
+Testing rename with arguments: "path,\"test\"" EXPECT "EACCES"
+PASS
+Testing truncate with arguments: "path,0" EXPECT "EACCES"
+PASS
+Testing link with arguments: "path,\"test\"" EXPECT "EACCES"
+PASS
+Testing unlink with arguments: "path" EXPECT "EACCES"
+PASS
+Change egid and check
+Testing open with arguments: "file02,O_WRONLY" EXPECT "EACCES"
+PASS
+Testing open with arguments: "file02,O_RDONLY" EXPECT "EACCES"
+PASS
+Testing open with arguments: "file02,O_RDWR" EXPECT "EACCES"
+PASS
+Testing creat with arguments: "path,mode" EXPECT "EACCES"
+PASS
+The directory file mode is 777
+The directory file mode is 321
+*** END OF PERMISSION TEST ***
+
+
+Shutting down filesystem MOUNTED RFS
+*** END OF FILE SYSTEM TEST ( MOUNTED RFS ) ***