X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Ftests%2Frun_fw_update_test_nand.sh;h=5a26bab05ef85d4b7f7f944d4046506c6f098069;hp=e5ce2d7600045c67d71e904c25aae66910fc76d9;hb=185cc1662635bb58df2db568270a24fa5170e673;hpb=47f0aa3a5008048dd068bbc7fef87650d5df12fb;ds=sidebyside diff --git a/direct/tests/run_fw_update_test_nand.sh b/direct/tests/run_fw_update_test_nand.sh index e5ce2d7..5a26bab 100755 --- a/direct/tests/run_fw_update_test_nand.sh +++ b/direct/tests/run_fw_update_test_nand.sh @@ -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