summaryrefslogtreecommitdiff
path: root/firmware/test/fat/test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/test/fat/test.sh')
-rw-r--r--firmware/test/fat/test.sh23
1 files changed, 22 insertions, 1 deletions
diff --git a/firmware/test/fat/test.sh b/firmware/test/fat/test.sh
index 44ff6bb849..9b1036b69c 100644
--- a/firmware/test/fat/test.sh
+++ b/firmware/test/fat/test.sh
@@ -38,9 +38,20 @@ buildimage() {
38runtests() { 38runtests() {
39 rm $RESULT 39 rm $RESULT
40 40
41 echo ---Test: create a long name directory in the root
42 try mkdir "/very long subdir name"
43 check
44 try mkdir "/very long subdir name/apa.monkey.me.now"
45 check
46
47 echo ---Test: create a directory called "dir"
48 try mkdir "/dir"
49 check
50
41 echo ---Test: create a 10K file 51 echo ---Test: create a 10K file
42 try mkfile "/really long filenames rock" 10 52 try mkfile "/really long filenames rock" 10
43 check 53 check
54
44 try mkfile /dir/apa.monkey.me.now 10 55 try mkfile /dir/apa.monkey.me.now 10
45 check 56 check
46 try chkfile "/really long filenames rock" 10 57 try chkfile "/really long filenames rock" 10
@@ -100,24 +111,34 @@ runtests() {
100 111
101} 112}
102 113
114echo "--------------------------------------"
103echo "Building test image (4 sector/cluster)" 115echo "Building test image (4 sector/cluster)"
116echo "--------------------------------------"
104buildimage 4 117buildimage 4
105runtests 118runtests
106 119
120echo "---------------------------------------"
107echo "Building test image (32 sectors/cluster)" 121echo "Building test image (32 sectors/cluster)"
122echo "---------------------------------------"
108buildimage 32 123buildimage 32
109runtests 124runtests
110 125
126echo "--------------------------------------"
111echo "Building test image (1 sector/cluster)" 127echo "Building test image (1 sector/cluster)"
128echo "--------------------------------------"
112buildimage 1 129buildimage 1
113runtests 130runtests
114 131
132echo "--------------------------------------"
115echo "Building test image (8 sectors/cluster)" 133echo "Building test image (8 sectors/cluster)"
134echo "--------------------------------------"
116buildimage 8 135buildimage 8
117runtests 136runtests
118 137
138echo "----------------------------------------"
119echo "Building test image (128 sectors/cluster)" 139echo "Building test image (128 sectors/cluster)"
140echo "----------------------------------------"
120buildimage 128 141buildimage 128
121runtests 142runtests
122 143
123echo "== Test completed sucessfully ==" 144echo "== Test completed successfully =="