Set up a test framework.
[yaffs2.git] / direct / test-framework / tests / launch_tests.sh
diff --git a/direct/test-framework/tests/launch_tests.sh b/direct/test-framework/tests/launch_tests.sh
new file mode 100755 (executable)
index 0000000..779fa48
--- /dev/null
@@ -0,0 +1,27 @@
+#! /bin/sh
+set -x
+
+
+iterations=100000
+
+[ -z $1 ]  || iterations=$1
+
+
+LAUNCHDIR=`pwd`
+RUNDIR=`pwd`/tmp
+mkdir $RUNDIR
+
+if [ -z "$(mount | grep $RUNDIR)" ]; then
+sudo mount -t tmpfs -osize=2G none $RUNDIR
+sudo chmod a+wr $RUNDIR
+fi
+
+
+
+
+xterm  -e "$LAUNCHDIR/manage_nor_test.sh  0 $iterations"&
+xterm  -e "$LAUNCHDIR/manage_nand_test.sh  0 $iterations"&
+xterm  -e "$LAUNCHDIR/manage_nor_test.sh  1 $iterations"&
+xterm  -e "$LAUNCHDIR/manage_nand_test.sh  1 $iterations"&
+xterm  -e "$LAUNCHDIR/manage_nor_test.sh  2 $iterations"&
+xterm  -e "$LAUNCHDIR/manage_nand_test.sh  2 $iterations"&