Mercurial > yaffs-ecoscentric-gpl
view direct/tests/run_fw_update_test_nor.sh @ 414:60b3b6fbb259
yaffs: Speed up test script
Set tracing to zero so that test script runs faster
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
| author | Charles Manning <cdhmanning@gmail.com> |
|---|---|
| date | Wed, 28 Apr 2010 08:38:44 +1200 |
| parents | 902c05ea202d |
| children | 5a26e5bec29d |
line wrap: on
line source
#!/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-nor-*$j echo $seed>seed-nor-for-run-$i rm emfile-nor-*$j cp emfile-nor emfile-nor-$i echo "#########" echo "#########" echo "#########" echo "######### Run $i of $iterations with seed $seed" echo "#########" echo "#########" echo "#########" ./yaffs_test -u -f -p -s$seed -t0 M18-1 done
