|
1 // |
|
2 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 // All rights reserved. |
|
4 // This component and the accompanying materials are made available |
|
5 // under the terms of the License "Eclipse Public License v1.0" |
|
6 // which accompanies this distribution, and is available |
|
7 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 // |
|
9 // Initial Contributors: |
|
10 // Nokia Corporation - initial contribution. |
|
11 // |
|
12 // Contributors: |
|
13 // |
|
14 // Description: |
|
15 // |
|
16 //! @file |
|
17 // SWIS unit (integration) tests |
|
18 PRINT Run all SWIS tests |
|
19 LOAD_SUITE tuiscriptadaptors |
|
20 |
|
21 //! @SYMTestCaseID API-SEC-DEF094747-0001 |
|
22 //! @SYMTestCaseDesc Verify that the installation of a SIS file TS_00001__TC_00007__PE_00002__.sis never panics. |
|
23 //! @SYMDEF DEF094747 |
|
24 //! @SYMTestPriority Medium |
|
25 //! @SYMTestActions Install a SIS file , which would otherwise throw User::11 panic due to "Unique Vendor Name" exceeding descriptor's max length during AppendFormatList operation. |
|
26 //! @SYMTestExpectedResults The SIS file installs successfully. |
|
27 //! @SYMDevelopedForRelease Argus |
|
28 |
|
29 START_TESTCASE API-SEC-DEF094747-0001 |
|
30 |
|
31 RUN_TEST_STEP 100 tuiscriptadaptors InstallStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini handle_BufferOverflow1 |
|
32 RUN_TEST_STEP 100 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini u_handle_BufferOverflow1 |
|
33 |
|
34 END_TESTCASE API-SEC-DEF094747-0001 |
|
35 |
|
36 |
|
37 //! @SYMTestCaseID API-SEC-DEF094747-0002 |
|
38 //! @SYMTestCaseDesc Verify that the installation of a SIS file TS_00001__TC_00019__PE_00002__.sis should panic. |
|
39 //! @SYMDEF DEF094747 |
|
40 //! @SYMTestPriority Medium |
|
41 //! @SYMTestActions Install a SIS file , which would throw User::11 panic due to "Package Name" exceeding descriptor's max length during AppendFormatList operation. |
|
42 //! @SYMTestExpectedResults The SIS file installs successfully. |
|
43 //! @SYMDevelopedForRelease Argus |
|
44 |
|
45 START_TESTCASE API-SEC-DEF094747-0002 |
|
46 |
|
47 RUN_TEST_STEP 100 tuiscriptadaptors InstallStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini handle_BufferOverflow2 |
|
48 RUN_TEST_STEP 100 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini u_handle_BufferOverflow2 |
|
49 |
|
50 END_TESTCASE API-SEC-DEF094747-0002 |
|
51 |
|
52 |
|
53 //! @SYMTestCaseID API-SEC-DEF094747-0003 |
|
54 //! @SYMTestCaseDesc Verify that the installation of a SIS file TS_00001__TC_00031__PE_00002__.sis never panics. |
|
55 //! @SYMDEF DEF094747 |
|
56 //! @SYMTestPriority Medium |
|
57 //! @SYMTestActions Install a SIS file , which would otherwise throw User::11 panic due to "Vendor Name" exceeding descriptor's max length during AppendFormatList operation. |
|
58 //! @SYMTestExpectedResults The SIS file installs successfully. |
|
59 //! @SYMDevelopedForRelease Argus |
|
60 |
|
61 START_TESTCASE API-SEC-DEF094747-0003 |
|
62 |
|
63 RUN_TEST_STEP 100 tuiscriptadaptors InstallStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini handle_BufferOverflow3 |
|
64 RUN_TEST_STEP 100 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini u_handle_BufferOverflow3 |
|
65 |
|
66 END_TESTCASE API-SEC-DEF094747-0003 |
|
67 |
|
68 //! @SYMTestCaseID API-SEC-DEF094747-0004 |
|
69 //! @SYMTestCaseDesc Verify that the installation of a SIS file TS_00001__TC_06668__PE_00002__.sis never panics. |
|
70 //! @SYMDEF DEF094747 |
|
71 //! @SYMTestPriority Medium |
|
72 //! @SYMTestActions Install a SIS file , which would otherwise throw User::11 panic due to "Unique Vendor Name" exceeding descriptor's max length during AppendFormatList operation. |
|
73 //! @SYMTestExpectedResults The SIS file installs successfully. |
|
74 //! @SYMDevelopedForRelease Argus |
|
75 |
|
76 START_TESTCASE API-SEC-DEF094747-0004 |
|
77 |
|
78 RUN_TEST_STEP 100 tuiscriptadaptors InstallStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini handle_BufferOverflow4 |
|
79 RUN_TEST_STEP 100 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini u_handle_BufferOverflow4 |
|
80 |
|
81 END_TESTCASE API-SEC-DEF094747-0004 |
|
82 |
|
83 |
|
84 //! @SYMTestCaseID API-SEC-DEF094747-0005 |
|
85 //! @SYMTestCaseDesc Verify that the installation of a SIS file TS_00001__TC_06816_PE_00002__.sis never panics. |
|
86 //! @SYMDEF DEF094747 |
|
87 //! @SYMTestPriority Medium |
|
88 //! @SYMTestActions Install a SIS file , which would otherwise throw User::11 panic due to "Unique Vendor Name" exceeding descriptor's max length during AppendFormatList operation. |
|
89 //! @SYMTestExpectedResults The SIS file installs successfully. |
|
90 //! @SYMDevelopedForRelease Argus |
|
91 |
|
92 START_TESTCASE API-SEC-DEF094747-0005 |
|
93 |
|
94 RUN_TEST_STEP 100 tuiscriptadaptors InstallStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini handle_BufferOverflow5 |
|
95 RUN_TEST_STEP 100 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini u_handle_BufferOverflow6 |
|
96 |
|
97 END_TESTCASE API-SEC-DEF094747-0005 |
|
98 |
|
99 |
|
100 //! @SYMTestCaseID API-SEC-DEF094747-0006 |
|
101 //! @SYMTestCaseDesc Verify that the installation of a SIS file TS_00001__TC_06646__PE_00002__.sis never panics. |
|
102 //! @SYMDEF DEF094747 |
|
103 //! @SYMTestPriority Medium |
|
104 //! @SYMTestActions Install a SIS file , which would otherwise throw User::11 panic due to "Unique Vendor Name" exceeding descriptor's max length during AppendFormatList operation. |
|
105 //! @SYMTestExpectedResults The SIS file installs successfully. |
|
106 //! @SYMDevelopedForRelease Argus |
|
107 |
|
108 START_TESTCASE API-SEC-DEF094747-0006 |
|
109 |
|
110 RUN_TEST_STEP 100 tuiscriptadaptors InstallStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini handle_BufferOverflow6 |
|
111 RUN_TEST_STEP 100 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini u_handle_BufferOverflow6 |
|
112 |
|
113 END_TESTCASE API-SEC-DEF094747-0006 |
|
114 |
|
115 |
|
116 //! @SYMTestCaseID API-SEC-DEF094747-0007 |
|
117 //! @SYMTestCaseDesc Verify that the installation of a SIS file TS_00001__TC_05463__PE_00002__.sis never panics. |
|
118 //! @SYMDEF DEF094747 |
|
119 //! @SYMTestPriority Medium |
|
120 //! @SYMTestActions Install a SIS file , which would otherwise throw User::11 panic due to descriptor overflow. |
|
121 //! @SYMTestExpectedResults The installation must fail with appropriate error code instead of panicing. |
|
122 //! @SYMDevelopedForRelease Argus |
|
123 |
|
124 START_TESTCASE API-SEC-DEF094747-0007 |
|
125 |
|
126 RUN_TEST_STEP_RESULT -10141 100 tuiscriptadaptors InstallStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini handle_BufferOverflow7 |
|
127 RUN_TEST_STEP_RESULT -1 100 tuiscriptadaptors UninstallStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini u_handle_BufferOverflow7 |
|
128 |
|
129 END_TESTCASE API-SEC-DEF094747-0007 |
|
130 |
|
131 |
|
132 //! @SYMTestCaseID API-SEC-DEF094747-0008 |
|
133 //! @SYMTestCaseDesc Verify that the installation of a SIS file TS_00001__TC_02291__PE_00002__.sis never panics. |
|
134 //! @SYMDEF DEF094747 |
|
135 //! @SYMTestPriority Medium |
|
136 //! @SYMTestActions Install a SIS file , which would otherwise throw User::11 panic due to descriptor overflow. |
|
137 //! @SYMTestExpectedResults The installation must fail with appropriate error code instead of panicing. |
|
138 //! @SYMDevelopedForRelease Argus |
|
139 |
|
140 START_TESTCASE API-SEC-DEF094747-0008 |
|
141 |
|
142 RUN_TEST_STEP_RESULT -25 100 tuiscriptadaptors InstallStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini handle_BufferOverflow8 |
|
143 |
|
144 END_TESTCASE API-SEC-DEF094747-0008 |
|
145 |
|
146 |
|
147 //! @SYMTestCaseID API-SEC-DEF094747-0009 |
|
148 //! @SYMTestCaseDesc Verify that the installation of a SIS file TS_00001__TC_02318__PE_00002__.sis never panics. |
|
149 //! @SYMDEF DEF094747 |
|
150 //! @SYMTestPriority Medium |
|
151 //! @SYMTestActions Install a SIS file , which would otherwise throw User::11 panic due to descriptor overflow. |
|
152 //! @SYMTestExpectedResults The installation must fail with appropriate error code instead of panicing. |
|
153 //! @SYMDevelopedForRelease Argus |
|
154 |
|
155 START_TESTCASE API-SEC-DEF094747-0009 |
|
156 |
|
157 RUN_TEST_STEP_RESULT -25 100 tuiscriptadaptors InstallStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini handle_BufferOverflow9 |
|
158 |
|
159 END_TESTCASE API-SEC-DEF094747-0009 |
|
160 |
|
161 |
|
162 //! @SYMTestCaseID API-SEC-DEF094747-0010 |
|
163 //! @SYMTestCaseDesc Verify that the installation of a SIS file TS_00001__TC_02348__PE_00002__.sis never panics. |
|
164 //! @SYMDEF DEF094747 |
|
165 //! @SYMTestPriority Medium |
|
166 //! @SYMTestActions Install a SIS file , which would otherwise throw User::11 panic due to descriptor overflow. |
|
167 //! @SYMTestExpectedResults The installation must fail with appropriate error code instead of panicing. |
|
168 //! @SYMDevelopedForRelease Argus |
|
169 |
|
170 START_TESTCASE API-SEC-DEF094747-0010 |
|
171 |
|
172 RUN_TEST_STEP_RESULT -25 100 tuiscriptadaptors InstallStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini handle_BufferOverflow10 |
|
173 |
|
174 END_TESTCASE API-SEC-DEF094747-0010 |
|
175 |
|
176 |
|
177 //! @SYMTestCaseID API-SEC-DEF094747-0011 |
|
178 //! @SYMTestCaseDesc Verify that the installation of a SIS file TS_00001__TC_02789__PE_00002__.sis never panics. |
|
179 //! @SYMDEF DEF094747 |
|
180 //! @SYMTestPriority Medium |
|
181 //! @SYMTestActions Install a SIS file , which would otherwise throw User::11 panic due to descriptor overflow. |
|
182 //! @SYMTestExpectedResults The installation must fail with appropriate error code instead of panicing. |
|
183 //! @SYMDevelopedForRelease Argus |
|
184 |
|
185 START_TESTCASE API-SEC-DEF094747-0011 |
|
186 |
|
187 RUN_TEST_STEP_RESULT -25 100 tuiscriptadaptors InstallStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini handle_BufferOverflow11 |
|
188 |
|
189 END_TESTCASE API-SEC-DEF094747-0011 |
|
190 |
|
191 |
|
192 //! @SYMTestCaseID API-SEC-DEF094747-0012 |
|
193 //! @SYMTestCaseDesc Verify that the installation of a SIS file TS_00001__TC_02847__PE_00002__.sis never panics. |
|
194 //! @SYMDEF DEF094747 |
|
195 //! @SYMTestPriority Medium |
|
196 //! @SYMTestActions Install a SIS file , which would otherwise throw User::11 panic due to descriptor overflow. |
|
197 //! @SYMTestExpectedResults The installation must fail with appropriate error code instead of panicing. |
|
198 //! @SYMDevelopedForRelease Argus |
|
199 |
|
200 START_TESTCASE API-SEC-DEF094747-0012 |
|
201 |
|
202 RUN_TEST_STEP_RESULT -25 100 tuiscriptadaptors InstallStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini handle_BufferOverflow12 |
|
203 |
|
204 END_TESTCASE API-SEC-DEF094747-0012 |
|
205 |
|
206 |
|
207 //! @SYMTestCaseID API-SEC-DEF094747-0013 |
|
208 //! @SYMTestCaseDesc Verify that the installation of a SIS file TS_00001__TC_03286__PE_00002__.sis never panics. |
|
209 //! @SYMDEF DEF094747 |
|
210 //! @SYMTestPriority Medium |
|
211 //! @SYMTestActions Install a SIS file , which would otherwise throw User::11 panic due to descriptor overflow. |
|
212 //! @SYMTestExpectedResults The installation must fail with appropriate error code instead of panicing. |
|
213 //! @SYMDevelopedForRelease Argus |
|
214 |
|
215 START_TESTCASE API-SEC-DEF094747-0013 |
|
216 |
|
217 RUN_TEST_STEP_RESULT -25 100 tuiscriptadaptors InstallStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini handle_BufferOverflow13 |
|
218 |
|
219 END_TESTCASE API-SEC-DEF094747-0013 |
|
220 |
|
221 |
|
222 //! @SYMTestCaseID API-SEC-DEF094747-0014 |
|
223 //! @SYMTestCaseDesc Verify that the installation of a SIS file TS_00001__TC_03342__PE_00002__.sis never panics. |
|
224 //! @SYMDEF DEF094747 |
|
225 //! @SYMTestPriority Medium |
|
226 //! @SYMTestActions Install a SIS file , which would otherwise throw User::11 panic due to descriptor overflow. |
|
227 //! @SYMTestExpectedResults The installation must fail with appropriate error code instead of panicing. |
|
228 //! @SYMDevelopedForRelease Argus |
|
229 |
|
230 START_TESTCASE API-SEC-DEF094747-0014 |
|
231 |
|
232 RUN_TEST_STEP_RESULT -25 100 tuiscriptadaptors InstallStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini handle_BufferOverflow14 |
|
233 |
|
234 END_TESTCASE API-SEC-DEF094747-0014 |
|
235 |
|
236 |
|
237 //! @SYMTestCaseID API-SEC-DEF094747-0015 |
|
238 //! @SYMTestCaseDesc Verify that the installation of a SIS file TS_00001__TC_04281__PE_00002__.sis never panics. |
|
239 //! @SYMDEF DEF094747 |
|
240 //! @SYMTestPriority Medium |
|
241 //! @SYMTestActions Install a SIS file , which would otherwise throw User::11 panic due to descriptor overflow. |
|
242 //! @SYMTestExpectedResults The installation must fail with appropriate error code instead of panicing. |
|
243 //! @SYMDevelopedForRelease Argus |
|
244 |
|
245 START_TESTCASE API-SEC-DEF094747-0015 |
|
246 |
|
247 RUN_TEST_STEP_RESULT -25 100 tuiscriptadaptors InstallStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini handle_BufferOverflow15 |
|
248 |
|
249 END_TESTCASE API-SEC-DEF094747-0015 |
|
250 |
|
251 |
|
252 //! @SYMTestCaseID API-SEC-DEF094747-0016 |
|
253 //! @SYMTestCaseDesc Verify that the installation of a SIS file TS_00001__TC_04334__PE_00002__.sis never panics. |
|
254 //! @SYMDEF DEF094747 |
|
255 //! @SYMTestPriority Medium |
|
256 //! @SYMTestActions Install a SIS file , which would otherwise throw User::11 panic due to descriptor overflow. |
|
257 //! @SYMTestExpectedResults The installation must fail with appropriate error code instead of panicing. |
|
258 //! @SYMDevelopedForRelease Argus |
|
259 |
|
260 START_TESTCASE API-SEC-DEF094747-0016 |
|
261 |
|
262 RUN_TEST_STEP_RESULT -25 100 tuiscriptadaptors InstallStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini handle_BufferOverflow16 |
|
263 |
|
264 END_TESTCASE API-SEC-DEF094747-0016 |
|
265 |
|
266 |
|
267 //! @SYMTestCaseID API-SEC-DEF094747-0017 |
|
268 //! @SYMTestCaseDesc Verify that the installation of a SIS file TS_00001__TC_10230__PE_00002__.sis never panics. |
|
269 //! @SYMDEF DEF094747 |
|
270 //! @SYMTestPriority Medium |
|
271 //! @SYMTestActions Install a SIS file , which would otherwise throw User::11 panic due to descriptor overflow. |
|
272 //! @SYMTestExpectedResults The installation must fail with appropriate error code instead of panicing. |
|
273 //! @SYMDevelopedForRelease Argus |
|
274 |
|
275 START_TESTCASE API-SEC-DEF094747-0017 |
|
276 |
|
277 RUN_TEST_STEP_RESULT -25 100 tuiscriptadaptors InstallStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini handle_BufferOverflow17 |
|
278 |
|
279 END_TESTCASE API-SEC-DEF094747-0017 |
|
280 |
|
281 |
|
282 //! @SYMTestCaseID API-SEC-DEF094747-0018 |
|
283 //! @SYMTestCaseDesc Verify that the installation of a SIS file TS_00001__TC_10288__PE_00002__.sis never panics. |
|
284 //! @SYMDEF DEF094747 |
|
285 //! @SYMTestPriority Medium |
|
286 //! @SYMTestActions Install a SIS file , which would otherwise throw User::11 panic due to descriptor overflow. |
|
287 //! @SYMTestExpectedResults The installation must fail with appropriate error code instead of panicing. |
|
288 //! @SYMDevelopedForRelease Argus |
|
289 |
|
290 START_TESTCASE API-SEC-DEF094747-0018 |
|
291 |
|
292 RUN_TEST_STEP_RESULT -25 100 tuiscriptadaptors InstallStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini handle_BufferOverflow18 |
|
293 |
|
294 END_TESTCASE API-SEC-DEF094747-0018 |
|
295 |
|
296 |
|
297 //! @SYMTestCaseID API-SEC-DEF094747-0019 |
|
298 //! @SYMTestCaseDesc Verify that the installation of a SIS file TS_00001__TC_10727__PE_00002__.sis never panics. |
|
299 //! @SYMDEF DEF094747 |
|
300 //! @SYMTestPriority Medium |
|
301 //! @SYMTestActions Install a SIS file , which would otherwise throw User::11 panic due to descriptor overflow. |
|
302 //! @SYMTestExpectedResults The installation must fail with appropriate error code instead of panicing. |
|
303 //! @SYMDevelopedForRelease Argus |
|
304 |
|
305 START_TESTCASE API-SEC-DEF094747-0019 |
|
306 |
|
307 RUN_TEST_STEP_RESULT -25 100 tuiscriptadaptors InstallStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini handle_BufferOverflow19 |
|
308 |
|
309 END_TESTCASE API-SEC-DEF094747-0019 |
|
310 |
|
311 |
|
312 //! @SYMTestCaseID API-SEC-DEF094747-0020 |
|
313 //! @SYMTestCaseDesc Verify that the installation of a SIS file TS_00001__TC_10785__PE_00002__.sis never panics. |
|
314 //! @SYMDEF DEF094747 |
|
315 //! @SYMTestPriority Medium |
|
316 //! @SYMTestActions Install a SIS file , which would otherwise throw User::11 panic due to descriptor overflow. |
|
317 //! @SYMTestExpectedResults The installation must fail with appropriate error code instead of panicing. |
|
318 //! @SYMDevelopedForRelease Argus |
|
319 |
|
320 START_TESTCASE API-SEC-DEF094747-0020 |
|
321 |
|
322 RUN_TEST_STEP_RESULT -25 100 tuiscriptadaptors InstallStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini handle_BufferOverflow20 |
|
323 |
|
324 END_TESTCASE API-SEC-DEF094747-0020 |
|
325 |
|
326 |
|
327 //! @SYMTestCaseID API-SEC-DEF112652-0001 |
|
328 //! @SYMTestCaseDesc Verify that the installation of a SIS file panic47.sis never panics. |
|
329 //! @SYMDEF DEF112652 |
|
330 //! @SYMTestPriority High |
|
331 //! @SYMTestActions Install a SIS file , which would otherwise throw !SISHELPER::47 panic |
|
332 //! @SYMTestExpectedResults The installation must fail with appropriate error code instead of panicing. |
|
333 //! @SYMDevelopedForRelease Argus |
|
334 |
|
335 START_TESTCASE API-SEC-DEF112652-0001 |
|
336 |
|
337 RUN_TEST_STEP_RESULT -10102 100 tuiscriptadaptors InstallStep z:\tswi\tuiscriptadaptors\scripts\tuiscriptadaptors.ini invalid_compressionlength |
|
338 |
|
339 END_TESTCASE API-SEC-DEF112652-0001 |
|
340 |
|
341 |
|
342 // Ensure that SWIS shuts down after the above tests to make sure heap checks run |
|
343 RUN_TEST_STEP 5 tuiscriptadaptors SwisNotRunning |