testsuites: Add missing .scn files

This commit is contained in:
Joel Sherrill
2013-11-15 11:53:36 -06:00
parent 892abd53f9
commit a136fb697d
46 changed files with 1183 additions and 22 deletions

View File

@@ -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

View File

@@ -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 ) ***

View File

@@ -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

View File

@@ -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 ) ***

View File

@@ -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

View File

@@ -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 ) ***

View File

@@ -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

View File

@@ -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 ) ***

View File

@@ -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

View File

@@ -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 ) ***

View File

@@ -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

View File

@@ -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 ) ***

View File

@@ -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

View File

@@ -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 ) ***

View File

@@ -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

View File

@@ -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 ) ***

View File

@@ -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

View File

@@ -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 ) ***

View File

@@ -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

View File

@@ -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 ) ***

View File

@@ -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

View File

@@ -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 ) ***

View File

@@ -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

View File

@@ -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 ) ***

View File

@@ -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

View File

@@ -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 ) ***

View File

@@ -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

View File

@@ -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 ) ***

View File

@@ -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

View File

@@ -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 ) ***

View File

@@ -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

View File

@@ -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 ) ***

View File

@@ -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

View File

@@ -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 ) ***

View File

@@ -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

View File

@@ -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 ) ***

View File

@@ -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

View File

@@ -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 ) ***

View File

@@ -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

View File

@@ -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 ) ***

View File

@@ -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

View File

@@ -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

View File

@@ -6,6 +6,8 @@ include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
include $(top_srcdir)/../automake/compile.am
include $(top_srcdir)/../automake/leaf.am
dist_rtems_tests_DATA = putenvtest.scn
#dist_rtems_tests_DATA = putenvtest.doc
AM_CPPFLAGS += -I$(top_srcdir)/../support/include

View File

@@ -0,0 +1,6 @@
*** PUTENV/GETENV TEST ***
putenv("FOO=BAR") - expected to work
getenv("FOO") ==> "BAR"
*** END OF PUTENV/GETENV TEST ***

View File

@@ -2,13 +2,13 @@
rtems_tests_PROGRAMS = paranoia
paranoia_SOURCES = init.c paranoia.c system.h
dist_rtems_tests_DATA = paranoia.doc
dist_rtems_tests_DATA = paranoia.scn
dist_rtems_tests_DATA += paranoia.doc
include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
include $(top_srcdir)/../automake/compile.am
include $(top_srcdir)/../automake/leaf.am
# -DCYGNUS turns on more verbose msgs
AM_CPPFLAGS += -DNOSIGNAL -DCYGNUS -DNOMAIN

View File

@@ -0,0 +1,133 @@
*** PARANOIA TEST ***
paranoia version 1.1 [cygnus]
Program is now RUNNING tests on small integers:
TEST: 0+0 != 0, 1-1 != 0, 1 <= 0, or 1+1 != 2
PASS: 0+0 != 0, 1-1 != 0, 1 <= 0, or 1+1 != 2
TEST: 3 != 2+1, 4 != 3+1, 4+2*(-2) != 0, or 4-3-1 != 0
PASS: 3 != 2+1, 4 != 3+1, 4+2*(-2) != 0, or 4-3-1 != 0
TEST: -1+1 != 0, (-1)+abs(1) != 0, or -1+(-1)*(-1) != 0
PASS: -1+1 != 0, (-1)+abs(1) != 0, or -1+(-1)*(-1) != 0
TEST: 1/2 + (-1) + 1/2 != 0
PASS: 1/2 + (-1) + 1/2 != 0
TEST: 9 != 3*3, 27 != 9*3, 32 != 8*4, or 32-27-4-1 != 0
PASS: 9 != 3*3, 27 != 9*3, 32 != 8*4, or 32-27-4-1 != 0
TEST: 5 != 4+1, 240/3 != 80, 240/4 != 60, or 240/5 != 48
PASS: 5 != 4+1, 240/3 != 80, 240/4 != 60, or 240/5 != 48
-1, 0, 1/2, 1, 2, 3, 4, 5, 9, 27, 32 & 240 are O.K.
Searching for Radix and Precision.
Radix = 2.000000 .
Closest relative separation found is U1 = 1.1102230e-16 .
Recalculating radix and precision
confirms closest relative separation U1 .
Radix confirmed.
TEST: Radix is too big: roundoff problems
PASS: Radix is too big: roundoff problems
TEST: Radix is not as good as 2 or 10
PASS: Radix is not as good as 2 or 10
TEST: (1-U1)-1/2 < 1/2 is FALSE, prog. fails?
PASS: (1-U1)-1/2 < 1/2 is FALSE, prog. fails?
TEST: Comparison is fuzzy,X=1 but X-1/2-1/2 != 0
PASS: Comparison is fuzzy,X=1 but X-1/2-1/2 != 0
The number of significant digits of the Radix is 53.000000 .
TEST: Precision worse than 5 decimal figures
PASS: Precision worse than 5 decimal figures
TEST: Subtraction is not normalized X=Y,X+Z != Y+Z!
PASS: Subtraction is not normalized X=Y,X+Z != Y+Z!
Subtraction appears to be normalized, as it should be.
Checking for guard digit in *, /, and -.
TEST: * gets too many final digits wrong.
PASS: * gets too many final digits wrong.
TEST: Division lacks a Guard Digit, so error can exceed 1 ulp
or 1/3 and 3/9 and 9/27 may disagree
PASS: Division lacks a Guard Digit, so error can exceed 1 ulp
or 1/3 and 3/9 and 9/27 may disagree
TEST: Computed value of 1/1.000..1 >= 1
PASS: Computed value of 1/1.000..1 >= 1
TEST: * and/or / gets too many last digits wrong
PASS: * and/or / gets too many last digits wrong
*, /, and - appear to have guard digits, as they should.
Checking rounding on multiply, divide and add/subtract.
TEST: X * (1/X) differs from 1
PASS: X * (1/X) differs from 1
* is neither chopped nor correctly rounded.
/ is neither chopped nor correctly rounded.
TEST: Radix * ( 1 / Radix ) differs from 1
PASS: Radix * ( 1 / Radix ) differs from 1
TEST: Incomplete carry-propagation in Addition
PASS: Incomplete carry-propagation in Addition
Addition/Subtraction neither rounds nor chops.
Sticky bit used incorrectly or not at all.
TEST: lack(s) of guard digits or failure(s) to correctly round or chop
(noted above) count as one flaw in the final tally below
ERROR: Severity: FLAW: lack(s) of guard digits or failure(s) to correctly round or chop
(noted above) count as one flaw in the final tally below.
PASS: lack(s) of guard digits or failure(s) to correctly round or chop
(noted above) count as one flaw in the final tally below
Does Multiplication commute? Testing on 20 random pairs.
No failures found in 20 integer pairs.
Running test of square root(x).
TEST: Square root of 0.0, -0.0 or 1.0 wrong
PASS: Square root of 0.0, -0.0 or 1.0 wrong
Testing if sqrt(X * X) == X for 20 Integers X.
Test for sqrt monotonicity.
sqrt has passed a test for Monotonicity.
Testing whether sqrt is rounded or chopped.
Square root is neither chopped nor correctly rounded.
Observed errors run from -5.0000000e-01 to 5.0000000e-01 ulps.
TEST: sqrt gets too many last digits wrong
PASS: sqrt gets too many last digits wrong
Testing powers Z^i for small Integers Z and i.
... no discrepancies found.
Seeking Underflow thresholds UfThold and E0.
Smallest strictly positive number found is E0 = 4.94066e-324 .
Since comparison denies Z = 0, evaluating (Z + Z) / Z should be safe.
What the machine gets for (Z + Z) / Z is 2.00000000000000000e+00 .
This is O.K., provided Over/Underflow has NOT just been signaled.
Underflow is gradual; it incurs Absolute Error =
(roundoff in UfThold) < E0.
The Underflow threshold is 2.22507385850720188e-308, below which
calculation may suffer larger Relative error than merely roundoff.
Since underflow occurs below the threshold
UfThold = (2.00000000000000000e+00) ^ (-1.02200000000000000e+03)
only underflow should afflict the expression
(2.00000000000000000e+00) ^ (-2.04400000000000000e+03);
actually calculating yields: 0.00000000000000000e+00 .
This computed value is O.K.
Testing X^((X + 1) / (X - 1)) vs. exp(2) = 7.38905609893065218e+00 as X -> 1.
Accuracy seems adequate.
Testing powers Z^Q at four nearly extreme values.
... no discrepancies found.
Searching for Overflow threshold:
This may generate an error.
Can `Z = -Y' overflow?
Trying it on Y = -inf .
Seems O.K.
Overflow threshold is V = 1.79769313486231571e+308 .
Overflow saturates at V0 = inf .
No Overflow should be signaled for V * 1 = 1.79769313486231571e+308
nor for V / 1 = 1.79769313486231571e+308 .
Any overflow signal separating this * from the one
above is a DEFECT.
What message and/or values does Division by Zero produce?
Trying to compute 1 / 0 produces ... inf .
Trying to compute 0 / 0 produces ... nan .
The number of FLAWs discovered = 1.
The arithmetic diagnosed seems Satisfactory though flawed.
END OF TEST.
*** END OF PARANOIA TEST ***