Merge branch 'time_upgrade'
[yaffs2.git] / direct / test-framework / tests / launch_tests.sh
1 #! /bin/sh
2 set -x
3
4
5 iterations=100000
6
7 [ -z $1 ]  || iterations=$1
8
9
10 LAUNCHDIR=`pwd`
11 RUNDIR=`pwd`/tmp
12 mkdir $RUNDIR
13
14 # Check if RUNDIR is mounted, if not, mount as tmpfs
15 # because we don't want to hammer the disk.
16 if [ -z "$(mount | grep $RUNDIR)" ]; then
17 sudo mount -t tmpfs -osize=7G none $RUNDIR
18 sudo chmod a+wr $RUNDIR
19 fi
20
21
22
23
24 xterm  -e "$LAUNCHDIR/manage_nor_test.sh  0 $iterations"&
25 xterm  -e "$LAUNCHDIR/manage_nor_test.sh  1 $iterations"&
26 xterm  -e "$LAUNCHDIR/manage_nor_test.sh  2 $iterations"&
27
28 xterm  -e "$LAUNCHDIR/manage_m18_test.sh  0 $iterations"&
29 xterm  -e "$LAUNCHDIR/manage_m18_test.sh  1 $iterations"&
30 xterm  -e "$LAUNCHDIR/manage_m18_test.sh  2 $iterations"&
31
32 xterm  -e "$LAUNCHDIR/manage_nand_test.sh  0 $iterations"&
33 xterm  -e "$LAUNCHDIR/manage_nand_test.sh  1 $iterations"&
34 xterm  -e "$LAUNCHDIR/manage_nand_test.sh  2 $iterations"&
35 xterm  -e "$LAUNCHDIR/manage_nand_test.sh  3 $iterations"&