X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Ftimothy_tests%2Fquick_tests%2Fquick_tests.h;h=d157d112aed2b99123205b6dc31d6b69cf4dcd4f;hp=a11386d255070e1a1f6e7d77d7380ffb640196d2;hb=4966064e2d0557eb3132888bf31ed1edac0fef4b;hpb=4adb62b1e4338eaa34d02fdcb0c5d99cebea6747 diff --git a/direct/timothy_tests/quick_tests/quick_tests.h b/direct/timothy_tests/quick_tests/quick_tests.h index a11386d..d157d11 100644 --- a/direct/timothy_tests/quick_tests/quick_tests.h +++ b/direct/timothy_tests/quick_tests/quick_tests.h @@ -20,11 +20,10 @@ #include "test_yaffs_mount.h" #include "test_yaffs_mount_ENODEV.h" #include "test_yaffs_mount_ENAMETOOLONG.h" -#include "test_yaffs_mount_ENOENT.h" #include "test_yaffs_mount_EBUSY.h" #include "test_yaffs_unmount.h" -#include "test_yaffs_unmount_ENOENT.h" +#include "test_yaffs_unmount_ENODEV.h" #include "test_yaffs_unmount_ENAMETOOLONG.h" #include "test_yaffs_unmount_EBUSY.h" @@ -85,12 +84,36 @@ #include "test_yaffs_fstat.h" #include "test_yaffs_fstat_EBADF.h" +#include "test_yaffs_chmod.h" +#include "test_yaffs_chmod_ENOENT.h" +#include "test_yaffs_chmod_ENOTDIR.h" +#include "test_yaffs_chmod_EINVAL.h" + + +#include "test_yaffs_fchmod.h" +#include "test_yaffs_fchmod_EBADF.h" +#include "test_yaffs_fchmod_EINVAL.h" + +#include "test_yaffs_fsync.h" +#include "test_yaffs_fsync_EBADF.h" + +#include "test_yaffs_fdatasync.h" +#include "test_yaffs_fdatasync_EBADF.h" + +#include "test_yaffs_mkdir.h" +#include "test_yaffs_mkdir_EEXIST.h" +#include "test_yaffs_mkdir_ENOTDIR.h" + +#include "test_yaffs_symlink.h" +#include "test_yaffs_symlink_ENOTDIR.h" + + #include "yaffsfs.h" #include "yaffs_error_converter.h" #include "lib.h" -#define EXIT_ON_ERROR 0 + typedef struct test { int (*p_function)(void); /*pointer to test function*/ @@ -104,11 +127,10 @@ test_template test_list[]={ {test_yaffs_mount,test_yaffs_mount_clean,"test_yaffs_mount"}, {test_yaffs_mount_ENODEV,test_yaffs_mount_ENODEV_clean,"test_yaffs_mount_ENODEV"}, {test_yaffs_mount_ENAMETOOLONG,test_yaffs_mount_ENAMETOOLONG_clean,"test_yaffs_mount_ENAMETOOLONG"}, - {test_yaffs_mount_ENOENT,test_yaffs_mount_ENOENT_clean,"test_yaffs_mount_ENOENT"}, {test_yaffs_mount_EBUSY,test_yaffs_mount_EBUSY_clean,"test_yaffs_mount_EBUSY"}, {test_yaffs_unmount,test_yaffs_unmount_clean,"test_yaffs_unmount"}, - {test_yaffs_unmount_ENOENT,test_yaffs_unmount_ENOENT_clean,"test_yaffs_unmount_ENOENT"}, + {test_yaffs_unmount_ENODEV,test_yaffs_unmount_ENODEV_clean,"test_yaffs_unmount_ENODEV"}, {test_yaffs_unmount_ENAMETOOLONG,test_yaffs_unmount_ENAMETOOLONG_clean,"test_yaffs_unmount_ENAMETOOLONG"}, {test_yaffs_unmount_EBUSY,test_yaffs_unmount_EBUSY_clean,"test_yaffs_unmount_EBUSY"}, @@ -143,7 +165,7 @@ test_template test_list[]={ {test_yaffs_write,test_yaffs_write_clean,"test_yaffs_write"}, {test_yaffs_write_EBADF,test_yaffs_write_EBADF_clean,"test_yaffs_write_EBADF"}, - {test_yaffs_write_EFBIG,test_yaffs_write_EFBIG_clean,"test_yaffs_write_EFBIG"}, +// {test_yaffs_write_EFBIG,test_yaffs_write_EFBIG_clean,"test_yaffs_write_EFBIG"}, {test_yaffs_read,test_yaffs_read_clean,"test_yaffs_read"}, {test_yaffs_read_EBADF,test_yaffs_read_EBADF_clean,"test_yaffs_read_EBADF"}, @@ -166,10 +188,35 @@ test_template test_list[]={ {test_yaffs_truncate_EISDIR,test_yaffs_truncate_EISDIR_clean,"test_yaffs_truncate_EISDIR"}, {test_yaffs_truncate_EINVAL,test_yaffs_truncate_EINVAL_clean,"test_yaffs_truncate_EINVAL"}, {test_yaffs_truncate_ENOENT,test_yaffs_truncate_ENOENT_clean,"test_yaffs_truncate_ENOENT"}, - {test_yaffs_truncate_EFBIG,test_yaffs_truncate_EFBIG_clean,"test_yaffs_truncate_EFBIG"} + {test_yaffs_truncate_EFBIG,test_yaffs_truncate_EFBIG_clean,"test_yaffs_truncate_EFBIG"}, + + {test_yaffs_chmod,test_yaffs_chmod_clean,"test_yaffs_chmod"}, + {test_yaffs_chmod_ENOENT,test_yaffs_chmod_ENOENT_clean,"test_yaffs_chmod_ENOENT"}, + {test_yaffs_chmod_ENOTDIR,test_yaffs_chmod_ENOTDIR_clean,"test_yaffs_chmod_ENOTDIR"}, + {test_yaffs_chmod_EINVAL,test_yaffs_chmod_EINVAL_clean,"test_yaffs_chmod_EINVAL"}, + + {test_yaffs_fchmod,test_yaffs_fchmod_clean,"test_yaffs_fchmod"}, + {test_yaffs_fchmod_EBADF,test_yaffs_fchmod_EBADF_clean,"test_yaffs_fchmod_EBADF"}, + {test_yaffs_fchmod_EINVAL,test_yaffs_fchmod_EINVAL_clean,"test_yaffs_fchmod_EINVAL"}, + + {test_yaffs_fsync,test_yaffs_fsync_clean,"test_yaffs_fsync"}, + {test_yaffs_fsync_EBADF,test_yaffs_fsync_EBADF_clean,"test_yaffs_fsync_EBADF"}, + + {test_yaffs_fdatasync,test_yaffs_fdatasync_clean,"test_yaffs_fdatasync"}, + {test_yaffs_fdatasync_EBADF,test_yaffs_fdatasync_EBADF_clean,"test_yaffs_fdatasync_EBADF"}, + + {test_yaffs_mkdir,test_yaffs_mkdir_clean,"test_yaffs_mkdir"}, + {test_yaffs_mkdir_EEXIST,test_yaffs_mkdir_EEXIST_clean,"test_yaffs_mkdir_EEXIST"}, + {test_yaffs_mkdir_ENOTDIR,test_yaffs_mkdir_ENOTDIR_clean,"test_yaffs_mkdir_ENOTDIR"}, + + {test_yaffs_symlink,test_yaffs_symlink_clean,"test_yaffs_symlink"}, + {test_yaffs_symlink_ENOTDIR,test_yaffs_symlink_ENOTDIR_clean,"test_yaffs_symlink_ENOTDIR"} + + + }; -void init_quick_tests(void); +void init_quick_tests(int argc, char *argv[]); void quit_quick_tests(int exit_code); void get_error(void); #endif