More test tweaks
[yaffs2.git] / direct / tests / run_fw_update_test_nand.sh
index e5ce2d7600045c67d71e904c25aae66910fc76d9..5a26bab05ef85d4b7f7f944d4046506c6f098069 100755 (executable)
@@ -1,7 +1,17 @@
 #!/bin/bash
 
+iterations=100000
 
-for ((i=0; i < 100000; i++))  
+[ -z $1 ]  || iterations=$1
+
+
+rm iteration-max-*
+touch iteration-max-$iterations
+
+echo " Running $iterations iterations"
+sleep 2
+
+for ((i=0; i < $iterations; i++))  
 do
 
    seed=$RANDOM   
@@ -10,8 +20,12 @@ do
    echo $seed>seed-nand-for-run-$i
    rm emfile-2k-0-*$j
    cp emfile-2k-0 emfile-2k-0-$i
-   echo
-   echo
-   echo "######### Run $i with seed $seed"
+   echo "#########"
+   echo "#########"
+   echo "#########"
+   echo "######### Run $i of $iterations with seed $seed"
+   echo "#########"
+   echo "#########"
+   echo "#########"
    ./yaffs_test -u -f -p -s$seed yaffs2
 done