1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of the License "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // Check file system against SD specifications |
|
15 // |
|
16 // |
|
17 |
|
18 //! @file btsdwp.script |
|
19 //! @SYMTestSuiteName basetestsd |
|
20 //! @SYMScriptTestEnvironment base |
|
21 |
|
22 LOAD_SUITE basetestsd -SharedData |
|
23 |
|
24 PRINT IMPORTANT NOTE |
|
25 PRINT The following test cases are for SD cards only. |
|
26 PRINT Testing on any other media (removable or fixed) will fail. |
|
27 |
|
28 START_TESTCASE PBASE-SDTESTSPECFS1-0202 |
|
29 //! @SYMTestCaseID PBASE-SDTESTSPECFS1-0202 |
|
30 //! @SYMTestCaseDesc Inspect Master Boot Record (MBR) against the SD specifications |
|
31 //! @SYMREQ REQ0000 |
|
32 //! @SYMTestActions |
|
33 //! 1. Fill up the first sectors of the card with zeroes |
|
34 //! 2. Format card (Full Format) |
|
35 //! 3. Examine MBR |
|
36 //! 4. Format card (Quick Format) |
|
37 //! 5. Examine MBR |
|
38 //! 6. Perform some file operations on the card |
|
39 //! 7. Examine MBR |
|
40 //! @SYMTestExpectedResults |
|
41 //! All operations complete with no error |
|
42 //! The MBR rigorously complies with the SD specifications at all times |
|
43 //! @SYMTestPriority High |
|
44 //! @SYMTestStatus Implemented |
|
45 //! @SYMTestType CIT |
|
46 RUN_TEST_STEP 50 basetestsd DisplayInfo \basetest\btsd.ini |
|
47 RUN_TEST_STEP 50 basetestsd FillSectors \basetest\btsd.ini SDTESTSPEC |
|
48 RUN_TEST_STEP 500 basetestsd Format \basetest\btsd.ini FullFormat |
|
49 RUN_TEST_STEP 50 basetestsd FieldCheck \basetest\btsd.ini SDTESTSPEC_FS1 |
|
50 RUN_TEST_STEP 500 basetestsd Format \basetest\btsd.ini QuickFormat |
|
51 RUN_TEST_STEP 50 basetestsd FieldCheck \basetest\btsd.ini SDTESTSPEC_FS1 |
|
52 RUN_TEST_STEP 100 basetestsd FileOperations1 \basetest\btsd.ini SDTESTSPEC |
|
53 RUN_TEST_STEP 50 basetestsd FieldCheck \basetest\btsd.ini SDTESTSPEC_FS1 |
|
54 END_TESTCASE PBASE-SDTESTSPECFS1-0202 |
|
55 |
|
56 START_TESTCASE PBASE-SDTESTSPECFS2-0203 |
|
57 //! @SYMTestCaseID PBASE-SDTESTSPECFS2-0203 |
|
58 //! @SYMTestCaseDesc Inspect Partion Boot Sector (PBS) against the SD specifications |
|
59 //! @SYMREQ REQ0000 |
|
60 //! @SYMTestActions |
|
61 //! 1. Fill up the first sectors of the card with zeroes |
|
62 //! 2. Format card (Full Format) |
|
63 //! 3. Examine PBS |
|
64 //! 4. Perform some file operations on the card |
|
65 //! 5. Examine PBS |
|
66 //! 6. Format card (Quick Format) |
|
67 //! 7. Examine PBS |
|
68 //! 8. Perform some file operations on the card |
|
69 //! 9. Examine PBS |
|
70 //! @SYMTestExpectedResults |
|
71 //! All operations complete with no error |
|
72 //! The PBS rigorously complies with the SD specifications at all times |
|
73 //! @SYMTestPriority High |
|
74 //! @SYMTestStatus Implemented |
|
75 //! @SYMTestType CIT |
|
76 RUN_TEST_STEP 50 basetestsd FillSectors \basetest\btsd.ini SDTESTSPEC |
|
77 RUN_TEST_STEP 500 basetestsd Format \basetest\btsd.ini FullFormat |
|
78 RUN_TEST_STEP 50 basetestsd FieldCheck \basetest\btsd.ini SDTESTSPEC_FS2 |
|
79 RUN_TEST_STEP 100 basetestsd FileOperations1 \basetest\btsd.ini SDTESTSPEC |
|
80 RUN_TEST_STEP 50 basetestsd FieldCheck \basetest\btsd.ini SDTESTSPEC_FS2 |
|
81 RUN_TEST_STEP 500 basetestsd Format \basetest\btsd.ini QuickFormat |
|
82 RUN_TEST_STEP 50 basetestsd FieldCheck \basetest\btsd.ini SDTESTSPEC_FS2 |
|
83 RUN_TEST_STEP 100 basetestsd FileOperations1 \basetest\btsd.ini SDTESTSPEC |
|
84 RUN_TEST_STEP 50 basetestsd FieldCheck \basetest\btsd.ini SDTESTSPEC_FS2 |
|
85 END_TESTCASE PBASE-SDTESTSPECFS2-0203 |
|
86 |
|
87 START_TESTCASE PBASE-SDTESTSPECFS3-0204 |
|
88 //! @SYMTestCaseID PBASE-SDTESTSPECFS3-0204 |
|
89 //! @SYMTestCaseDesc Inspect File Allocation Table (FAT) after formatting (FAT12/16 only) |
|
90 //! @SYMREQ REQ0000 |
|
91 //! @SYMTestActions |
|
92 //! 1. Fill up the first sectors of the card with zeroes |
|
93 //! 2. Format card (Full Format) |
|
94 //! 3. Examine FAT |
|
95 //! 4. Perform some file operations on the card |
|
96 //! 6. Format card (Quick Format) |
|
97 //! 7. Examine FAT |
|
98 //! @SYMTestExpectedResults |
|
99 //! All operations complete with no error |
|
100 //! The FAT sectors are always blank after formatting |
|
101 //! @SYMTestPriority High |
|
102 //! @SYMTestStatus Implemented |
|
103 //! @SYMTestType CIT |
|
104 RUN_TEST_STEP 50 basetestsd FillSectors \basetest\btsd.ini SDTESTSPEC |
|
105 RUN_TEST_STEP 500 basetestsd Format \basetest\btsd.ini FullFormat |
|
106 RUN_TEST_STEP 50 basetestsd FieldCheck \basetest\btsd.ini SDTESTSPEC_FS3 |
|
107 RUN_TEST_STEP 100 basetestsd FileOperations1 \basetest\btsd.ini SDTESTSPEC |
|
108 RUN_TEST_STEP 500 basetestsd Format \basetest\btsd.ini QuickFormat |
|
109 RUN_TEST_STEP 50 basetestsd FieldCheck \basetest\btsd.ini SDTESTSPEC_FS3 |
|
110 END_TESTCASE PBASE-SDTESTSPECFS3-0204 |
|
111 |
|
112 START_TESTCASE PBASE-SDTESTSPECFS4-0205 |
|
113 //! @SYMTestCaseID PBASE-SDTESTSPECFS4-0205 |
|
114 //! @SYMTestCaseDesc Inspect Root Directory after formatting (FAT12/16 only) |
|
115 //! @SYMREQ REQ0000 |
|
116 //! @SYMTestActions |
|
117 //! 1. Fill up the first sectors of the card with zeroes |
|
118 //! 2. Format card (Full Format) |
|
119 //! 3. Examine Root Directory |
|
120 //! 4. Perform some file operations on the card |
|
121 //! 6. Format card (Quick Format) |
|
122 //! 7. Examine Root Directory |
|
123 //! @SYMTestExpectedResults |
|
124 //! All operations complete with no error |
|
125 //! The Root Directory sectors are always blank after formatting |
|
126 //! @SYMTestPriority High |
|
127 //! @SYMTestStatus Implemented |
|
128 //! @SYMTestType CIT |
|
129 RUN_TEST_STEP 50 basetestsd FillSectors \basetest\btsd.ini SDTESTSPEC |
|
130 RUN_TEST_STEP 500 basetestsd Format \basetest\btsd.ini FullFormat |
|
131 RUN_TEST_STEP 50 basetestsd FieldCheck \basetest\btsd.ini SDTESTSPEC_FS4 |
|
132 RUN_TEST_STEP 100 basetestsd FileOperations1 \basetest\btsd.ini SDTESTSPEC |
|
133 RUN_TEST_STEP 500 basetestsd Format \basetest\btsd.ini QuickFormat |
|
134 RUN_TEST_STEP 50 basetestsd FieldCheck \basetest\btsd.ini SDTESTSPEC_FS4 |
|
135 END_TESTCASE PBASE-SDTESTSPECFS4-0205 |
|
136 |
|
137 START_TESTCASE PBASE-SDTESTSPECFS5-0206 |
|
138 //! @SYMTestCaseID PBASE-SDTESTSPECFS5-0206 |
|
139 //! @SYMTestCaseDesc Inspect File System layout (FAT12/16) against the SD specifications |
|
140 //! @SYMREQ REQ0000 |
|
141 //! @SYMTestActions |
|
142 //! 1. Fill up the first sectors of the card with zeroes |
|
143 //! 2. Format card (Full Format) |
|
144 //! 3. Examine File System layout |
|
145 //! 4. Perform some file operations on the card |
|
146 //! 5. Examine File System layout |
|
147 //! 6. Format card (Quick Format) |
|
148 //! 7. Examine File System layout |
|
149 //! 8. Perform some file operations on the card |
|
150 //! 9. Examine File System layout |
|
151 //! @SYMTestExpectedResults |
|
152 //! All operations complete with no error |
|
153 //! The File System layout rigorously complies with the SD specifications at all times |
|
154 //! @SYMTestPriority High |
|
155 //! @SYMTestStatus Implemented |
|
156 //! @SYMTestType CIT |
|
157 RUN_TEST_STEP 50 basetestsd FillSectors \basetest\btsd.ini SDTESTSPEC |
|
158 RUN_TEST_STEP 500 basetestsd Format \basetest\btsd.ini FullFormat |
|
159 RUN_TEST_STEP 50 basetestsd FieldCheck \basetest\btsd.ini SDTESTSPEC_FS5 |
|
160 RUN_TEST_STEP 100 basetestsd FileOperations1 \basetest\btsd.ini SDTESTSPEC |
|
161 RUN_TEST_STEP 50 basetestsd FieldCheck \basetest\btsd.ini SDTESTSPEC_FS5 |
|
162 RUN_TEST_STEP 500 basetestsd Format \basetest\btsd.ini QuickFormat |
|
163 RUN_TEST_STEP 50 basetestsd FieldCheck \basetest\btsd.ini SDTESTSPEC_FS5 |
|
164 RUN_TEST_STEP 100 basetestsd FileOperations1 \basetest\btsd.ini SDTESTSPEC |
|
165 RUN_TEST_STEP 50 basetestsd FieldCheck \basetest\btsd.ini SDTESTSPEC_FS5 |
|
166 END_TESTCASE PBASE-SDTESTSPECFS5-0206 |
|
167 |
|
168 START_TESTCASE PBASE-SDTESTSPECFAT32FSINFO-0215 |
|
169 //! @SYMTestCaseID PBASE-SDTESTSPECFAT32FSINFO-0215 |
|
170 //! @SYMTestCaseDesc Inspect File System Info Sector (FAT32 only) against the SD specifications |
|
171 //! @SYMREQ REQ0000 |
|
172 //! @SYMTestActions |
|
173 //! 1. Fill up the first sectors of the card with zeroes |
|
174 //! 2. Format card (Full Format) |
|
175 //! 3. Examine File System Info Sector |
|
176 //! 4. Perform some file operations on the card |
|
177 //! 5. Examine File System Info Sector |
|
178 //! 6. Format card (Quick Format) |
|
179 //! 7. Examine File System Info Sector |
|
180 //! 8. Perform some file operations on the card |
|
181 //! 9. Examine File System Info Sector |
|
182 //! @SYMTestExpectedResults |
|
183 //! All operations complete with no error |
|
184 //! The File System Info Sector rigorously complies with the SD specifications at all times |
|
185 //! @SYMTestPriority High |
|
186 //! @SYMTestStatus Implemented |
|
187 //! @SYMTestType CIT |
|
188 RUN_TEST_STEP 50 basetestsd FillSectors \basetest\btsd.ini SDTESTSPEC |
|
189 RUN_TEST_STEP 500 basetestsd Format \basetest\btsd.ini FullFormat |
|
190 RUN_TEST_STEP 50 basetestsd FieldCheck \basetest\btsd.ini SDTESTSPEC_FAT32FSINFO |
|
191 RUN_TEST_STEP 100 basetestsd FileOperations1 \basetest\btsd.ini SDTESTSPEC |
|
192 RUN_TEST_STEP 50 basetestsd FieldCheck \basetest\btsd.ini SDTESTSPEC_FAT32FSINFO |
|
193 RUN_TEST_STEP 500 basetestsd Format \basetest\btsd.ini QuickFormat |
|
194 RUN_TEST_STEP 50 basetestsd FieldCheck \basetest\btsd.ini SDTESTSPEC_FAT32FSINFO |
|
195 RUN_TEST_STEP 100 basetestsd FileOperations1 \basetest\btsd.ini SDTESTSPEC |
|
196 RUN_TEST_STEP 50 basetestsd FieldCheck \basetest\btsd.ini SDTESTSPEC_FAT32FSINFO |
|
197 END_TESTCASE PBASE-SDTESTSPECFAT32FSINFO-0215 |
|
198 |
|
199 START_TESTCASE PBASE-SDTESTSPECFAT32FSBACKUPSECTORS-0216 |
|
200 //! @SYMTestCaseID PBASE-SDTESTSPECFAT32FSBACKUPSECTORS-0216 |
|
201 //! @SYMTestCaseDesc Compare Partion Boot Sectors (PBS) and Backup Boot Sectors (BBS) (FAT32 only) |
|
202 //! @SYMREQ REQ0000 |
|
203 //! @SYMTestActions |
|
204 //! 1. Fill up the first sectors of the card with zeroes |
|
205 //! 2. Format card (Full Format) |
|
206 //! 3. Compare PBS and BBS |
|
207 //! 4. Perform some file operations on the card |
|
208 //! 5. Examine PBS and BBS |
|
209 //! 6. Format card (Quick Format) |
|
210 //! 7. Examine PBS and BBS |
|
211 //! 8. Perform some file operations on the card |
|
212 //! 9. Examine PBS and BBS |
|
213 //! @SYMTestExpectedResults |
|
214 //! All operations complete with no error |
|
215 //! PBS and BBS are always identical |
|
216 //! @SYMTestPriority High |
|
217 //! @SYMTestStatus Implemented |
|
218 //! @SYMTestType CIT |
|
219 RUN_TEST_STEP 50 basetestsd FillSectors \basetest\btsd.ini SDTESTSPEC |
|
220 RUN_TEST_STEP 500 basetestsd Format \basetest\btsd.ini FullFormat |
|
221 RUN_TEST_STEP 50 basetestsd FieldCheck \basetest\btsd.ini SDTESTSPEC_FAT32FSBACKUPSECTORS |
|
222 RUN_TEST_STEP 100 basetestsd FileOperations1 \basetest\btsd.ini SDTESTSPEC |
|
223 RUN_TEST_STEP 50 basetestsd FieldCheck \basetest\btsd.ini SDTESTSPEC_FAT32FSBACKUPSECTORS |
|
224 RUN_TEST_STEP 500 basetestsd Format \basetest\btsd.ini QuickFormat |
|
225 RUN_TEST_STEP 50 basetestsd FieldCheck \basetest\btsd.ini SDTESTSPEC_FAT32FSBACKUPSECTORS |
|
226 RUN_TEST_STEP 100 basetestsd FileOperations1 \basetest\btsd.ini SDTESTSPEC |
|
227 RUN_TEST_STEP 50 basetestsd FieldCheck \basetest\btsd.ini SDTESTSPEC_FAT32FSBACKUPSECTORS |
|
228 END_TESTCASE PBASE-SDTESTSPECFAT32FSBACKUPSECTORS-0216 |
|