X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Ftest-framework%2Ftests%2Frun_fw_update_test_m18.sh;fp=direct%2Ftest-framework%2Ftests%2Frun_fw_update_test_m18.sh;h=9271563158d81f05ae1b163b4dbcd835fe292692;hp=0000000000000000000000000000000000000000;hb=cc1c7edf009e4c9b29e9abce99754faac0a11f59;hpb=1c778c3bd4a01a5cad8db6ff52c24c99a3e9fa0e diff --git a/direct/test-framework/tests/run_fw_update_test_m18.sh b/direct/test-framework/tests/run_fw_update_test_m18.sh new file mode 100755 index 0000000..9271563 --- /dev/null +++ b/direct/test-framework/tests/run_fw_update_test_m18.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-m18-*$j + echo $seed>seed-m18-for-run-$i + + + rm emfile-m18-*$j + cp emfile-m18 emfile-m18-$i + + rm log-m18-*$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-m18-$i +done +