X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Ftests%2Frun_fw_update_test_nor.sh;h=9c9d6160319eec06a437fd77d63aeba8c7e3e2ee;hp=5bfd945122cfd4e8022ae4bba270700821d8f079;hb=81be9bc57e13b12a5fe860ee9e53a041f10822a8;hpb=021066ab1ea323a40804c87d82246e03e029eca9 diff --git a/direct/tests/run_fw_update_test_nor.sh b/direct/tests/run_fw_update_test_nor.sh index 5bfd945..9c9d616 100755 --- a/direct/tests/run_fw_update_test_nor.sh +++ b/direct/tests/run_fw_update_test_nor.sh @@ -1,15 +1,38 @@ #!/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 j=$(( $i % 10 )) - rm seed*$j - echo $seed>seed-for-run-$i - rm data*$j - cp emfile-nor data-for-run-$i - echo "######### Run $i with seed $seed" - ./yaffs_test -f -u -p -s$seed M18-1 + + rm seed-nor-*$j + echo $seed>seed-nor-for-run-$i + + + rm emfile-nor-*$j + cp emfile-nor emfile-nor-$i + + rm log-nor-*$j + + echo "#########" + echo "#########" + echo "#########" + echo "######### Run $i of $iterations with seed $seed" + echo "#########" + echo "#########" + echo "#########" + ./yaffs_test -u -f -p -s$seed -t0 M18-1 >log-nor-$i done +