diff options
author | Chris Johns <chrisj@rtems.org> | 2018-04-09 13:40:29 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2018-04-10 08:24:54 +1000 |
commit | 8967e5fa78361bc7db4681ed117b0e7164821ef5 (patch) | |
tree | 61d7c94ddec9cb8d812a10790059168be046ac2e /testsuites/fstests/fssymlink | |
parent | testsuite/libtests: Merged nested Makefile.am files into one Makefile.am (diff) | |
download | rtems-8967e5fa78361bc7db4681ed117b0e7164821ef5.tar.bz2 |
testsuite/fstests: Merged nested Makefile.am files into one Makefile.am
This change is part of the testsuite Makefile.am reorganization.
Update #3382
Diffstat (limited to 'testsuites/fstests/fssymlink')
-rw-r--r-- | testsuites/fstests/fssymlink/imfs_fssymlink.scn | 37 | ||||
-rw-r--r-- | testsuites/fstests/fssymlink/jffs2_fssymlink.scn | 37 | ||||
-rw-r--r-- | testsuites/fstests/fssymlink/mimfs_fssymlink.scn | 31 | ||||
-rw-r--r-- | testsuites/fstests/fssymlink/mrfs_fssymlink.scn | 37 |
4 files changed, 142 insertions, 0 deletions
diff --git a/testsuites/fstests/fssymlink/imfs_fssymlink.scn b/testsuites/fstests/fssymlink/imfs_fssymlink.scn new file mode 100644 index 0000000000..53fc11f705 --- /dev/null +++ b/testsuites/fstests/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/fssymlink/jffs2_fssymlink.scn b/testsuites/fstests/fssymlink/jffs2_fssymlink.scn new file mode 100644 index 0000000000..8ef1d580c9 --- /dev/null +++ b/testsuites/fstests/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/fssymlink/mimfs_fssymlink.scn b/testsuites/fstests/fssymlink/mimfs_fssymlink.scn new file mode 100644 index 0000000000..c18037dacf --- /dev/null +++ b/testsuites/fstests/fssymlink/mimfs_fssymlink.scn @@ -0,0 +1,31 @@ +*** FILE SYSTEM TEST ( MOUNTED IMFS ) *** +Initializing filesystem MOUNTED IMFS + + +*** SYMLINK TEST *** +Create a file named file +Create a symlink named symlink to file +call readlink +file +Unlink the file +call readlink +Create a dir named file +Create a symlink named symlink to file +call readlink +rmdir the dir +symlink loop erro test +Testing creat with arguments: "path,mode" EXPECT "ELOOP" +PASS +Testing open with arguments: "path,O_CREAT|O_WRONLY,mode" EXPECT "ELOOP" +PASS +Testing truncate with arguments: "path,0" EXPECT "ELOOP" +PASS +Testing rename with arguments: "path,file04" EXPECT "ELOOP" +FAIL ../../../../../../../rtems/c/src/../../testsuites/fstests/mimfs_fssymlink/../fssymlink/test.c: 151 +Testing unlink with arguments: "path" EXPECT "ELOOP" +PASS +Testing mkdir with arguments: "path,mode" EXPECT "ELOOP" +PASS +Testing rmdir with arguments: "path" EXPECT "ELOOP" +PASS +*** END OF SYMLINK TEST *** diff --git a/testsuites/fstests/fssymlink/mrfs_fssymlink.scn b/testsuites/fstests/fssymlink/mrfs_fssymlink.scn new file mode 100644 index 0000000000..bdcbeefb59 --- /dev/null +++ b/testsuites/fstests/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 ) *** |