[rtems commit] fstests: Generating .scn (Screen Shots) #4

Jennifer Averett jennifer at rtems.org
Tue Jan 15 19:43:17 UTC 2013


Module:    rtems
Branch:    master
Commit:    99d11970b6d1a4c7a41d160ac835b63cfac1a049
Changeset: http://git.rtems.org/rtems/commit/?id=99d11970b6d1a4c7a41d160ac835b63cfac1a049

Author:    Alex Ivanov <alexivanov97 at gmail.com>
Date:      Tue Jan 15 13:46:56 2013 -0600

fstests: Generating .scn (Screen Shots) #4

---

 testsuites/fstests/mimfs_fslink/mimfs_fslink.scn   |   10 +++
 .../fstests/mimfs_fspatheval/mimfs_fspatheval.scn  |   76 ++++++++++++++++++++
 .../mimfs_fspermission-interupted.scn              |   47 ++++++++++++
 testsuites/fstests/mimfs_fsrdwr/mimfs_fsrdwr.scn   |   21 ++++++
 .../fstests/mimfs_fssymlink/mimfs_fssymlink.scn    |   31 ++++++++
 testsuites/fstests/mimfs_fstime/mimfs_fstime.scn   |    7 ++
 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 0000000..d0a6f1e
--- /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 0000000..c81e495
--- /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 0000000..e425aa7
--- /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 0000000..37ea03c
--- /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 0000000..c18037d
--- /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 0000000..74a5039
--- /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 ***




More information about the vc mailing list