From: Charles Manning Date: Sun, 16 May 2010 23:02:42 +0000 (+1200) Subject: yaffs: Tweak tests to use log files X-Git-Tag: pre-name-change~64 X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=commitdiff_plain;h=81be9bc57e13b12a5fe860ee9e53a041f10822a8 yaffs: Tweak tests to use log files This runs faster than spewing onto a terminal. Signed-off-by: Charles Manning --- diff --git a/direct/tests/run_fw_update_test_nand.sh b/direct/tests/run_fw_update_test_nand.sh index af92625..70747a1 100755 --- a/direct/tests/run_fw_update_test_nand.sh +++ b/direct/tests/run_fw_update_test_nand.sh @@ -16,6 +16,8 @@ do seed=$RANDOM j=$(( $i % 10 )) + + rm -f log-nand-*$j rm -f seed-nand-*$j echo $seed>seed-nand-for-run-$i @@ -36,5 +38,5 @@ do echo "#########" echo "#########" echo "#########" - ./yaffs_test -u -f -p -s$seed -t 0 yaffs2 + ./yaffs_test -u -f -p -s$seed -t 0 yaffs2 >log-nand-$i done diff --git a/direct/tests/run_fw_update_test_nor.sh b/direct/tests/run_fw_update_test_nor.sh index 3076622..9c9d616 100755 --- a/direct/tests/run_fw_update_test_nor.sh +++ b/direct/tests/run_fw_update_test_nor.sh @@ -16,10 +16,16 @@ do seed=$RANDOM j=$(( $i % 10 )) + rm seed-nor-*$j echo $seed>seed-nor-for-run-$i + + rm emfile-nor-*$j cp emfile-nor emfile-nor-$i + + rm log-nor-*$j + echo "#########" echo "#########" echo "#########" @@ -27,5 +33,6 @@ do echo "#########" echo "#########" echo "#########" - ./yaffs_test -u -f -p -s$seed -t0 M18-1 + ./yaffs_test -u -f -p -s$seed -t0 M18-1 >log-nor-$i done +