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