changeset 324:b15d0262aab2

Add tracMask control option to tests to allow them to run quicker
author charles <charles>
date Sun, 06 Dec 2009 22:06:48 +0000
parents 41e670783056
children 731314aec13e
files direct/tests/run_fw_update_test_nand.sh direct/tests/yaffs_test.c
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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
--- 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 */