projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update yaffs docs
[yaffs2.git]
/
direct
/
tests
/
run_fw_update_test_nor.sh
diff --git
a/direct/tests/run_fw_update_test_nor.sh
b/direct/tests/run_fw_update_test_nor.sh
index b9daa24443ef7c69b9c971ff9a2054fa6c7adf62..892f80bfb829c498acf9ce8227c0c89a75f9e98e 100755
(executable)
--- a/
direct/tests/run_fw_update_test_nor.sh
+++ b/
direct/tests/run_fw_update_test_nor.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 ))
rm seed-nor-*$j
echo $seed>seed-nor-for-run-$i
do
seed=$RANDOM
j=$(( $i % 10 ))
rm seed-nor-*$j
echo $seed>seed-nor-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
+ rm emfile-nor-*$j
+ cp emfile-nor emfile-nor-$i
+ echo "#########"
+ echo "#########"
+ echo "#########"
+ echo "######### Run $i of $iterations with seed $seed"
+ echo "#########"
+ echo "#########"
+ echo "#########"
+ ./yaffs_test -u -f -p -s$seed M18-1
done
done