Mercurial > yaffs-ecoscentric
changeset 257:cb6f501bd6c2
Replace test scrips with nand and nor versions
| author | charles |
|---|---|
| date | Fri, 16 Jan 2009 00:49:25 +0000 |
| parents | 3bd2a4e3262f |
| children | 8289847c588e |
| files | direct/tests/init_fw_update_test.sh direct/tests/init_fw_update_test_nand.sh direct/tests/init_fw_update_test_nor.sh direct/tests/run_fw_update_test.sh direct/tests/run_fw_update_test_nand.sh direct/tests/run_fw_update_test_nor.sh |
| diffstat | 6 files changed, 36 insertions(+), 18 deletions(-) [+] |
line wrap: on
line diff
deleted file mode 100755 --- a/direct/tests/init_fw_update_test.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash -# Run this to initialise the file system for the test runs. - ./yaffs_test -u -i M18-1
new file mode 100755 --- /dev/null +++ b/direct/tests/init_fw_update_test_nand.sh @@ -0,0 +1,3 @@ +#!/bin/bash +# Run this to initialise the file system for the test runs. + ./yaffs_test -u -i yaffs2
new file mode 100755 --- /dev/null +++ b/direct/tests/init_fw_update_test_nor.sh @@ -0,0 +1,3 @@ +#!/bin/bash +# Run this to initialise the file system for the test runs. + ./yaffs_test -u -i M18-1
deleted file mode 100755 --- a/direct/tests/run_fw_update_test.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash - - -for ((i=0; i < 100000; i++)) -do - - seed=$RANDOM - j=$(( $i % 10 )) - rm seed*$j - echo $seed>seed-for-run-$i - rm data*$j - cp emfile-nor data-for-run-$i - echo "######### Run $i with seed $seed" - ./yaffs_test -f -u -p -s$seed M18-1 -done
new file mode 100755 --- /dev/null +++ b/direct/tests/run_fw_update_test_nand.sh @@ -0,0 +1,15 @@ +#!/bin/bash + + +for ((i=0; i < 100000; i++)) +do + + seed=$RANDOM + j=$(( $i % 10 )) + rm seed*$j + echo $seed>seed-for-run-$i + rm emfile-2k-0-*$j + cp emfile-2k-0 emfile-2k-0-$i + echo "######### Run $i with seed $seed" + ./yaffs_test -u -p -s$seed yaffs2 +done
new file mode 100755 --- /dev/null +++ b/direct/tests/run_fw_update_test_nor.sh @@ -0,0 +1,15 @@ +#!/bin/bash + + +for ((i=0; i < 100000; i++)) +do + + seed=$RANDOM + j=$(( $i % 10 )) + rm seed*$j + echo $seed>seed-for-run-$i + rm data*$j + cp emfile-nor data-for-run-$i + echo "######### Run $i with seed $seed" + ./yaffs_test -f -u -p -s$seed M18-1 +done
