From 81be9bc57e13b12a5fe860ee9e53a041f10822a8 Mon Sep 17 00:00:00 2001 From: Charles Manning Date: Mon, 17 May 2010 11:02:42 +1200 Subject: [PATCH 1/1] yaffs: Tweak tests to use log files This runs faster than spewing onto a terminal. Signed-off-by: Charles Manning --- direct/tests/run_fw_update_test_nand.sh | 4 +++- direct/tests/run_fw_update_test_nor.sh | 9 ++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) 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 + -- 2.30.2