5493900956b29b5dbd09ff32784af4c61f02b2ae
[yaffs2.git] / direct / timothy_tests / mirror_tests / mirror_tests.h
1 /*
2  * YAFFS: Yet another Flash File System . A NAND-flash specific file system. 
3  *
4  * Copyright (C) 2002-2010 Aleph One Ltd.
5  *   for Toby Churchill Ltd and Brightstar Engineering
6  *
7  * Created by Timothy Manning <timothy@yaffs.net>
8  *
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.
12  *
13  * Note: Only YAFFS headers are LGPL, YAFFS C code is covered by GPL.
14  */
15
16 #ifndef __mirror_tests_h__
17 #define __mirror_tests_h__
18
19 #include <stdio.h>
20 #include <unistd.h>     //used for getting the current directory. 
21 #include <string.h>
22 #include <errno.h>
23 #include "yaffsfs.h"
24 #include "lib.h"
25 #include <time.h>
26
27 #include "linux_test_open.h"
28 #include "yaffs_test_open.h"
29
30
31 #define LINUX 1
32 #define YAFFS 2
33
34
35
36
37
38 void init(int argc, char *argv[]);
39 int run_random_test(void);
40 int compare_linux_and_yaffs(void);
41 void get_error_yaffs(void);
42 void get_error_linux(void);
43 int select_test_id(int test_len);
44 void generate_random_numbers(arg_temp *args_struct);
45 void run_yaffs_test(int id,arg_temp *args_struct);
46 void run_linux_test(int id,arg_temp *args_struct);
47 //void generate_array_of_objects_in_yaffs(void); 
48 //void generate_array_of_objects_in_linux(void);
49
50 #endif