Mercurial > yaffs-ecoscentric-gpl
changeset 327:902c05ea202d
Update not stress test
| author | charles <charles> |
|---|---|
| date | Mon, 14 Dec 2009 19:42:36 +0000 |
| parents | 490a804b7bd3 |
| children | 1ec0197afc8d |
| files | direct/tests/init_fw_update_test_nor.sh direct/tests/run_fw_update_test_nor.sh |
| diffstat | 2 files changed, 24 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/direct/tests/init_fw_update_test_nor.sh +++ b/direct/tests/init_fw_update_test_nor.sh @@ -1,3 +1,5 @@ #!/bin/bash # Run this to initialise the file system for the test runs. - ./yaffs_test -u -i M18-1 +rm seed-nor-* +rm emfile-nor* +./yaffs_test -u -i M18-1
--- a/direct/tests/run_fw_update_test_nor.sh +++ b/direct/tests/run_fw_update_test_nor.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-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 + echo "#########" + echo "#########" + echo "#########" + echo "######### Run $i of $iterations with seed $seed" + echo "#########" + echo "#########" + echo "#########" + ./yaffs_test -u -f -p -s$seed M18-1 done
