projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update not stress test
[yaffs2.git]
/
direct
/
tests
/
run_fw_update_test_nand.sh
diff --git
a/direct/tests/run_fw_update_test_nand.sh
b/direct/tests/run_fw_update_test_nand.sh
index 61baf7fd7d1c1de0be9b882395880f9264f9a3e0..b8058bd5f585e3e2b7cb00f659a8f2177fe7afee 100755
(executable)
--- a/
direct/tests/run_fw_update_test_nand.sh
+++ b/
direct/tests/run_fw_update_test_nand.sh
@@
-1,15
+1,31
@@
#!/bin/bash
#!/bin/bash
+iterations=100000
-for ((i=0; i < 100000; i++))
+[ -z $1 ] || iterations=$1
+
+
+rm iteration-max-*
+touch iteration-max-$iterations
+
+echo " Running $iterations iterations"
+sleep 2
+
+for ((i=0; i < $iterations; i++))
do
seed=$RANDOM
j=$(( $i % 10 ))
do
seed=$RANDOM
j=$(( $i % 10 ))
- rm seed*$j
- echo $seed>seed-for-run-$i
+ rm seed
-nand-
*$j
+ echo $seed>seed-
nand-
for-run-$i
rm emfile-2k-0-*$j
cp emfile-2k-0 emfile-2k-0-$i
rm emfile-2k-0-*$j
cp emfile-2k-0 emfile-2k-0-$i
- echo "######### Run $i with seed $seed"
- ./yaffs_test -u -f -p -s$seed yaffs2
+ echo "#########"
+ echo "#########"
+ echo "#########"
+ echo "######### Run $i of $iterations with seed $seed"
+ echo "#########"
+ echo "#########"
+ echo "#########"
+ ./yaffs_test -u -f -p -s$seed -t 0 yaffs2
done
done