X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=direct%2Fyaffs_test.c;fp=direct%2Fyaffs_test.c;h=0000000000000000000000000000000000000000;hb=a90266d26463b8473743165376ba98b04353c64a;hp=2a17f75ff5c217a9564cba7bf0932b401186ce72;hpb=f8021b6b5a5f5d9b407c9be95f96da6999cdc247;p=yaffs2.git diff --git a/direct/yaffs_test.c b/direct/yaffs_test.c deleted file mode 100644 index 2a17f75..0000000 --- a/direct/yaffs_test.c +++ /dev/null @@ -1,60 +0,0 @@ -/* - * YAFFS: Yet another FFS. A NAND-flash specific file system. - * - * Copyright (C) 2002 Aleph One Ltd. - * for Toby Churchill Ltd and Brightstar Engineering - * - * Created by Charles Manning - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - */ - - - - -#include -#include -#include -#include - -#include "yaffsfs.h" - -#include "nor_stress.h" - - - -int random_seed; -int simulate_power_failure = 0; - -void BadUsage(void) -{ - printf("usage root_dir test_id seed \n"); - printf(" test_id: fw_update fw_update_init\n"); - exit(2); -} -int main(int argc, const char *argv[]) -{ - yaffs_StartUp(); - if(argc == 4) { - random_seed = atoi(argv[3]); - if(random_seed <= 0) - BadUsage(); - - if(!strcmp(argv[2],"fw_update_init")){ - NorStressTestInitialise(argv[1]); - } - else if(!strcmp(argv[2],"fw_update")){ - printf("Running stress on %s with seed %d\n",argv[1],random_seed); - simulate_power_failure = 1; - NorStressTestRun(argv[1]); - } - else - BadUsage(); - } - else - BadUsage(); - return 0; -}