projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clear all files at start of simulation
[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 e5ce2d7600045c67d71e904c25aae66910fc76d9..b8058bd5f585e3e2b7cb00f659a8f2177fe7afee 100755
(executable)
--- a/
direct/tests/run_fw_update_test_nand.sh
+++ b/
direct/tests/run_fw_update_test_nand.sh
@@
-1,7
+1,17
@@
#!/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
do
seed=$RANDOM
@@
-10,8
+20,12
@@
do
echo $seed>seed-nand-for-run-$i
rm emfile-2k-0-*$j
cp emfile-2k-0 emfile-2k-0-$i
echo $seed>seed-nand-for-run-$i
rm emfile-2k-0-*$j
cp emfile-2k-0 emfile-2k-0-$i
- echo
- echo
- 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