Mercurial > yaffs-ecoscentric-gpl
changeset 316:528ef26f7822
Add some handly Linux test stuff
| author | charles <charles> |
|---|---|
| date | Wed, 11 Nov 2009 01:35:04 +0000 |
| parents | f4ae7e9b8118 |
| children | f40179482d41 |
| files | linux-tests/initnandsim linux-tests/mkdirtree |
| diffstat | 2 files changed, 29 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
new file mode 100755 --- /dev/null +++ b/linux-tests/initnandsim @@ -0,0 +1,6 @@ +#!/bin/sh +modprobe mtd +modprobe mtdblock +modprobe nandsim first_id_byte=0x20 second_id_byte=0xa2 third_id_byte=00 fourth_id_byte=0x15 +cat /proc/mtd +
new file mode 100755 --- /dev/null +++ b/linux-tests/mkdirtree @@ -0,0 +1,23 @@ +#!/bin/sh + +TREE_BASE=/mnt/dirtree + +for (( d=0; d<50; d++ )) +do + mkdir -p $TREE_BASE/dir$d + + for (( f=0; f<50; f++ )) + do + ls > $TREE_BASE/dir$d/file$f + done +done + + +echo "Foo bar file" > $TREE_BASE/foo_file + +ln $TREE_BASE/foo_file $TREE_BASE/../foo_link + + + + +
