From 021066ab1ea323a40804c87d82246e03e029eca9 Mon Sep 17 00:00:00 2001 From: charles Date: Fri, 16 Jan 2009 00:49:25 +0000 Subject: [PATCH] Replace test scrips with nand and nor versions --- direct/tests/init_fw_update_test_nand.sh | 3 +++ ..._update_test.sh => init_fw_update_test_nor.sh} | 0 direct/tests/run_fw_update_test_nand.sh | 15 +++++++++++++++ ...w_update_test.sh => run_fw_update_test_nor.sh} | 0 4 files changed, 18 insertions(+) create mode 100755 direct/tests/init_fw_update_test_nand.sh rename direct/tests/{init_fw_update_test.sh => init_fw_update_test_nor.sh} (100%) create mode 100755 direct/tests/run_fw_update_test_nand.sh rename direct/tests/{run_fw_update_test.sh => run_fw_update_test_nor.sh} (100%) 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 -- 2.30.2