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=b8058bd5f585e3e2b7cb00f659a8f2177fe7afee;hp=61baf7fd7d1c1de0be9b882395880f9264f9a3e0;hb=5ce92003722c16d9ab00a1ee2c55c0f1e1a2e5bb;hpb=b63b7692c4cac9a22bf734df859c64d93b5f0878 diff --git a/direct/tests/run_fw_update_test_nand.sh b/direct/tests/run_fw_update_test_nand.sh index 61baf7f..b8058bd 100755 --- a/direct/tests/run_fw_update_test_nand.sh +++ b/direct/tests/run_fw_update_test_nand.sh @@ -1,15 +1,31 @@ #!/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 seed-nand-*$j + echo $seed>seed-nand-for-run-$i rm emfile-2k-0-*$j cp emfile-2k-0 emfile-2k-0-$i - echo "######### Run $i with seed $seed" - ./yaffs_test -u -f -p -s$seed yaffs2 + echo "#########" + echo "#########" + echo "#########" + echo "######### Run $i of $iterations with seed $seed" + echo "#########" + echo "#########" + echo "#########" + ./yaffs_test -u -f -p -s$seed -t 0 yaffs2 done