892f80bfb829c498acf9ce8227c0c89a75f9e98e
[yaffs2.git] / direct / 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    rm seed-nor-*$j
20    echo $seed>seed-nor-for-run-$i
21    rm emfile-nor-*$j
22    cp emfile-nor emfile-nor-$i
23    echo "#########"
24    echo "#########"
25    echo "#########"
26    echo "######### Run $i of $iterations with seed $seed"
27    echo "#########"
28    echo "#########"
29    echo "#########"
30    ./yaffs_test -u -f -p -s$seed M18-1
31 done