X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=direct%2Ftest-framework%2Ftests%2Frun_fw_update_test_nor.sh;fp=direct%2Ftest-framework%2Ftests%2Frun_fw_update_test_nor.sh;h=9265336111f592b3fac6b92aa40e496e1b7d7e06;hb=c08faae4258b29a794ad55ca160c5a247145c838;hp=0000000000000000000000000000000000000000;hpb=87b33ecd1898c99b9aa2b0abcbb3e6002d6b3532;p=yaffs2.git diff --git a/direct/test-framework/tests/run_fw_update_test_nor.sh b/direct/test-framework/tests/run_fw_update_test_nor.sh new file mode 100755 index 0000000..9265336 --- /dev/null +++ b/direct/test-framework/tests/run_fw_update_test_nor.sh @@ -0,0 +1,39 @@ +#!/bin/bash + +iterations=100000 + +[ -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 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 +