Have updated yaffs direct tests and added README files to the tests.
[yaffs2.git] / direct / tests / manage_nor_test.sh
index e1c94d5bc87f87fcf210dd0d0c24608be1298928..60b78daa44426f7bd92fbf55f783a2b1b8bb5182 100755 (executable)
@@ -3,14 +3,24 @@
 dir_id=-none
 [ -z $1 ] || dir_id=$1
 
-RUNDIR=`pwd`/tmpnor$dir_id
+
+iterations=100000
+
+[ -z $2 ]  || iterations=$2
+
+STARTDIR=`pwd`
+RUNDIR=`pwd`/tmp/nor-$dir_id
 mkdir $RUNDIR
-sudo mount -t tmpfs none $RUNDIR
-sudo chmod a+wr $RUNDIR
 cd $RUNDIR
-cp ../*sh .
-ln -s ../yaffs_test yaffs_test
+cp $STARTDIR/*sh .
+ln -s $STARTDIR/yaffs_test yaffs_test
 
 ./init_fw_update_test_nor.sh
-./run_fw_update_test_nor.sh
+./run_fw_update_test_nor.sh $iterations
 
+echo "!!!!!!!!!!!"
+echo "Tests done"
+while true
+do
+sleep 10
+done