From: charles Date: Fri, 16 Jan 2009 00:49:25 +0000 (+0000) Subject: Replace test scrips with nand and nor versions X-Git-Tag: pre-name-change~241 X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=commitdiff_plain;h=021066ab1ea323a40804c87d82246e03e029eca9;hp=c4be92d4a7d255f147c5130c12207464a993f8eb Replace test scrips with nand and nor versions --- diff --git a/direct/tests/init_fw_update_test_nand.sh b/direct/tests/init_fw_update_test_nand.sh new file mode 100755 index 0000000..6b2e682 --- /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 diff --git a/direct/tests/init_fw_update_test.sh b/direct/tests/init_fw_update_test_nor.sh similarity index 100% rename from direct/tests/init_fw_update_test.sh rename to direct/tests/init_fw_update_test_nor.sh diff --git a/direct/tests/run_fw_update_test_nand.sh b/direct/tests/run_fw_update_test_nand.sh new file mode 100755 index 0000000..3d6ead8 --- /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 diff --git a/direct/tests/run_fw_update_test.sh b/direct/tests/run_fw_update_test_nor.sh similarity index 100% rename from direct/tests/run_fw_update_test.sh rename to direct/tests/run_fw_update_test_nor.sh