Add more test code.
authorCharles Manning <cdhmanning@gmail.com>
Tue, 30 Mar 2010 01:35:05 +0000 (14:35 +1300)
committerCharles Manning <cdhmanning@gmail.com>
Tue, 30 Mar 2010 01:35:05 +0000 (14:35 +1300)
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
direct/tests/README
direct/tests/launch_tests.sh [new file with mode: 0755]
direct/tests/manage_nand_test.sh
direct/tests/manage_nor_test.sh
linux-tests/drive_gnuplot.sh

index c4976c2..545c359 100644 (file)
@@ -55,3 +55,6 @@ $ xterm  -e "`pwd`/manage_nor_test.sh  2"&
 $ xterm  -e "`pwd`/manage_nor_test.sh  3"&
 ...
 
+Then there's launch_tests.sh which sets up a tmpfs directory and launches 3
+nor simulations and 3 nand simulations.
+
diff --git a/direct/tests/launch_tests.sh b/direct/tests/launch_tests.sh
new file mode 100755 (executable)
index 0000000..31e9e95
--- /dev/null
@@ -0,0 +1,16 @@
+#! /bin/sh
+set -x
+LAUNCHDIR=`pwd`
+RUNDIR=`pwd`/tmp
+mkdir $RUNDIR
+sudo mount -t tmpfs none $RUNDIR
+sudo chmod a+wr $RUNDIR
+
+
+
+xterm  -e "$LAUNCHDIR/manage_nor_test.sh  0"&
+xterm  -e "$LAUNCHDIR/manage_nand_test.sh 0"&
+xterm  -e "$LAUNCHDIR/manage_nor_test.sh  1"&
+xterm  -e "$LAUNCHDIR/manage_nand_test.sh 1"&
+xterm  -e "$LAUNCHDIR/manage_nor_test.sh  2"&
+xterm  -e "$LAUNCHDIR/manage_nand_test.sh 2"&
index 0d02f13..ae856ac 100755 (executable)
@@ -3,13 +3,12 @@
 dir_id=-none
 [ -z $1 ] || dir_id=$1
 
-RUNDIR=`pwd`/tmpnand$dir_id
+STARTDIR=`pwd`
+RUNDIR=`pwd`/tmp/nand-$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_nand.sh
 ./run_fw_update_test_nand.sh
index e1c94d5..5e2fd99 100755 (executable)
@@ -3,13 +3,12 @@
 dir_id=-none
 [ -z $1 ] || dir_id=$1
 
-RUNDIR=`pwd`/tmpnor$dir_id
+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
index 0f1ebd8..a6d0550 100755 (executable)
@@ -11,7 +11,7 @@ echo $plot_str
  
 while true; do
 sleep 1
-tail -100 $the_log_file > trunc_data
+tail -500 $the_log_file > trunc_data
 echo replot
 done