yaffs Changes to direct tests
[yaffs2.git] / direct / tests / manage_nand_test.sh
index 3d985d39b2f52ed152c75d1e8355da5287f3f3a5..7944873245f2d039ea093e1505fa3047ca2ec0a9 100755 (executable)
@@ -3,6 +3,10 @@
 dir_id=-none
 [ -z $1 ] || dir_id=$1
 
 dir_id=-none
 [ -z $1 ] || dir_id=$1
 
+iterations=100000
+
+[ -z $2 ]  || iterations=$2
+
 STARTDIR=`pwd`
 RUNDIR=`pwd`/tmp/nand-$dir_id
 mkdir $RUNDIR
 STARTDIR=`pwd`
 RUNDIR=`pwd`/tmp/nand-$dir_id
 mkdir $RUNDIR
@@ -11,7 +15,7 @@ cp $STARTDIR/*sh .
 ln -s $STARTDIR/yaffs_test yaffs_test
 
 ./init_fw_update_test_nand.sh
 ln -s $STARTDIR/yaffs_test yaffs_test
 
 ./init_fw_update_test_nand.sh
-./run_fw_update_test_nand.sh
+./run_fw_update_test_nand.sh $iterations
 
 
 echo "!!!!!!!!!!!"
 
 
 echo "!!!!!!!!!!!"