X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Ftimothy_tests%2Fdev%2Fyaffs_tester.h;fp=direct%2Ftimothy_tests%2Fdev%2Fyaffs_tester.h;h=ad68d297e5b280bf072dd8e5acef25f24976fa51;hp=0000000000000000000000000000000000000000;hb=86231ed7a8ebecf2e4821f9b426262045f941591;hpb=a34826e701dd381a293bb90b25a48d2bd58e8de8 diff --git a/direct/timothy_tests/dev/yaffs_tester.h b/direct/timothy_tests/dev/yaffs_tester.h new file mode 100644 index 0000000..ad68d29 --- /dev/null +++ b/direct/timothy_tests/dev/yaffs_tester.h @@ -0,0 +1,34 @@ +/* + * YAFFS: Yet another Flash File System . A NAND-flash specific file system. + * + * Copyright (C) 2002-2010 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 __YAFFS_TESTER_H__ + #define __YAFFS_TESTER_H__ + +#include +#include + +#include "yaffsfs.h" /* it is in "yaffs2/direct/" link it in the Makefile */ +#include "message_buffer.h" +#include "error_handler.h" + + +#define MAX_FILE_NAME_SIZE 51 + +void init(char *yaffs_test_dir,char *yaffs_mount_dir); /*sets up yaffs and mounts yaffs */ +void test(char *yaffs_test_dir); /*contains the test code*/ +void generate_random_string(char *ptr); /*generates a random string of letters to be used for a name*/ +void join_paths(char *path1,char *path2,char *newpath ); +void copy_array(char *from,char *to, unsigned int from_offset,unsigned int to_offset); +#endif