diff options
Diffstat (limited to 'direct/timothy_tests/yaffs_and_linux_mirror_tests/mirror_tests.h')
-rw-r--r-- | direct/timothy_tests/yaffs_and_linux_mirror_tests/mirror_tests.h | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/direct/timothy_tests/yaffs_and_linux_mirror_tests/mirror_tests.h b/direct/timothy_tests/yaffs_and_linux_mirror_tests/mirror_tests.h new file mode 100644 index 0000000..9d30833 --- /dev/null +++ b/direct/timothy_tests/yaffs_and_linux_mirror_tests/mirror_tests.h @@ -0,0 +1,61 @@ +/* + * YAFFS: Yet another Flash File System . A NAND-flash specific file system. + * + * Copyright (C) 2002-2011 Aleph One Ltd. + * for Toby Churchill Ltd and Brightstar Engineering + * + * Created by Timothy Manning <timothy@yaffs.net> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 2.1 as + * published by the Free Software Foundation. + * + * Note: Only YAFFS headers are LGPL, YAFFS C code is covered by GPL. + */ + +#ifndef __mirror_tests_h__ +#define __mirror_tests_h__ + +#include <stdio.h> +#include <dirent.h> +#include <unistd.h> //used for getting the current directory. +#include <string.h> +#include <errno.h> +#include "yaffsfs.h" +#include "lib.h" +#include <time.h> +#include <getopt.h> +#include <sys/stat.h> + +#include "linux_test_open.h" +#include "yaffs_test_open.h" +#include "linux_test_truncate.h" +#include "yaffs_test_truncate.h" +#include "linux_test_unlink.h" +#include "yaffs_test_unlink.h" +#include "linux_test_write.h" +#include "yaffs_test_write.h" + +#define LINUX 1 +#define YAFFS 2 + + + + + +void init(int argc, char *argv[]); +int run_random_test(int num_of_random_tests); +int compare_linux_and_yaffs(arg_temp *args_struct); + +int select_test_id(int test_len); +void generate_random_numbers(arg_temp *args_struct); +void run_yaffs_test(int id,arg_temp *args_struct); +void run_linux_test(int id,arg_temp *args_struct); +void clean_dir(void); +int select_test_id(int test_len); +int check_mode(arg_temp *args_struct); +int check_mode_file(char *path); +//void generate_array_of_objects_in_yaffs(void); +//void generate_array_of_objects_in_linux(void); + +#endif |