2 * YAFFS: Yet another Flash File System . A NAND-flash specific file system.
4 * Copyright (C) 2002-2010 Aleph One Ltd.
5 * for Toby Churchill Ltd and Brightstar Engineering
7 * Created by Timothy Manning <timothy@yaffs.net>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU Lesser General Public License version 2.1 as
11 * published by the Free Software Foundation.
13 * Note: Only YAFFS headers are LGPL, YAFFS C code is covered by GPL.
16 #ifndef __quick_tests_h__
17 #define __quick_tests_h__
20 #include "test_mount_yaffs.h"
22 #include "test_yaffs_open.h"
23 #include "test_yaffs_open_EISDIR.h"
24 #include "test_yaffs_open_EEXIST.h"
25 #include "test_yaffs_open_ENOENT.h"
26 #include "test_yaffs_open_ENOTDIR.h"
28 #include "test_yaffs_close_EBADF.h"
31 #include "test_yaffs_unlinking.h"
32 #include "test_yaffs_ftruncate.h"
33 #include "test_yaffs_truncate.h"
34 #include "test_yaffs_write.h"
35 #include "test_yaffs_read.h"
36 #include "test_yaffs_lseek.h"
37 #include "test_yaffs_access.h"
38 #include "test_yaffs_stat.h"
40 #include "yaffs_error_converter.h"
44 int (*p_function)(void); /*pointer to test function*/
45 int (*p_function_clean)(void);
46 /*char pass_message[50]; will not need a pass message*/
47 char *fail_message; /*pointer to fail message, needs to include name of test*/
51 test_template test_list[]={
52 {mount_yaffs_test,mount_yaffs_test_clean,"mount_yaffs_test"},
53 {test_yaffs_open,test_yaffs_open_clean,"test_yaffs_open"},
54 {test_yaffs_open_EISDIR,test_yaffs_open_EISDIR_clean,"test_yaffs_open_EISDIR"},
55 {test_yaffs_open_EEXIST,test_yaffs_open_EEXIST_clean,"test_yaffs_open_EEXIST"},
56 {test_yaffs_open_ENOTDIR,test_yaffs_open_ENOTDIR_clean,"test_yaffs_open_ENOTDIR"},
57 {test_yaffs_open_ENOENT,test_yaffs_open_ENOENT_clean,"test_yaffs_open_ENOENT"},
59 {test_yaffs_close_EBADF,test_yaffs_close_EBADF_clean,"test_yaffs_close_EBADF"},
61 {test_yaffs_access,test_yaffs_access_clean,"test_yaffs_access"},
62 {test_yaffs_unlinking, test_yaffs_unlinking_clean,"test_yaffs_unlinking"},
64 {test_yaffs_lseek,test_yaffs_lseek_clean,"test_yaffs_lseek"},
65 {test_yaffs_write,test_yaffs_write_clean,"test_yaffs_write"},
66 {test_yaffs_read,test_yaffs_read_clean,"test_yaffs_read"},
69 {test_yaffs_stat,test_yaffs_stat_clean,"test_yaffs_stat"},
70 {test_yaffs_ftruncate,test_yaffs_ftruncate_clean,"test_yaffs_ftruncate"},
71 {test_yaffs_truncate,test_yaffs_truncate_clean,"test_yaffs_truncate"}
75 void init_quick_tests(void);
76 void quit_quick_tests(int exit_code);