Add both regular nor and m18 tests to test harness
[yaffs2.git] / direct / test-framework / tests / manage_m18_test.sh
diff --git a/direct/test-framework/tests/manage_m18_test.sh b/direct/test-framework/tests/manage_m18_test.sh
new file mode 100755 (executable)
index 0000000..17a41a3
--- /dev/null
@@ -0,0 +1,28 @@
+#! /bin/sh
+
+set -x
+
+dir_id=-none
+[ -z $1 ] || dir_id=$1
+
+
+iterations=100000
+
+[ -z $2 ]  || iterations=$2
+
+STARTDIR=`pwd`
+RUNDIR=`pwd`/tmp/m18-$dir_id
+mkdir $RUNDIR
+cd $RUNDIR
+cp $STARTDIR/*sh .
+ln -s $STARTDIR/yaffs_test yaffs_test
+
+./init_fw_update_test_m18.sh
+./run_fw_update_test_m18.sh $iterations
+
+echo "!!!!!!!!!!!"
+echo "Tests done"
+while true
+do
+sleep 10
+done