9265336111f592b3fac6b92aa40e496e1b7d7e06
[yaffs2.git] / direct / test-framework / tests / run_fw_update_test_nor.sh
1 #!/bin/bash
2
3 iterations=100000
4
5 [ -z $1 ]  || iterations=$1
6
7
8 rm iteration-max-*
9 touch iteration-max-$iterations
10
11 echo " Running $iterations iterations"
12 sleep 2
13
14 for ((i=0; i < $iterations; i++))  
15 do
16
17    seed=$RANDOM   
18    j=$(( $i % 10 ))
19
20    rm seed-nor-*$j
21    echo $seed>seed-nor-for-run-$i
22
23
24    rm emfile-nor-*$j
25    cp emfile-nor emfile-nor-$i
26
27    rm log-nor-*$j
28
29    echo "#########"
30    echo "#########"
31    echo "#########"
32    echo "######### Run $i of $iterations with seed $seed"
33    echo "#########"
34    echo "#########"
35    echo "#########"
36    ./yaffs_test -u -f -p -s$seed -t0 M18-1 
37    #>log-nor-$i
38 done
39