diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2013-11-15 11:53:36 -0600 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2013-11-15 11:55:44 -0600 |
commit | a136fb697d68ea7acfbce62981ace6994685a765 (patch) | |
tree | bca9eb7a4df7cbff70412c11058a6c5f84c256a3 /testsuites/fstests | |
parent | Rename imfs_fspathenval.scn to imfs_fspatheval.scn (diff) | |
download | rtems-a136fb697d68ea7acfbce62981ace6994685a765.tar.bz2 |
testsuites: Add missing .scn files
Diffstat (limited to 'testsuites/fstests')
42 files changed, 1040 insertions, 20 deletions
diff --git a/testsuites/fstests/imfs_fssymlink/Makefile.am b/testsuites/fstests/imfs_fssymlink/Makefile.am index 8d9518f543..75d8ece894 100644 --- a/testsuites/fstests/imfs_fssymlink/Makefile.am +++ b/testsuites/fstests/imfs_fssymlink/Makefile.am @@ -8,7 +8,7 @@ imfs_fssymlink_SOURCES += ../../psxtests/include/pmacros.h imfs_fssymlink_SOURCES += ../imfs_support/fs_support.c imfs_fssymlink_SOURCES += ../imfs_support/fs_config.h -#dist_rtems_tests_DATA = imfs_fssymlink.scn +dist_rtems_tests_DATA = imfs_fssymlink.scn #dist_rtems_tests_DATA += imfs_fssymlink.doc include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg diff --git a/testsuites/fstests/imfs_fssymlink/imfs_fssymlink.scn b/testsuites/fstests/imfs_fssymlink/imfs_fssymlink.scn new file mode 100644 index 0000000000..53fc11f705 --- /dev/null +++ b/testsuites/fstests/imfs_fssymlink/imfs_fssymlink.scn @@ -0,0 +1,37 @@ + + +*** FILE SYSTEM TEST ( IMFS ) *** +Initializing filesystem 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/imfs_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 *** + + +Shutting down filesystem IMFS +*** END OF FILE SYSTEM TEST ( IMFS ) *** diff --git a/testsuites/fstests/jffs2_fserror/Makefile.am b/testsuites/fstests/jffs2_fserror/Makefile.am index de14c06178..6b99c79b97 100644 --- a/testsuites/fstests/jffs2_fserror/Makefile.am +++ b/testsuites/fstests/jffs2_fserror/Makefile.am @@ -8,7 +8,7 @@ jffs2_fserror_SOURCES += ../../psxtests/include/pmacros.h jffs2_fserror_SOURCES += ../jffs2_support/fs_support.c jffs2_fserror_SOURCES += ../jffs2_support/fs_config.h -#dist_rtems_tests_DATA = jffs2_fserror.scn +dist_rtems_tests_DATA = jffs2_fserror.scn #dist_rtems_tests_DATA += jffs2_fserror.doc include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg diff --git a/testsuites/fstests/jffs2_fserror/jffs2_fserror.scn b/testsuites/fstests/jffs2_fserror/jffs2_fserror.scn new file mode 100644 index 0000000000..2c3d9ee595 --- /dev/null +++ b/testsuites/fstests/jffs2_fserror/jffs2_fserror.scn @@ -0,0 +1,96 @@ + + +*** FILE SYSTEM TEST ( JFFS2 ) *** +Initializing filesystem JFFS2 + + +*** ERROR TEST *** +Testing open with arguments: "name01, O_CREAT | O_EXCL" EXPECT "EEXIST" +PASS +Testing mkdir with arguments: "name01, mode" EXPECT "EEXIST" +PASS +Testing open with arguments: "name02, O_WRONLY" EXPECT "EISDIR" +PASS +Testing open with arguments: "name02, O_RDWR" EXPECT "EISDIR" +PASS +Testing open with arguments: "name, O_WRONLY" EXPECT "ENOENT" +PASS +Testing open with arguments: "\"\", O_WRONLY" EXPECT "ENOENT" +PASS +Testing open with arguments: "name03, O_WRONLY" EXPECT "ENOENT" +PASS +Testing mkdir with arguments: "name, mode" EXPECT "ENOENT" +PASS +Testing mkdir with arguments: "\"\", mode" EXPECT "ENOENT" +PASS +Testing open with arguments: "name, O_WRONLY" EXPECT "ENOTDIR" +PASS +Testing mkdir with arguments: "name, mode" EXPECT "ENOTDIR" +PASS +Testing close with arguments: "-1" EXPECT "EBADF" +PASS +Testing close with arguments: "100" EXPECT "EBADF" +PASS +Testing rename with arguments: "name01, name" EXPECT "EINVAL" +FAIL ../../../../../../../rtems/c/src/../../testsuites/fstests/jffs2_fserror/../fserror/test.c: 156 +Testing rename with arguments: "name03, name02" EXPECT "EISDIR" +FAIL ../../../../../../../rtems/c/src/../../testsuites/fstests/jffs2_fserror/../fserror/test.c: 164 +Testing rename with arguments: "nonexistence, name01" EXPECT "ENOENT" +FAIL ../../../../../../../rtems/c/src/../../testsuites/fstests/jffs2_fserror/../fserror/test.c: 171 +Testing rename with arguments: "\"\", name01" EXPECT "ENOENT" +FAIL ../../../../../../../rtems/c/src/../../testsuites/fstests/jffs2_fserror/../fserror/test.c: 172 +Testing rename with arguments: "name01, \"\"" EXPECT "ENOENT" +PASS +Testing rename with arguments: "name, name03" EXPECT "ENOTDIR" +FAIL ../../../../../../../rtems/c/src/../../testsuites/fstests/jffs2_fserror/../fserror/test.c: 182 +Testing rename with arguments: "name03, name" EXPECT "ENOTDIR" +PASS +Testing rename with arguments: "name02, name03" EXPECT "ENOTDIR" +FAIL ../../../../../../../rtems/c/src/../../testsuites/fstests/jffs2_fserror/../fserror/test.c: 184 +Testing truncate with arguments: "file, -1" EXPECT "EINVAL" +PASS +Testing rmdir with arguments: "\"..\"" EXPECT "ENOTEMPTY" +FAIL ../../../../../../../rtems/c/src/../../testsuites/fstests/jffs2_fserror/../fserror/test.c: 266 +Testing rmdir with arguments: "\"tmp\"" EXPECT "ENOTEMPTY" +PASS +Testing rmdir with arguments: "\".\"" EXPECT "EINVAL" +PASS +Testing rmdir with arguments: "\"tmp/.\"" EXPECT "EINVAL" +PASS +Testing rmdir with arguments: "\"\"" EXPECT "ENOENT" +PASS +Testing rmdir with arguments: "nonexistence" EXPECT "ENOENT" +PASS +Testing unlink with arguments: "\"\"" EXPECT "ENOENT" +PASS +Testing unlink with arguments: "nonexistence" EXPECT "ENOENT" +PASS +Testing rmdir with arguments: "\"tmp/file\"" EXPECT "ENOTDIR" +PASS +Testing unlink with arguments: "\"tmp/file/dir\"" EXPECT "ENOTDIR" +PASS +Testing read with arguments: "fd, readbuf, 10" EXPECT "EBADF" +PASS +Testing read with arguments: "100, readbuf, 10" EXPECT "EBADF" +PASS +Testing write with arguments: "fd, databuf, 10" EXPECT "EBADF" +PASS +Testing write with arguments: "fd, readbuf, 10" EXPECT "EBADF" +PASS +Testing lseek with arguments: "fd, -100, SEEK_END" EXPECT "EINVAL" +PASS +Testing lseek with arguments: "fd, -100, SEEK_CUR" EXPECT "EINVAL" +PASS +Testing lseek with arguments: "fd, -100, SEEK_SET" EXPECT "EINVAL" +PASS +Testing lseek with arguments: "fd, huge, SEEK_END" EXPECT "EOVERFLOW" +PASS +Testing lseek with arguments: "fd, huge, SEEK_CUR" EXPECT "EOVERFLOW" +PASS +Testing lseek with arguments: "fd, 0, SEEK_SET" EXPECT "EBADF" +PASS +*** END OF ERROR TEST *** + + +Shutting down filesystem JFFS2 +*** END OF FILE SYSTEM TEST ( JFFS2 ) *** diff --git a/testsuites/fstests/jffs2_fslink/Makefile.am b/testsuites/fstests/jffs2_fslink/Makefile.am index f4965b1e58..af11dd35fd 100644 --- a/testsuites/fstests/jffs2_fslink/Makefile.am +++ b/testsuites/fstests/jffs2_fslink/Makefile.am @@ -8,7 +8,7 @@ jffs2_fslink_SOURCES += ../../psxtests/include/pmacros.h jffs2_fslink_SOURCES += ../jffs2_support/fs_support.c jffs2_fslink_SOURCES += ../jffs2_support/fs_config.h -#dist_rtems_tests_DATA = jffs2_fslink.scn +dist_rtems_tests_DATA = jffs2_fslink.scn #dist_rtems_tests_DATA += jffs2_fslink.doc include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg diff --git a/testsuites/fstests/jffs2_fslink/jffs2_fslink.scn b/testsuites/fstests/jffs2_fslink/jffs2_fslink.scn new file mode 100644 index 0000000000..dc278abbc4 --- /dev/null +++ b/testsuites/fstests/jffs2_fslink/jffs2_fslink.scn @@ -0,0 +1,16 @@ + + +*** FILE SYSTEM TEST ( JFFS2 ) *** +Initializing filesystem JFFS2 + + +*** LINK TEST *** +link creates hardlinks +test if the stat is the same +chmod and chown +unlink then stat the file +*** END OF LINK TEST *** + + +Shutting down filesystem JFFS2 +*** END OF FILE SYSTEM TEST ( JFFS2 ) *** diff --git a/testsuites/fstests/jffs2_fspatheval/Makefile.am b/testsuites/fstests/jffs2_fspatheval/Makefile.am index 79aa527387..810f208479 100644 --- a/testsuites/fstests/jffs2_fspatheval/Makefile.am +++ b/testsuites/fstests/jffs2_fspatheval/Makefile.am @@ -8,7 +8,7 @@ jffs2_fspatheval_SOURCES += ../../psxtests/include/pmacros.h jffs2_fspatheval_SOURCES += ../jffs2_support/fs_support.c jffs2_fspatheval_SOURCES += ../jffs2_support/fs_config.h -#dist_rtems_tests_DATA = jffs2_fspatheval.scn +dist_rtems_tests_DATA = jffs2_fspatheval.scn #dist_rtems_tests_DATA += jffs2_fspatheval.doc include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg diff --git a/testsuites/fstests/jffs2_fspatheval/jffs2_fspatheval.scn b/testsuites/fstests/jffs2_fspatheval/jffs2_fspatheval.scn new file mode 100644 index 0000000000..0990627fc0 --- /dev/null +++ b/testsuites/fstests/jffs2_fspatheval/jffs2_fspatheval.scn @@ -0,0 +1,82 @@ + + +*** FILE SYSTEM TEST ( JFFS2 ) *** +Initializing filesystem JFFS2 + + +*** 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 *** + + +Shutting down filesystem JFFS2 +*** END OF FILE SYSTEM TEST ( JFFS2 ) *** diff --git a/testsuites/fstests/jffs2_fspermission/Makefile.am b/testsuites/fstests/jffs2_fspermission/Makefile.am index 6e482c5c38..c5a65709b7 100644 --- a/testsuites/fstests/jffs2_fspermission/Makefile.am +++ b/testsuites/fstests/jffs2_fspermission/Makefile.am @@ -8,7 +8,7 @@ jffs2_fspermission_SOURCES += ../../psxtests/include/pmacros.h jffs2_fspermission_SOURCES += ../jffs2_support/fs_support.c jffs2_fspermission_SOURCES += ../jffs2_support/fs_config.h -#dist_rtems_tests_DATA = jffs2_fspermission.scn +dist_rtems_tests_DATA = jffs2_fspermission.scn #dist_rtems_tests_DATA += jffs2_fspermission.doc include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg diff --git a/testsuites/fstests/jffs2_fspermission/jffs2_fspermission.scn b/testsuites/fstests/jffs2_fspermission/jffs2_fspermission.scn new file mode 100644 index 0000000000..d587b38bad --- /dev/null +++ b/testsuites/fstests/jffs2_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/jffs2_fsrdwr/Makefile.am b/testsuites/fstests/jffs2_fsrdwr/Makefile.am index 2f5ba70e4f..2ed04b84f9 100644 --- a/testsuites/fstests/jffs2_fsrdwr/Makefile.am +++ b/testsuites/fstests/jffs2_fsrdwr/Makefile.am @@ -8,7 +8,7 @@ jffs2_fsrdwr_SOURCES += ../../psxtests/include/pmacros.h jffs2_fsrdwr_SOURCES += ../jffs2_support/fs_support.c jffs2_fsrdwr_SOURCES += ../jffs2_support/fs_config.h -#dist_rtems_tests_DATA = jffs2_fsrdwr.scn +dist_rtems_tests_DATA = jffs2_fsrdwr.scn #dist_rtems_tests_DATA += jffs2_fsrdwr.doc include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg diff --git a/testsuites/fstests/jffs2_fsrdwr/jffs2_fsrdwr.scn b/testsuites/fstests/jffs2_fsrdwr/jffs2_fsrdwr.scn new file mode 100644 index 0000000000..8b9e056d38 --- /dev/null +++ b/testsuites/fstests/jffs2_fsrdwr/jffs2_fsrdwr.scn @@ -0,0 +1,24 @@ + + +*** FILE SYSTEM TEST ( JFFS2 ) *** +Initializing filesystem JFFS2 +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 +test case: write_until_no_space_is_left + + +Shutting down filesystem JFFS2 +*** END OF FILE SYSTEM TEST ( JFFS2 ) *** diff --git a/testsuites/fstests/jffs2_fssymlink/Makefile.am b/testsuites/fstests/jffs2_fssymlink/Makefile.am index 860ad189a8..79b3ea8c0a 100644 --- a/testsuites/fstests/jffs2_fssymlink/Makefile.am +++ b/testsuites/fstests/jffs2_fssymlink/Makefile.am @@ -8,7 +8,7 @@ jffs2_fssymlink_SOURCES += ../../psxtests/include/pmacros.h jffs2_fssymlink_SOURCES += ../jffs2_support/fs_support.c jffs2_fssymlink_SOURCES += ../jffs2_support/fs_config.h -#dist_rtems_tests_DATA = jffs2_fssymlink.scn +dist_rtems_tests_DATA = jffs2_fssymlink.scn #dist_rtems_tests_DATA += jffs2_fssymlink.doc include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg diff --git a/testsuites/fstests/jffs2_fssymlink/jffs2_fssymlink.scn b/testsuites/fstests/jffs2_fssymlink/jffs2_fssymlink.scn new file mode 100644 index 0000000000..8ef1d580c9 --- /dev/null +++ b/testsuites/fstests/jffs2_fssymlink/jffs2_fssymlink.scn @@ -0,0 +1,37 @@ + + +*** FILE SYSTEM TEST ( JFFS2 ) *** +Initializing filesystem JFFS2 + + +*** 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/jffs2_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 *** + + +Shutting down filesystem JFFS2 +*** END OF FILE SYSTEM TEST ( JFFS2 ) *** diff --git a/testsuites/fstests/jffs2_fstime/Makefile.am b/testsuites/fstests/jffs2_fstime/Makefile.am index 2ac64b681b..5beba8124f 100644 --- a/testsuites/fstests/jffs2_fstime/Makefile.am +++ b/testsuites/fstests/jffs2_fstime/Makefile.am @@ -8,7 +8,7 @@ jffs2_fstime_SOURCES += ../../psxtests/include/pmacros.h jffs2_fstime_SOURCES += ../jffs2_support/fs_support.c jffs2_fstime_SOURCES += ../jffs2_support/fs_config.h -#dist_rtems_tests_DATA = jffs2_fstime.scn +dist_rtems_tests_DATA = jffs2_fstime.scn #dist_rtems_tests_DATA += jffs2_fstime.doc include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg diff --git a/testsuites/fstests/jffs2_fstime/jffs2_fstime.scn b/testsuites/fstests/jffs2_fstime/jffs2_fstime.scn new file mode 100644 index 0000000000..4b046cf7b3 --- /dev/null +++ b/testsuites/fstests/jffs2_fstime/jffs2_fstime.scn @@ -0,0 +1,15 @@ + + +*** FILE SYSTEM TEST ( JFFS2 ) *** +Initializing filesystem JFFS2 + + +*** TIME TEST *** +Sleep a few seconds +Sleep a few seconds +Sleep a few seconds +*** END OF TIME TEST *** + + +Shutting down filesystem JFFS2 +*** END OF FILE SYSTEM TEST ( JFFS2 ) *** diff --git a/testsuites/fstests/mdosfs_fserror/Makefile.am b/testsuites/fstests/mdosfs_fserror/Makefile.am index d5a49e33cc..2ef643687f 100644 --- a/testsuites/fstests/mdosfs_fserror/Makefile.am +++ b/testsuites/fstests/mdosfs_fserror/Makefile.am @@ -10,7 +10,7 @@ mdosfs_fserror_SOURCES += ../../psxtests/include/pmacros.h mdosfs_fserror_SOURCES += ../mdosfs_support/fs_support.c mdosfs_fserror_SOURCES += ../mdosfs_support/fs_config.h -#dist_rtems_tests_DATA = mdosfs_fserror.scn +dist_rtems_tests_DATA = mdosfs_fserror.scn #dist_rtems_tests_DATA += mdosfs_fserror.doc include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg diff --git a/testsuites/fstests/mdosfs_fserror/mdosfs_fserror.scn b/testsuites/fstests/mdosfs_fserror/mdosfs_fserror.scn new file mode 100644 index 0000000000..22abe5fe7b --- /dev/null +++ b/testsuites/fstests/mdosfs_fserror/mdosfs_fserror.scn @@ -0,0 +1,96 @@ + + +*** FILE SYSTEM TEST ( MOUNTED DOSFS ) *** +Initializing filesystem MOUNTED DOSFS + + +*** ERROR TEST *** +Testing open with arguments: "name01, O_CREAT | O_EXCL" EXPECT "EEXIST" +PASS +Testing mkdir with arguments: "name01, mode" EXPECT "EEXIST" +PASS +Testing open with arguments: "name02, O_WRONLY" EXPECT "EISDIR" +PASS +Testing open with arguments: "name02, O_RDWR" EXPECT "EISDIR" +PASS +Testing open with arguments: "name, O_WRONLY" EXPECT "ENOENT" +PASS +Testing open with arguments: "\"\", O_WRONLY" EXPECT "ENOENT" +PASS +Testing open with arguments: "name03, O_WRONLY" EXPECT "ENOENT" +PASS +Testing mkdir with arguments: "name, mode" EXPECT "ENOENT" +PASS +Testing mkdir with arguments: "\"\", mode" EXPECT "ENOENT" +PASS +Testing open with arguments: "name, O_WRONLY" EXPECT "ENOTDIR" +PASS +Testing mkdir with arguments: "name, mode" EXPECT "ENOTDIR" +PASS +Testing close with arguments: "-1" EXPECT "EBADF" +PASS +Testing close with arguments: "100" EXPECT "EBADF" +PASS +Testing rename with arguments: "name01, name" EXPECT "EINVAL" +FAIL ../../../../../../../rtems/c/src/../../testsuites/fstests/mdosfs_fserror/../fserror/test.c: 156 +Testing rename with arguments: "name03, name02" EXPECT "EISDIR" +FAIL ../../../../../../../rtems/c/src/../../testsuites/fstests/mdosfs_fserror/../fserror/test.c: 164 +Testing rename with arguments: "nonexistence, name01" EXPECT "ENOENT" +FAIL ../../../../../../../rtems/c/src/../../testsuites/fstests/mdosfs_fserror/../fserror/test.c: 171 +Testing rename with arguments: "\"\", name01" EXPECT "ENOENT" +FAIL ../../../../../../../rtems/c/src/../../testsuites/fstests/mdosfs_fserror/../fserror/test.c: 172 +Testing rename with arguments: "name01, \"\"" EXPECT "ENOENT" +PASS +Testing rename with arguments: "name, name03" EXPECT "ENOTDIR" +FAIL ../../../../../../../rtems/c/src/../../testsuites/fstests/mdosfs_fserror/../fserror/test.c: 182 +Testing rename with arguments: "name03, name" EXPECT "ENOTDIR" +PASS +Testing rename with arguments: "name02, name03" EXPECT "ENOTDIR" +FAIL ../../../../../../../rtems/c/src/../../testsuites/fstests/mdosfs_fserror/../fserror/test.c: 184 +Testing truncate with arguments: "file, -1" EXPECT "EINVAL" +PASS +Testing rmdir with arguments: "\"..\"" EXPECT "ENOTEMPTY" +FAIL ../../../../../../../rtems/c/src/../../testsuites/fstests/mdosfs_fserror/../fserror/test.c: 266 +Testing rmdir with arguments: "\"tmp\"" EXPECT "ENOTEMPTY" +PASS +Testing rmdir with arguments: "\".\"" EXPECT "EINVAL" +PASS +Testing rmdir with arguments: "\"tmp/.\"" EXPECT "EINVAL" +PASS +Testing rmdir with arguments: "\"\"" EXPECT "ENOENT" +PASS +Testing rmdir with arguments: "nonexistence" EXPECT "ENOENT" +PASS +Testing unlink with arguments: "\"\"" EXPECT "ENOENT" +PASS +Testing unlink with arguments: "nonexistence" EXPECT "ENOENT" +PASS +Testing rmdir with arguments: "\"tmp/file\"" EXPECT "ENOTDIR" +PASS +Testing unlink with arguments: "\"tmp/file/dir\"" EXPECT "ENOTDIR" +PASS +Testing read with arguments: "fd, readbuf, 10" EXPECT "EBADF" +PASS +Testing read with arguments: "100, readbuf, 10" EXPECT "EBADF" +PASS +Testing write with arguments: "fd, databuf, 10" EXPECT "EBADF" +PASS +Testing write with arguments: "fd, readbuf, 10" EXPECT "EBADF" +PASS +Testing lseek with arguments: "fd, -100, SEEK_END" EXPECT "EINVAL" +PASS +Testing lseek with arguments: "fd, -100, SEEK_CUR" EXPECT "EINVAL" +PASS +Testing lseek with arguments: "fd, -100, SEEK_SET" EXPECT "EINVAL" +PASS +Testing lseek with arguments: "fd, huge, SEEK_END" EXPECT "EOVERFLOW" +PASS +Testing lseek with arguments: "fd, huge, SEEK_CUR" EXPECT "EOVERFLOW" +PASS +Testing lseek with arguments: "fd, 0, SEEK_SET" EXPECT "EBADF" +PASS +*** END OF ERROR TEST *** + + +Shutting down filesystem MOUNTED DOSFS +*** END OF FILE SYSTEM TEST ( MOUNTED DOSFS ) *** diff --git a/testsuites/fstests/mdosfs_fspatheval/Makefile.am b/testsuites/fstests/mdosfs_fspatheval/Makefile.am index 3f38d8b8e5..ddc8bafe24 100644 --- a/testsuites/fstests/mdosfs_fspatheval/Makefile.am +++ b/testsuites/fstests/mdosfs_fspatheval/Makefile.am @@ -10,7 +10,7 @@ mdosfs_fspatheval_SOURCES += ../../psxtests/include/pmacros.h mdosfs_fspatheval_SOURCES += ../mdosfs_support/fs_support.c mdosfs_fspatheval_SOURCES += ../mdosfs_support/fs_config.h -#dist_rtems_tests_DATA = mdosfs_fspatheval.scn +dist_rtems_tests_DATA = mdosfs_fspatheval.scn #dist_rtems_tests_DATA += mdosfs_fspatheval.doc include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg diff --git a/testsuites/fstests/mdosfs_fspatheval/mdosfs_fspatheval.scn b/testsuites/fstests/mdosfs_fspatheval/mdosfs_fspatheval.scn new file mode 100644 index 0000000000..eda35d49f5 --- /dev/null +++ b/testsuites/fstests/mdosfs_fspatheval/mdosfs_fspatheval.scn @@ -0,0 +1,82 @@ + + +*** FILE SYSTEM TEST ( MOUNTED DOSFS ) *** +Initializing filesystem MOUNTED DOSFS + + +*** 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 *** + + +Shutting down filesystem MOUNTED DOSFS +*** END OF FILE SYSTEM TEST ( MOUNTED DOSFS ) *** diff --git a/testsuites/fstests/mdosfs_fsrdwr/Makefile.am b/testsuites/fstests/mdosfs_fsrdwr/Makefile.am index 59c10fab39..5ce91cc737 100644 --- a/testsuites/fstests/mdosfs_fsrdwr/Makefile.am +++ b/testsuites/fstests/mdosfs_fsrdwr/Makefile.am @@ -10,7 +10,7 @@ mdosfs_fsrdwr_SOURCES += ../../psxtests/include/pmacros.h mdosfs_fsrdwr_SOURCES += ../mdosfs_support/fs_support.c mdosfs_fsrdwr_SOURCES += ../mdosfs_support/fs_config.h -#dist_rtems_tests_DATA = mdosfs_fsrdwr.scn +dist_rtems_tests_DATA = mdosfs_fsrdwr.scn #dist_rtems_tests_DATA += mdosfs_fsrdwr.doc include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg diff --git a/testsuites/fstests/mdosfs_fsrdwr/mdosfs_fsrdwr.scn b/testsuites/fstests/mdosfs_fsrdwr/mdosfs_fsrdwr.scn new file mode 100644 index 0000000000..96c9101eaa --- /dev/null +++ b/testsuites/fstests/mdosfs_fsrdwr/mdosfs_fsrdwr.scn @@ -0,0 +1,24 @@ + + +*** FILE SYSTEM TEST ( MOUNTED DOSFS ) *** +Initializing filesystem MOUNTED DOSFS +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 +test case: write_until_no_space_is_left + + +Shutting down filesystem MOUNTED DOSFS +*** END OF FILE SYSTEM TEST ( MOUNTED DOSFS ) *** diff --git a/testsuites/fstests/mdosfs_fsstatvfs/Makefile.am b/testsuites/fstests/mdosfs_fsstatvfs/Makefile.am index bb0d2ef505..4461ede127 100644 --- a/testsuites/fstests/mdosfs_fsstatvfs/Makefile.am +++ b/testsuites/fstests/mdosfs_fsstatvfs/Makefile.am @@ -10,6 +10,9 @@ mdosfs_fsstatvfs_SOURCES += ../../psxtests/include/pmacros.h mdosfs_fsstatvfs_SOURCES += ../mdosfs_support/fs_support.c mdosfs_fsstatvfs_SOURCES += ../mdosfs_support/fs_config.h +dist_rtems_tests_DATA = mdosfs_fsstatvfs.scn +#dist_rtems_tests_DATA = mdosfs_fsstatvfs.doc + include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg include $(top_srcdir)/../automake/compile.am include $(top_srcdir)/../automake/leaf.am diff --git a/testsuites/fstests/mdosfs_fsstatvfs/mdosfs_fsstatvfs.scn b/testsuites/fstests/mdosfs_fsstatvfs/mdosfs_fsstatvfs.scn new file mode 100644 index 0000000000..f8bbc6aaf1 --- /dev/null +++ b/testsuites/fstests/mdosfs_fsstatvfs/mdosfs_fsstatvfs.scn @@ -0,0 +1,12 @@ + + +*** FILE SYSTEM TEST ( MOUNTED DOSFS ) *** +Initializing filesystem MOUNTED DOSFS + + +*** STATVFS TEST *** +*** END OF TEST STATVFS *** + + +Shutting down filesystem MOUNTED DOSFS +*** END OF FILE SYSTEM TEST ( MOUNTED DOSFS ) *** diff --git a/testsuites/fstests/mimfs_fserror/Makefile.am b/testsuites/fstests/mimfs_fserror/Makefile.am index 6c3b4c3ae8..c418bc0d8f 100644 --- a/testsuites/fstests/mimfs_fserror/Makefile.am +++ b/testsuites/fstests/mimfs_fserror/Makefile.am @@ -8,7 +8,7 @@ mimfs_fserror_SOURCES += ../../psxtests/include/pmacros.h mimfs_fserror_SOURCES += ../mimfs_support/fs_support.c mimfs_fserror_SOURCES += ../mimfs_support/fs_config.h -#dist_rtems_tests_DATA = mimfs_fserror.scn +dist_rtems_tests_DATA = mimfs_fserror.scn #dist_rtems_tests_DATA += mimfs_fserror.doc include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg diff --git a/testsuites/fstests/mimfs_fserror/mimfs_fserror.scn b/testsuites/fstests/mimfs_fserror/mimfs_fserror.scn new file mode 100644 index 0000000000..f048736b16 --- /dev/null +++ b/testsuites/fstests/mimfs_fserror/mimfs_fserror.scn @@ -0,0 +1,96 @@ + + +*** FILE SYSTEM TEST ( MOUNTED IMFS ) *** +Initializing filesystem MOUNTED IMFS + + +*** ERROR TEST *** +Testing open with arguments: "name01, O_CREAT | O_EXCL" EXPECT "EEXIST" +PASS +Testing mkdir with arguments: "name01, mode" EXPECT "EEXIST" +PASS +Testing open with arguments: "name02, O_WRONLY" EXPECT "EISDIR" +PASS +Testing open with arguments: "name02, O_RDWR" EXPECT "EISDIR" +PASS +Testing open with arguments: "name, O_WRONLY" EXPECT "ENOENT" +PASS +Testing open with arguments: "\"\", O_WRONLY" EXPECT "ENOENT" +PASS +Testing open with arguments: "name03, O_WRONLY" EXPECT "ENOENT" +PASS +Testing mkdir with arguments: "name, mode" EXPECT "ENOENT" +PASS +Testing mkdir with arguments: "\"\", mode" EXPECT "ENOENT" +PASS +Testing open with arguments: "name, O_WRONLY" EXPECT "ENOTDIR" +PASS +Testing mkdir with arguments: "name, mode" EXPECT "ENOTDIR" +PASS +Testing close with arguments: "-1" EXPECT "EBADF" +PASS +Testing close with arguments: "100" EXPECT "EBADF" +PASS +Testing rename with arguments: "name01, name" EXPECT "EINVAL" +FAIL ../../../../../../../rtems/c/src/../../testsuites/fstests/mimfs_fserror/../fserror/test.c: 156 +Testing rename with arguments: "name03, name02" EXPECT "EISDIR" +FAIL ../../../../../../../rtems/c/src/../../testsuites/fstests/mimfs_fserror/../fserror/test.c: 164 +Testing rename with arguments: "nonexistence, name01" EXPECT "ENOENT" +FAIL ../../../../../../../rtems/c/src/../../testsuites/fstests/mimfs_fserror/../fserror/test.c: 171 +Testing rename with arguments: "\"\", name01" EXPECT "ENOENT" +FAIL ../../../../../../../rtems/c/src/../../testsuites/fstests/mimfs_fserror/../fserror/test.c: 172 +Testing rename with arguments: "name01, \"\"" EXPECT "ENOENT" +PASS +Testing rename with arguments: "name, name03" EXPECT "ENOTDIR" +FAIL ../../../../../../../rtems/c/src/../../testsuites/fstests/mimfs_fserror/../fserror/test.c: 182 +Testing rename with arguments: "name03, name" EXPECT "ENOTDIR" +PASS +Testing rename with arguments: "name02, name03" EXPECT "ENOTDIR" +FAIL ../../../../../../../rtems/c/src/../../testsuites/fstests/mimfs_fserror/../fserror/test.c: 184 +Testing truncate with arguments: "file, -1" EXPECT "EINVAL" +PASS +Testing rmdir with arguments: "\"..\"" EXPECT "ENOTEMPTY" +FAIL ../../../../../../../rtems/c/src/../../testsuites/fstests/mimfs_fserror/../fserror/test.c: 266 +Testing rmdir with arguments: "\"tmp\"" EXPECT "ENOTEMPTY" +PASS +Testing rmdir with arguments: "\".\"" EXPECT "EINVAL" +PASS +Testing rmdir with arguments: "\"tmp/.\"" EXPECT "EINVAL" +PASS +Testing rmdir with arguments: "\"\"" EXPECT "ENOENT" +PASS +Testing rmdir with arguments: "nonexistence" EXPECT "ENOENT" +PASS +Testing unlink with arguments: "\"\"" EXPECT "ENOENT" +PASS +Testing unlink with arguments: "nonexistence" EXPECT "ENOENT" +PASS +Testing rmdir with arguments: "\"tmp/file\"" EXPECT "ENOTDIR" +PASS +Testing unlink with arguments: "\"tmp/file/dir\"" EXPECT "ENOTDIR" +PASS +Testing read with arguments: "fd, readbuf, 10" EXPECT "EBADF" +PASS +Testing read with arguments: "100, readbuf, 10" EXPECT "EBADF" +PASS +Testing write with arguments: "fd, databuf, 10" EXPECT "EBADF" +PASS +Testing write with arguments: "fd, readbuf, 10" EXPECT "EBADF" +PASS +Testing lseek with arguments: "fd, -100, SEEK_END" EXPECT "EINVAL" +PASS +Testing lseek with arguments: "fd, -100, SEEK_CUR" EXPECT "EINVAL" +PASS +Testing lseek with arguments: "fd, -100, SEEK_SET" EXPECT "EINVAL" +PASS +Testing lseek with arguments: "fd, huge, SEEK_END" EXPECT "EOVERFLOW" +PASS +Testing lseek with arguments: "fd, huge, SEEK_CUR" EXPECT "EOVERFLOW" +PASS +Testing lseek with arguments: "fd, 0, SEEK_SET" EXPECT "EBADF" +PASS +*** END OF ERROR TEST *** + + +Shutting down filesystem MOUNTED IMFS +*** END OF FILE SYSTEM TEST ( MOUNTED IMFS ) *** diff --git a/testsuites/fstests/mrfs_fserror/Makefile.am b/testsuites/fstests/mrfs_fserror/Makefile.am index 8580a10b6c..c0a9a60174 100644 --- a/testsuites/fstests/mrfs_fserror/Makefile.am +++ b/testsuites/fstests/mrfs_fserror/Makefile.am @@ -10,7 +10,7 @@ mrfs_fserror_SOURCES += ../../psxtests/include/pmacros.h mrfs_fserror_SOURCES += ../mrfs_support/fs_support.c mrfs_fserror_SOURCES += ../mrfs_support/fs_config.h -#dist_rtems_tests_DATA = mrfs_fserror.scn +dist_rtems_tests_DATA = mrfs_fserror.scn #dist_rtems_tests_DATA += mrfs_fserror.doc include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg diff --git a/testsuites/fstests/mrfs_fserror/mrfs_fserror.scn b/testsuites/fstests/mrfs_fserror/mrfs_fserror.scn new file mode 100644 index 0000000000..f38737c761 --- /dev/null +++ b/testsuites/fstests/mrfs_fserror/mrfs_fserror.scn @@ -0,0 +1,96 @@ + + +*** FILE SYSTEM TEST ( MOUNTED RFS ) *** +Initializing filesystem MOUNTED RFS + + +*** ERROR TEST *** +Testing open with arguments: "name01, O_CREAT | O_EXCL" EXPECT "EEXIST" +PASS +Testing mkdir with arguments: "name01, mode" EXPECT "EEXIST" +PASS +Testing open with arguments: "name02, O_WRONLY" EXPECT "EISDIR" +PASS +Testing open with arguments: "name02, O_RDWR" EXPECT "EISDIR" +PASS +Testing open with arguments: "name, O_WRONLY" EXPECT "ENOENT" +PASS +Testing open with arguments: "\"\", O_WRONLY" EXPECT "ENOENT" +PASS +Testing open with arguments: "name03, O_WRONLY" EXPECT "ENOENT" +PASS +Testing mkdir with arguments: "name, mode" EXPECT "ENOENT" +PASS +Testing mkdir with arguments: "\"\", mode" EXPECT "ENOENT" +PASS +Testing open with arguments: "name, O_WRONLY" EXPECT "ENOTDIR" +PASS +Testing mkdir with arguments: "name, mode" EXPECT "ENOTDIR" +PASS +Testing close with arguments: "-1" EXPECT "EBADF" +PASS +Testing close with arguments: "100" EXPECT "EBADF" +PASS +Testing rename with arguments: "name01, name" EXPECT "EINVAL" +FAIL ../../../../../../../rtems/c/src/../../testsuites/fstests/mrfs_fserror/../fserror/test.c: 156 +Testing rename with arguments: "name03, name02" EXPECT "EISDIR" +FAIL ../../../../../../../rtems/c/src/../../testsuites/fstests/mrfs_fserror/../fserror/test.c: 164 +Testing rename with arguments: "nonexistence, name01" EXPECT "ENOENT" +FAIL ../../../../../../../rtems/c/src/../../testsuites/fstests/mrfs_fserror/../fserror/test.c: 171 +Testing rename with arguments: "\"\", name01" EXPECT "ENOENT" +FAIL ../../../../../../../rtems/c/src/../../testsuites/fstests/mrfs_fserror/../fserror/test.c: 172 +Testing rename with arguments: "name01, \"\"" EXPECT "ENOENT" +PASS +Testing rename with arguments: "name, name03" EXPECT "ENOTDIR" +FAIL ../../../../../../../rtems/c/src/../../testsuites/fstests/mrfs_fserror/../fserror/test.c: 182 +Testing rename with arguments: "name03, name" EXPECT "ENOTDIR" +PASS +Testing rename with arguments: "name02, name03" EXPECT "ENOTDIR" +FAIL ../../../../../../../rtems/c/src/../../testsuites/fstests/mrfs_fserror/../fserror/test.c: 184 +Testing truncate with arguments: "file, -1" EXPECT "EINVAL" +PASS +Testing rmdir with arguments: "\"..\"" EXPECT "ENOTEMPTY" +FAIL ../../../../../../../rtems/c/src/../../testsuites/fstests/mrfs_fserror/../fserror/test.c: 266 +Testing rmdir with arguments: "\"tmp\"" EXPECT "ENOTEMPTY" +PASS +Testing rmdir with arguments: "\".\"" EXPECT "EINVAL" +PASS +Testing rmdir with arguments: "\"tmp/.\"" EXPECT "EINVAL" +PASS +Testing rmdir with arguments: "\"\"" EXPECT "ENOENT" +PASS +Testing rmdir with arguments: "nonexistence" EXPECT "ENOENT" +PASS +Testing unlink with arguments: "\"\"" EXPECT "ENOENT" +PASS +Testing unlink with arguments: "nonexistence" EXPECT "ENOENT" +PASS +Testing rmdir with arguments: "\"tmp/file\"" EXPECT "ENOTDIR" +PASS +Testing unlink with arguments: "\"tmp/file/dir\"" EXPECT "ENOTDIR" +PASS +Testing read with arguments: "fd, readbuf, 10" EXPECT "EBADF" +PASS +Testing read with arguments: "100, readbuf, 10" EXPECT "EBADF" +PASS +Testing write with arguments: "fd, databuf, 10" EXPECT "EBADF" +PASS +Testing write with arguments: "fd, readbuf, 10" EXPECT "EBADF" +PASS +Testing lseek with arguments: "fd, -100, SEEK_END" EXPECT "EINVAL" +PASS +Testing lseek with arguments: "fd, -100, SEEK_CUR" EXPECT "EINVAL" +PASS +Testing lseek with arguments: "fd, -100, SEEK_SET" EXPECT "EINVAL" +PASS +Testing lseek with arguments: "fd, huge, SEEK_END" EXPECT "EOVERFLOW" +PASS +Testing lseek with arguments: "fd, huge, SEEK_CUR" EXPECT "EOVERFLOW" +PASS +Testing lseek with arguments: "fd, 0, SEEK_SET" EXPECT "EBADF" +PASS +*** END OF ERROR TEST *** + + +Shutting down filesystem MOUNTED RFS +*** END OF FILE SYSTEM TEST ( MOUNTED RFS ) *** diff --git a/testsuites/fstests/mrfs_fsfpathconf/Makefile.am b/testsuites/fstests/mrfs_fsfpathconf/Makefile.am index 45e9537cdf..cf1054d249 100644 --- a/testsuites/fstests/mrfs_fsfpathconf/Makefile.am +++ b/testsuites/fstests/mrfs_fsfpathconf/Makefile.am @@ -10,7 +10,7 @@ mrfs_fsfpathconf_SOURCES += ../../psxtests/include/pmacros.h mrfs_fsfpathconf_SOURCES += ../mrfs_support/fs_support.c mrfs_fsfpathconf_SOURCES += ../mrfs_support/fs_config.h -#dist_rtems_tests_DATA = mrfs_fsfpathconf.scn +dist_rtems_tests_DATA = mrfs_fsfpathconf.scn #dist_rtems_tests_DATA += mrfs_fsfpathconf.doc include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg diff --git a/testsuites/fstests/mrfs_fsfpathconf/mrfs_fsfpathconf.scn b/testsuites/fstests/mrfs_fsfpathconf/mrfs_fsfpathconf.scn new file mode 100644 index 0000000000..655b65ac45 --- /dev/null +++ b/testsuites/fstests/mrfs_fsfpathconf/mrfs_fsfpathconf.scn @@ -0,0 +1,30 @@ + + +*** FILE SYSTEM TEST ( MOUNTED RFS ) *** +Initializing filesystem MOUNTED RFS + + +*** FPATHCONF TEST *** + +fpathconf of non-existing file give -1 , expected -1 +... creating file "testfile.km" +*** file created succesfully + +request with _PC_LINK_MAX return : 5 +request with _PC_MAX_CANON return : 128 +request with _PC_MAX_INPUT return : 7 +request with _PC_NAME_MAX return : 255 +request with _PC_PATH_MAX return : 255 +request with _PC_PIPE_BUF return : 1024 +request with _PC_CHOWN_RESTRICTED return : 0 +request with _PC_NO_TRUNC return : 1 +request with _PC_VDISABLE return : 0 +request with _PC_ASYNC_IO return : 0 +request with _PC_PRIO_IO return : 0 +request with _PC_SYNC_IO return : 0 +request with bad argument return : -1 +*** END OF FPATHCONF TEST *** + + +Shutting down filesystem MOUNTED RFS +*** END OF FILE SYSTEM TEST ( MOUNTED RFS ) *** diff --git a/testsuites/fstests/mrfs_fslink/Makefile.am b/testsuites/fstests/mrfs_fslink/Makefile.am index 73edb64c9f..8d9ae340c9 100644 --- a/testsuites/fstests/mrfs_fslink/Makefile.am +++ b/testsuites/fstests/mrfs_fslink/Makefile.am @@ -10,7 +10,7 @@ mrfs_fslink_SOURCES += ../../psxtests/include/pmacros.h mrfs_fslink_SOURCES += ../mrfs_support/fs_support.c mrfs_fslink_SOURCES += ../mrfs_support/fs_config.h -#dist_rtems_tests_DATA = mrfs_fslink.scn +dist_rtems_tests_DATA = mrfs_fslink.scn #dist_rtems_tests_DATA += mrfs_fslink.doc include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg diff --git a/testsuites/fstests/mrfs_fslink/mrfs_fslink.scn b/testsuites/fstests/mrfs_fslink/mrfs_fslink.scn new file mode 100644 index 0000000000..e74983d59f --- /dev/null +++ b/testsuites/fstests/mrfs_fslink/mrfs_fslink.scn @@ -0,0 +1,16 @@ + + +*** FILE SYSTEM TEST ( MOUNTED RFS ) *** +Initializing filesystem MOUNTED RFS + + +*** LINK TEST *** +link creates hardlinks +test if the stat is the same +chmod and chown +unlink then stat the file +*** END OF LINK TEST *** + + +Shutting down filesystem MOUNTED RFS +*** END OF FILE SYSTEM TEST ( MOUNTED RFS ) *** diff --git a/testsuites/fstests/mrfs_fspatheval/Makefile.am b/testsuites/fstests/mrfs_fspatheval/Makefile.am index 1425db2fa8..877fbc770f 100644 --- a/testsuites/fstests/mrfs_fspatheval/Makefile.am +++ b/testsuites/fstests/mrfs_fspatheval/Makefile.am @@ -10,7 +10,7 @@ mrfs_fspatheval_SOURCES += ../../psxtests/include/pmacros.h mrfs_fspatheval_SOURCES += ../mrfs_support/fs_support.c mrfs_fspatheval_SOURCES += ../mrfs_support/fs_config.h -#dist_rtems_tests_DATA = mrfs_fspatheval.scn +dist_rtems_tests_DATA = mrfs_fspatheval.scn #dist_rtems_tests_DATA += mrfs_fspatheval.doc include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg diff --git a/testsuites/fstests/mrfs_fspatheval/mrfs_fspatheval.scn b/testsuites/fstests/mrfs_fspatheval/mrfs_fspatheval.scn new file mode 100644 index 0000000000..faa25a1c71 --- /dev/null +++ b/testsuites/fstests/mrfs_fspatheval/mrfs_fspatheval.scn @@ -0,0 +1,82 @@ + + +*** FILE SYSTEM TEST ( MOUNTED RFS ) *** +Initializing filesystem MOUNTED RFS + + +*** 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 *** + + +Shutting down filesystem MOUNTED RFS +*** END OF FILE SYSTEM TEST ( MOUNTED RFS ) *** diff --git a/testsuites/fstests/mrfs_fspermission/Makefile.am b/testsuites/fstests/mrfs_fspermission/Makefile.am index 4a5062bc0f..aaee6865e0 100644 --- a/testsuites/fstests/mrfs_fspermission/Makefile.am +++ b/testsuites/fstests/mrfs_fspermission/Makefile.am @@ -10,7 +10,7 @@ mrfs_fspermission_SOURCES += ../../psxtests/include/pmacros.h mrfs_fspermission_SOURCES += ../mrfs_support/fs_support.c mrfs_fspermission_SOURCES += ../mrfs_support/fs_config.h -#dist_rtems_tests_DATA = mrfs_fspermission.scn +dist_rtems_tests_DATA = mrfs_fspermission.scn #dist_rtems_tests_DATA += mrfs_fspermission.doc include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg diff --git a/testsuites/fstests/mrfs_fspermission/mrfs_fspermission.scn b/testsuites/fstests/mrfs_fspermission/mrfs_fspermission.scn new file mode 100644 index 0000000000..903ae4b415 --- /dev/null +++ b/testsuites/fstests/mrfs_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 ) *** diff --git a/testsuites/fstests/mrfs_fsrdwr/Makefile.am b/testsuites/fstests/mrfs_fsrdwr/Makefile.am index 68176e6ca5..19137702cb 100644 --- a/testsuites/fstests/mrfs_fsrdwr/Makefile.am +++ b/testsuites/fstests/mrfs_fsrdwr/Makefile.am @@ -10,7 +10,7 @@ mrfs_fsrdwr_SOURCES += ../../psxtests/include/pmacros.h mrfs_fsrdwr_SOURCES += ../mrfs_support/fs_support.c mrfs_fsrdwr_SOURCES += ../mrfs_support/fs_config.h -#dist_rtems_tests_DATA = mrfs_fsrdwr.scn +dist_rtems_tests_DATA = mrfs_fsrdwr.scn #dist_rtems_tests_DATA += mrfs_fsrdwr.doc include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg diff --git a/testsuites/fstests/mrfs_fsrdwr/mrfs_fsrdwr.scn b/testsuites/fstests/mrfs_fsrdwr/mrfs_fsrdwr.scn new file mode 100644 index 0000000000..3fbbb28d42 --- /dev/null +++ b/testsuites/fstests/mrfs_fsrdwr/mrfs_fsrdwr.scn @@ -0,0 +1,24 @@ + + +*** FILE SYSTEM TEST ( MOUNTED RFS ) *** +Initializing filesystem MOUNTED RFS +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 +test case: write_until_no_space_is_left + + +Shutting down filesystem MOUNTED RFS +*** END OF FILE SYSTEM TEST ( MOUNTED RFS ) *** diff --git a/testsuites/fstests/mrfs_fssymlink/Makefile.am b/testsuites/fstests/mrfs_fssymlink/Makefile.am index 781af2bd4f..c3ede70991 100644 --- a/testsuites/fstests/mrfs_fssymlink/Makefile.am +++ b/testsuites/fstests/mrfs_fssymlink/Makefile.am @@ -10,7 +10,7 @@ mrfs_fssymlink_SOURCES += ../../psxtests/include/pmacros.h mrfs_fssymlink_SOURCES += ../mrfs_support/fs_support.c mrfs_fssymlink_SOURCES += ../mrfs_support/fs_config.h -#dist_rtems_tests_DATA = mrfs_fssymlink.scn +dist_rtems_tests_DATA = mrfs_fssymlink.scn #dist_rtems_tests_DATA += mrfs_fssymlink.doc include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg diff --git a/testsuites/fstests/mrfs_fssymlink/mrfs_fssymlink.scn b/testsuites/fstests/mrfs_fssymlink/mrfs_fssymlink.scn new file mode 100644 index 0000000000..bdcbeefb59 --- /dev/null +++ b/testsuites/fstests/mrfs_fssymlink/mrfs_fssymlink.scn @@ -0,0 +1,37 @@ + + +*** FILE SYSTEM TEST ( MOUNTED RFS ) *** +Initializing filesystem MOUNTED RFS + + +*** 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/mrfs_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 *** + + +Shutting down filesystem MOUNTED RFS +*** END OF FILE SYSTEM TEST ( MOUNTED RFS ) *** diff --git a/testsuites/fstests/mrfs_fstime/Makefile.am b/testsuites/fstests/mrfs_fstime/Makefile.am index 69f45d5f99..f069418ddb 100644 --- a/testsuites/fstests/mrfs_fstime/Makefile.am +++ b/testsuites/fstests/mrfs_fstime/Makefile.am @@ -10,7 +10,7 @@ mrfs_fstime_SOURCES += ../../psxtests/include/pmacros.h mrfs_fstime_SOURCES += ../mrfs_support/fs_support.c mrfs_fstime_SOURCES += ../mrfs_support/fs_config.h -#dist_rtems_tests_DATA = mrfs_fstime.scn +dist_rtems_tests_DATA = mrfs_fstime.scn #dist_rtems_tests_DATA += mrfs_fstime.doc include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg diff --git a/testsuites/fstests/mrfs_fstime/mrfs_fstime.scn b/testsuites/fstests/mrfs_fstime/mrfs_fstime.scn new file mode 100644 index 0000000000..b08aecb7c1 --- /dev/null +++ b/testsuites/fstests/mrfs_fstime/mrfs_fstime.scn @@ -0,0 +1,9 @@ + + +*** FILE SYSTEM TEST ( MOUNTED RFS ) *** +Initializing filesystem MOUNTED RFS + + +*** TIME TEST *** +Sleep a few seconds +../../../../../../../rtems/c/src/../../testsuites/fstests/mrfs_fstime/../fstime/test.c: 128 st.st_ctime == st.st_mtime |