diff options
Diffstat (limited to 'firmware/test/fat/test.sh')
-rw-r--r-- | firmware/test/fat/test.sh | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/firmware/test/fat/test.sh b/firmware/test/fat/test.sh index 2f58b3cb81..f723f69ec3 100644 --- a/firmware/test/fat/test.sh +++ b/firmware/test/fat/test.sh | |||
@@ -34,22 +34,27 @@ runtests() { | |||
34 | echo ---Test: create a 10K file | 34 | echo ---Test: create a 10K file |
35 | try mkfile /apa.txt 10 | 35 | try mkfile /apa.txt 10 |
36 | check | 36 | check |
37 | try chkfile /apa.txt | 37 | try chkfile /apa.txt 10 |
38 | 38 | ||
39 | echo ---Test: create a 1K file | 39 | echo ---Test: create a 1K file |
40 | try mkfile /bpa.txt 1 | 40 | try mkfile /bpa.txt 1 |
41 | check | 41 | check |
42 | try chkfile /bpa.txt | 42 | try chkfile /bpa.txt 1 |
43 | 43 | ||
44 | echo ---Test: create a 40K file | 44 | echo ---Test: create a 40K file |
45 | try mkfile /cpa.txt 40 | 45 | try mkfile /cpa.txt 40 |
46 | check | 46 | check |
47 | try chkfile /cpa.txt | 47 | try chkfile /cpa.txt 40 |
48 | |||
49 | echo ---Test: create a 400K file | ||
50 | try mkfile /dpa.txt 400 | ||
51 | check | ||
52 | try chkfile /dpa.txt 400 | ||
48 | 53 | ||
49 | echo ---Test: truncate previous 40K file to 20K | 54 | echo ---Test: truncate previous 40K file to 20K |
50 | try mkfile /cpa.txt 20 | 55 | try mkfile /cpa.txt 20 |
51 | check | 56 | check |
52 | try chkfile /cpa.txt | 57 | try chkfile /cpa.txt 20 |
53 | 58 | ||
54 | echo ---Test: truncate previous 20K file to 0K | 59 | echo ---Test: truncate previous 20K file to 0K |
55 | try mkfile /cpa.txt 0 | 60 | try mkfile /cpa.txt 0 |
@@ -59,14 +64,15 @@ runtests() { | |||
59 | try chkfile /bpa.txt | 64 | try chkfile /bpa.txt |
60 | 65 | ||
61 | LOOP=50 | 66 | LOOP=50 |
67 | SIZE=50 | ||
62 | 68 | ||
63 | echo ---Test: create $LOOP 40k files | 69 | echo ---Test: create $LOOP $SIZE k files |
64 | for i in `seq 1 $LOOP`; | 70 | for i in `seq 1 $LOOP`; |
65 | do | 71 | do |
66 | echo ---Test: $i/$LOOP --- | 72 | echo ---Test: $i/$LOOP --- |
67 | try mkfile /rockbox.$i 40 | 73 | try mkfile /rockbox.$i $SIZE |
68 | check | 74 | check |
69 | try chkfile /rockbox.$i | 75 | try chkfile /rockbox.$i $SIZE |
70 | done | 76 | done |
71 | 77 | ||
72 | } | 78 | } |