summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Ivanov <alexivanov97@gmail.com>2013-01-15 13:46:56 -0600
committerJennifer Averett <jennifer.averett@oarcorp.com>2013-01-15 13:46:56 -0600
commit99d11970b6d1a4c7a41d160ac835b63cfac1a049 (patch)
tree806c7c3c30a6f8209c4ae3260bf462a1fab85931
parentpsxtmtests: Generating .scn (Screen Shots) #8 (diff)
downloadrtems-99d11970b6d1a4c7a41d160ac835b63cfac1a049.tar.bz2
fstests: Generating .scn (Screen Shots) #4
-rw-r--r--testsuites/fstests/mimfs_fslink/mimfs_fslink.scn10
-rw-r--r--testsuites/fstests/mimfs_fspatheval/mimfs_fspatheval.scn76
-rw-r--r--testsuites/fstests/mimfs_fspermission/mimfs_fspermission-interupted.scn47
-rw-r--r--testsuites/fstests/mimfs_fsrdwr/mimfs_fsrdwr.scn21
-rw-r--r--testsuites/fstests/mimfs_fssymlink/mimfs_fssymlink.scn31
-rw-r--r--testsuites/fstests/mimfs_fstime/mimfs_fstime.scn7
6 files changed, 192 insertions, 0 deletions
diff --git a/testsuites/fstests/mimfs_fslink/mimfs_fslink.scn b/testsuites/fstests/mimfs_fslink/mimfs_fslink.scn
new file mode 100644
index 0000000000..d0a6f1e395
--- /dev/null
+++ b/testsuites/fstests/mimfs_fslink/mimfs_fslink.scn
@@ -0,0 +1,10 @@
+*** FILE SYSTEM TEST ( MOUNTED IMFS ) ***
+Initializing filesystem MOUNTED IMFS
+
+
+*** LINK TEST ***
+link creates hardlinks
+test if the stat is the same
+chmod and chown
+unlink then stat the file
+*** END OF LINK TEST ***
diff --git a/testsuites/fstests/mimfs_fspatheval/mimfs_fspatheval.scn b/testsuites/fstests/mimfs_fspatheval/mimfs_fspatheval.scn
new file mode 100644
index 0000000000..c81e4950aa
--- /dev/null
+++ b/testsuites/fstests/mimfs_fspatheval/mimfs_fspatheval.scn
@@ -0,0 +1,76 @@
+*** FILE SYSTEM TEST ( MOUNTED IMFS ) ***
+Initializing filesystem MOUNTED IMFS
+
+
+*** PATH EVALUATION TEST ***
+Making directory /test1/
+Making directory tets2
+Making directory ///test3
+Making directory test4////
+Making directory ../../test5
+Making directory /test1/../test6
+Making directory ./test7/
+Making directory .././test8
+Making directory test8/./../test9
+Making directory ///test9/../test10
+
+Making directory !#$%&()-@^_`{}~'
+Making directory 0_1_A
+Making directory aaa bbb
+Making directory ccc....ddd
+Making directory fff
+
+Removing directory test10
+Removing directory test9
+Removing directory test8
+Removing directory test7
+Removing directory test6
+Removing directory test5
+Removing directory test4
+Removing directory test3
+Removing directory tets2
+Removing directory test1
+
+Removing directory fff
+Removing directory ccc....ddd
+Removing directory aaa bbb
+Removing directory 0_1_A
+Removing directory !#$%&()-@^_`{}~'
+
+Create file /test1
+Create file tets2
+Create file ///test3
+Create file test4
+Create file ../../test5
+Create file /../test6
+Create file ./test7
+Create file .././test8
+Create file /./../test9
+Create file //../test10
+
+Create file !#$%&()-@^_`{}~'
+Create file 0_1_A
+Create file aaa bbb
+Create file ccc....ddd
+Create file fff
+
+Removing file test10
+Removing file test9
+Removing file test8
+Removing file test7
+Removing file test6
+Removing file test5
+Removing file test4
+Removing file test3
+Removing file tets2
+Removing file test1
+
+Removing file fff
+Removing file ccc....ddd
+Removing file aaa bbb
+Removing file 0_1_A
+Removing file !#$%&()-@^_`{}~'
+
+mkdir /tmp/a/b
+cd /tmp
+*** END OF PATH EVALUATION TEST ***
diff --git a/testsuites/fstests/mimfs_fspermission/mimfs_fspermission-interupted.scn b/testsuites/fstests/mimfs_fspermission/mimfs_fspermission-interupted.scn
new file mode 100644
index 0000000000..e425aa7b07
--- /dev/null
+++ b/testsuites/fstests/mimfs_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/mimfs_fsrdwr/mimfs_fsrdwr.scn b/testsuites/fstests/mimfs_fsrdwr/mimfs_fsrdwr.scn
new file mode 100644
index 0000000000..37ea03cfa6
--- /dev/null
+++ b/testsuites/fstests/mimfs_fsrdwr/mimfs_fsrdwr.scn
@@ -0,0 +1,21 @@
+*** FILE SYSTEM TEST ( MOUNTED IMFS ) ***
+Initializing filesystem MOUNTED IMFS
+test case: read_write_test
+test case: lseek_test
+Create a new file
+Writing 2430 bytes to file
+Successfully wrote 2430
+Check the current position
+2431
+test case: truncate_test03
+test case: truncate_to_zero
+test case: block_read_and_write
+test case: block_rw_case_0
+test case: block_rw_case_1
+test case: block_rw_case_2
+test case: block_rw_case_3
+test case: block_rw_case_4
+
+
+Shutting down filesystem MOUNTED IMFS
+*** END OF FILE SYSTEM TEST ( MOUNTED IMFS ) ***
diff --git a/testsuites/fstests/mimfs_fssymlink/mimfs_fssymlink.scn b/testsuites/fstests/mimfs_fssymlink/mimfs_fssymlink.scn
new file mode 100644
index 0000000000..c18037dacf
--- /dev/null
+++ b/testsuites/fstests/mimfs_fssymlink/mimfs_fssymlink.scn
@@ -0,0 +1,31 @@
+*** FILE SYSTEM TEST ( MOUNTED IMFS ) ***
+Initializing filesystem MOUNTED IMFS
+
+
+*** SYMLINK TEST ***
+Create a file named file
+Create a symlink named symlink to file
+call readlink
+file
+Unlink the file
+call readlink
+Create a dir named file
+Create a symlink named symlink to file
+call readlink
+rmdir the dir
+symlink loop erro test
+Testing creat with arguments: "path,mode" EXPECT "ELOOP"
+PASS
+Testing open with arguments: "path,O_CREAT|O_WRONLY,mode" EXPECT "ELOOP"
+PASS
+Testing truncate with arguments: "path,0" EXPECT "ELOOP"
+PASS
+Testing rename with arguments: "path,file04" EXPECT "ELOOP"
+FAIL ../../../../../../../rtems/c/src/../../testsuites/fstests/mimfs_fssymlink/../fssymlink/test.c: 151
+Testing unlink with arguments: "path" EXPECT "ELOOP"
+PASS
+Testing mkdir with arguments: "path,mode" EXPECT "ELOOP"
+PASS
+Testing rmdir with arguments: "path" EXPECT "ELOOP"
+PASS
+*** END OF SYMLINK TEST ***
diff --git a/testsuites/fstests/mimfs_fstime/mimfs_fstime.scn b/testsuites/fstests/mimfs_fstime/mimfs_fstime.scn
new file mode 100644
index 0000000000..74a503935b
--- /dev/null
+++ b/testsuites/fstests/mimfs_fstime/mimfs_fstime.scn
@@ -0,0 +1,7 @@
+*** FILE SYSTEM TEST ( MOUNTED IMFS ) ***
+Initializing filesystem MOUNTED IMFS
+
+
+*** TIME TEST ***
+Sleep a few seconds
+*** END OF TIME TEST ***