Add tracMask control option to tests to allow them to run quicker
authorcharles <charles>
Sun, 6 Dec 2009 22:06:48 +0000 (22:06 +0000)
committercharles <charles>
Sun, 6 Dec 2009 22:06:48 +0000 (22:06 +0000)
direct/tests/run_fw_update_test_nand.sh
direct/tests/yaffs_test.c

index 5a26bab..b8058bd 100755 (executable)
@@ -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
index 81eb100..9b36e08 100644 (file)
@@ -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 */