Add both regular nor and m18 tests to test harness
authorCharles Manning <cdhmanning@gmail.com>
Fri, 12 Oct 2012 03:40:00 +0000 (16:40 +1300)
committerCharles Manning <cdhmanning@gmail.com>
Fri, 12 Oct 2012 03:40:00 +0000 (16:40 +1300)
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
direct/test-framework/tests/init_fw_update_test_m18.sh
direct/test-framework/tests/launch_tests.sh
direct/test-framework/tests/manage_m18_test.sh [new file with mode: 0755]
direct/test-framework/tests/manage_m18_tests.sh [new file with mode: 0755]
direct/test-framework/tests/run_fw_update_test_m18.sh

index 4957990cf1ad93eaabbbdb7c97bd891d1756d4ea..046089742fcbe7c05f962868a77d2fdadd01a780 100755 (executable)
@@ -1,5 +1,6 @@
 #!/bin/bash
 # Run this to initialise the file system for the test runs.
+set -x
 rm seed-m18-*
 rm emfile-m18*
 ./yaffs_test  -u -i M18-1
index 779fa48c5301406c162355e8460be59888d21003..b2041d3f1b62767aaa98d075b9b00503afe4bd8c 100755 (executable)
@@ -20,8 +20,13 @@ 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_m18_test.sh  0 $iterations"&
+xterm  -e "$LAUNCHDIR/manage_m18_test.sh  1 $iterations"&
+xterm  -e "$LAUNCHDIR/manage_m18_test.sh  2 $iterations"&
+
+xterm  -e "$LAUNCHDIR/manage_nand_test.sh  0 $iterations"&
+xterm  -e "$LAUNCHDIR/manage_nand_test.sh  1 $iterations"&
 xterm  -e "$LAUNCHDIR/manage_nand_test.sh  2 $iterations"&
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
diff --git a/direct/test-framework/tests/manage_m18_tests.sh b/direct/test-framework/tests/manage_m18_tests.sh
new file mode 100755 (executable)
index 0000000..5ddd6aa
--- /dev/null
@@ -0,0 +1,26 @@
+#! /bin/sh
+
+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
index 9271563158d81f05ae1b163b4dbcd835fe292692..f05a263207d4edaf2132bd0c6d224efde7f747d6 100755 (executable)
@@ -1,5 +1,8 @@
 #!/bin/bash
 
+
+set -x
+
 iterations=100000
 
 [ -z $1 ]  || iterations=$1