X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=direct%2Ftests%2Fyaffs_test.c;h=a0f9bdbd1daf70036d61498b9745970f943c4bad;hb=f0d62f7967ddec5727a423ad8a93192337cf2233;hp=421b5b17708b1c4df38e3a4db0ffd7afbea3236a;hpb=6ce07c3f6215ce6a4f4b7fe520ef48e8cf71c7cb;p=yaffs2.git diff --git a/direct/tests/yaffs_test.c b/direct/tests/yaffs_test.c index 421b5b1..a0f9bdb 100644 --- a/direct/tests/yaffs_test.c +++ b/direct/tests/yaffs_test.c @@ -43,6 +43,15 @@ char mount_point[200]; void BadUsage(void) { + printf("Usage: yaffs_test [options] mountpoint\n"); + printf("options\n"); + printf(" f: do fsx testing\n"); + printf(" i: initialise for upgrade testing\n"); + printf(" l: multiply number of operations by 5\n"); + printf(" n nnn: number of cycles\n"); + printf(" p: simulate power fail testing\n"); + printf(" s sss: set seed\n"); + printf(" u: do upgrade test\n); exit(2); } @@ -101,7 +110,7 @@ int main(int argc, char **argv) simulate_power_failure = 0; NorStressTestInitialise(mount_point); } else if(do_upgrade){ - printf("Running stress on %s with seed %d\n",argv[1],random_seed); + printf("Running stress on %s with seed %d\n",mount_point,random_seed); NorStressTestRun(mount_point,n_cycles,do_fsx); } else if(do_fsx){ yaffs_fsx_main(mount_point,n_cycles);