X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=direct%2Ftests%2Frun_fw_update_test_nand.sh;h=5a26bab05ef85d4b7f7f944d4046506c6f098069;hb=859e8e1d2c37dd6ac976640c2d52281002af2c44;hp=3d6ead807e0913aa8ac0e48990728e1e9a8bd0ed;hpb=021066ab1ea323a40804c87d82246e03e029eca9;p=yaffs2.git diff --git a/direct/tests/run_fw_update_test_nand.sh b/direct/tests/run_fw_update_test_nand.sh index 3d6ead8..5a26bab 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 -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 yaffs2 done