X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=direct%2Ftest-framework%2Ftimothy_tests%2Fyaffs_and_linux_mirror_tests%2Fmirror_tests.h;fp=direct%2Ftest-framework%2Ftimothy_tests%2Fyaffs_and_linux_mirror_tests%2Fmirror_tests.h;h=9d308336b4ae3bd01d8ceb0d50f6502c076d87d7;hb=cabb7b51f48a784fbd8bd04ea8878abe2196167a;hp=0000000000000000000000000000000000000000;hpb=0d6314500c7d665df705d1af0ad18f5c9ee95f23;p=yaffs2.git diff --git a/direct/test-framework/timothy_tests/yaffs_and_linux_mirror_tests/mirror_tests.h b/direct/test-framework/timothy_tests/yaffs_and_linux_mirror_tests/mirror_tests.h new file mode 100644 index 0000000..9d30833 --- /dev/null +++ b/direct/test-framework/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 + * + * 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 +#include +#include //used for getting the current directory. +#include +#include +#include "yaffsfs.h" +#include "lib.h" +#include +#include +#include + +#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