2 * YAFFS: Yet another FFS. A NAND-flash specific file system.
4 * Copyright (C) 2002 Aleph One Ltd.
5 * for Toby Churchill Ltd and Brightstar Engineering
7 * Created by Charles Manning <charles@aleph1.co.uk>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License version 2 as
11 * published by the Free Software Foundation.
25 #include "nor_stress.h"
30 int simulate_power_failure = 0;
34 printf("usage root_dir test_id seed \n");
35 printf(" test_id: fw_update fw_update_init\n");
38 int main(int argc, const char *argv[])
42 random_seed = atoi(argv[3]);
46 if(!strcmp(argv[2],"fw_update_init")){
47 NorStressTestInitialise(argv[1]);
49 else if(!strcmp(argv[2],"fw_update")){
50 printf("Running stress on %s with seed %d\n",argv[1],random_seed);
51 simulate_power_failure = 1;
52 NorStressTestRun(argv[1]);