yaffsfs.c: Fix NULL dereference in yaffs_unmount2_reldev()
[yaffs2.git] / direct / test-framework / tests / run_fw_update_test_nand.sh
1 #!/bin/bash
2
3 iterations=100000
4
5 [ -z $1 ]  || iterations=$1
6
7
8 rm -f 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 -f log-nand-*$j
21    rm -f seed-nand-*$j
22    echo $seed>seed-nand-for-run-$i
23
24    rm -f emfile-nand-*$j
25
26    cp emfile-nand emfile-nand-$j
27
28    echo "#########"
29    echo "#########"
30    echo "#########"
31    echo "######### Run $i of $iterations with seed $seed"
32    echo "#########"
33    echo "#########"
34    echo "#########"
35    ./yaffs_test -u -f -p -s$seed -t 0 nand >log-nand-$i
36 done