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=9265336111f592b3fac6b92aa40e496e1b7d7e06;hp=b9daa24443ef7c69b9c971ff9a2054fa6c7adf62;hb=570d9b811895119f6b3411678cbdcaa27226f403;hpb=1a60bf00885822831b6553b58ec5236d385f07a3 diff --git a/direct/tests/run_fw_update_test_nor.sh b/direct/tests/run_fw_update_test_nor.sh index b9daa24..9265336 100755 --- a/direct/tests/run_fw_update_test_nor.sh +++ b/direct/tests/run_fw_update_test_nor.sh @@ -1,15 +1,39 @@ #!/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-nor-*$j echo $seed>seed-nor-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 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 +