From: charles Date: Sun, 6 Dec 2009 22:06:48 +0000 (+0000) Subject: Add tracMask control option to tests to allow them to run quicker X-Git-Tag: pre-name-change~163 X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=commitdiff_plain;h=2fdee368495b7252f4213efaa62c1d17b8cd5e94 Add tracMask control option to tests to allow them to run quicker --- diff --git a/direct/tests/run_fw_update_test_nand.sh b/direct/tests/run_fw_update_test_nand.sh index 5a26bab..b8058bd 100755 --- a/direct/tests/run_fw_update_test_nand.sh +++ b/direct/tests/run_fw_update_test_nand.sh @@ -27,5 +27,5 @@ do echo "#########" echo "#########" echo "#########" - ./yaffs_test -u -f -p -s$seed yaffs2 + ./yaffs_test -u -f -p -s$seed -t 0 yaffs2 done diff --git a/direct/tests/yaffs_test.c b/direct/tests/yaffs_test.c index 81eb100..9b36e08 100644 --- a/direct/tests/yaffs_test.c +++ b/direct/tests/yaffs_test.c @@ -190,7 +190,7 @@ int main(int argc, char **argv) signal(SIGBUS,bad_ptr_handler); signal(SIGABRT,bad_ptr_handler); #endif - while ((ch = getopt(argc,argv, "bfilmn:ps:u")) + while ((ch = getopt(argc,argv, "bfilmn:ps:t:u")) != EOF) switch (ch) { case 's': @@ -220,6 +220,9 @@ int main(int argc, char **argv) case 'n': n_cycles = atoi(optarg); break; + case 't': + yaffs_traceMask = strtol(optarg,NULL,0); + break; default: BadUsage(); /* NOTREACHED */