|
1 // Copyright (c) 2008-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 "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 // @File DT-coredump-monitor.script |
|
15 // |
|
16 |
|
17 //! @SYMTestSuiteName DT-coredump-monitor |
|
18 //! @SYMScriptTestEnvironment TEF |
|
19 |
|
20 LOAD_SUITE tcds_kernel |
|
21 |
|
22 //! @SYMTestCaseID DT-coredump-monitor-002 |
|
23 //! @SYMTestCaseDesc The Crash Logger Config Values displayed in CDS should correspond to the default build time values |
|
24 //! @SYMTestPriority Critical |
|
25 //! @SYMTestActions Ensure build time configuration parameters are correct. |
|
26 //! @SYMTestExpectedResults Pass |
|
27 //! @SYMTestType CT |
|
28 //! @SYMTESTSTATUS 2. Functional |
|
29 //! @SYMPREQ PREQ1700 |
|
30 START_TESTCASE DT-coredump-monitor-002 |
|
31 START_TEST_BLOCK 100 tcds_kernel \data\tcds_kernel.ini |
|
32 CREATE_OBJECT CCoreDumpMonitor monitor |
|
33 COMMAND monitor ReadDefaultConfigValues |
|
34 END_TEST_BLOCK |
|
35 END_TESTCASE DT-coredump-monitor-002 |
|
36 |
|
37 START_TESTCASE DT-coredump-monitor-004 |
|
38 //! @SYMTestCaseID DT-coredump-monitor-004 |
|
39 //! @SYMTestCaseDesc Trusted clients should be able to view crash logger configuration parameters. |
|
40 //! @SYMTestPriority Critical |
|
41 //! @SYMTestActions Using CDS API, a trusted agent should try to read the crash logger properties. This should suceed. |
|
42 //! @SYMTestExpectedResults Parameters should be read sucessfully. |
|
43 //! @SYMTestType CT |
|
44 //! @SYMCreationDate 22/8/2007 |
|
45 //! @SYMAuthor stephenroberts |
|
46 //! @SYMTestStatus 2. Functional |
|
47 //! @SYMPREQ PREQ1700 |
|
48 //! @SYMREQ XXXX |
|
49 START_TEST_BLOCK 100 tcds_kernel \data\tcds_kernel.ini |
|
50 CREATE_OBJECT CCoreDumpMonitor monitor |
|
51 COMMAND monitor TrustedAccessToSCMConfig |
|
52 END_TEST_BLOCK |
|
53 END_TESTCASE DT-coredump-monitor-004 |
|
54 |
|
55 |
|
56 START_TESTCASE DT-coredump-monitor-005 |
|
57 //! @SYMTestCaseID DT-coredump-monitor-005 |
|
58 //! @SYMTestCaseDesc Untrusted clients should not be able to view crash logger configuration parameters. |
|
59 //! @SYMTestPriority Critical |
|
60 //! @SYMTestActions Using CDS API, a trusted agent should try to read the crash logger properties. This should fail with permission denied. |
|
61 //! @SYMTestExpectedResults Parameters should be read sucessfully. |
|
62 //! @SYMTestType CT |
|
63 //! @SYMCreationDate 22/8/2007 |
|
64 //! @SYMAuthor stephenroberts |
|
65 //! @SYMTestStatus 2. Functional |
|
66 //! @SYMPREQ PREQ1700 |
|
67 //! @SYMREQ XXXX |
|
68 START_TEST_BLOCK 100 tcds_kernel \data\tcds_kernel.ini |
|
69 CREATE_OBJECT CCoreDumpMonitor monitor |
|
70 COMMAND monitor UntrustedAccessToSCMConfig |
|
71 END_TEST_BLOCK |
|
72 END_TESTCASE DT-coredump-monitor-005 |
|
73 |
|
74 |
|
75 START_TESTCASE DT-coredump-monitor-007 |
|
76 //! @SYMTestCaseID DT-coredump-monitor-007 |
|
77 //! @SYMTestCaseDesc When crash log is full first crash should be |
|
78 //! written at start of flash |
|
79 //! @SYMTestPriority Critical |
|
80 //! @SYMTestActions Crash the board sufficient times so that flash is full |
|
81 //! then check that the first crash in flash is newest |
|
82 //! @SYMTestExpectedResults First crash should be newest |
|
83 //! @SYMTestType SYM-TEF |
|
84 //! @SYMTESTSTATUS 2. Functional |
|
85 //! @SYMPREQ PREQ1700 |
|
86 //! @SYMREQ 7209 |
|
87 START_TEST_BLOCK 100 tcds_kernel \data\tcds_kernel.ini |
|
88 CREATE_OBJECT CCoreDumpMonitor monitor |
|
89 COMMAND monitor ValidateNewestCrash |
|
90 END_TEST_BLOCK |
|
91 END_TESTCASE DT-coredump-monitor-007 |
|
92 |
|
93 |
|
94 START_TESTCASE DT-coredump-monitor-009 |
|
95 //! @SYMTestCaseID DT-coredump-monitor-009 |
|
96 //! @SYMTestCaseDesc Crash logger should be able to gather trace buffer data and include it with the rest of of the system crash data. |
|
97 //! @SYMTestPriority Critical |
|
98 //! @SYMTestActions Configure the CDS to collect a crash log for our test crash application's crash event. Load the UTrace formatter and arbitrary writer. Generate a system crash by crashing kernel side code using our test crash application. The crash application should make trace calls so as to generate trace data. Restart the board, process the crash and verify the expected trace data is there |
|
99 //! @SYMTestExpectedResults Expected trace data should be present in the crash log. |
|
100 //! @SYMTestType CT |
|
101 //! @SYMCreationDate 13/8/2007 |
|
102 //! @SYMAuthor stephenroberts |
|
103 //! @SYMTestStatus 2. Functional |
|
104 //! @SYMPREQ PREQ1700 |
|
105 //! @SYMREQ XXXX |
|
106 START_TEST_BLOCK 100 tcds_kernel \data\tcds_kernel.ini |
|
107 CREATE_OBJECT CCoreDumpMonitor monitor |
|
108 COMMAND monitor GatherTraceBuffer |
|
109 END_TEST_BLOCK |
|
110 END_TESTCASE DT-coredump-monitor-009 |
|
111 |
|
112 |
|
113 START_TESTCASE DT-coredump-monitor-010 |
|
114 //! @SYMTestCaseID DT-coredump-monitor-010 |
|
115 //! @SYMTestCaseDesc Ensure that the coredump monitor can dump multiple crashes |
|
116 //! @SYMTestPriority Critical |
|
117 //! @SYMTestActions Crash the board more than once |
|
118 //! @SYMTestExpectedResults The List crashes call should return multiple crashes |
|
119 //! @SYMTestType CT |
|
120 //! @SYMCreationDate 5/11/2008 |
|
121 //! @SYMAuthor stephenroberts |
|
122 //! @SYMTestStatus 2. Functional |
|
123 //! @SYMPREQ PREQ1700 |
|
124 //! @SYMREQ XXXX |
|
125 START_TEST_BLOCK 100 tcds_kernel \data\tcds_kernel.ini |
|
126 CREATE_OBJECT CProcessCrashWrapper monitor |
|
127 COMMAND monitor NewL |
|
128 COMMAND monitor CheckMultipleCrashes |
|
129 END_TEST_BLOCK |
|
130 END_TESTCASE DT-coredump-monitor-010 |
|
131 |
|
132 |
|
133 START_TESTCASE DT-coredump-monitor-011 |
|
134 //! @SYMTestCaseID DT-coredump-monitor-011 |
|
135 //! @SYMTestCaseDesc Test crash information in the ELF file namely |
|
136 //! 1) Crash Type |
|
137 //! 2) Thread Name |
|
138 //! 3) Process ID |
|
139 //! @SYMTestPriority Critical |
|
140 //! @SYMTestActions Crash the board with a specific crash type |
|
141 //! verify the ELF file to be a valid ELF file |
|
142 //! Check on that crash type |
|
143 //! validate the thread name with the application that had crshed |
|
144 //! @SYMTestExpectedResults Should fetch right results from the ELF File |
|
145 //! 1) Crash Type |
|
146 //! 2) Thread Name |
|
147 //! 3) Process ID |
|
148 //! @SYMTestType CT |
|
149 //! @SYMCreationDate 5/11/2008 |
|
150 //! @SYMAuthor sakhyaghosh |
|
151 //! @SYMTestStatus 2. Functional |
|
152 //! @SYMPREQ PREQ1700 |
|
153 //! @SYMREQ XXXX |
|
154 START_TEST_BLOCK 10000 tcds_kernel \data\tcds_kernel.ini |
|
155 CREATE_OBJECT CProcessCrashWrapper monitor |
|
156 COMMAND monitor NewL |
|
157 COMMAND monitor ReadCrashInfo |
|
158 COMMAND monitor LoadPlugins |
|
159 COMMAND monitor ConfigurePlugins |
|
160 COMMAND monitor ValidateSingleELFFile |
|
161 COMMAND monitor UnLoadPlugins |
|
162 END_TEST_BLOCK |
|
163 END_TESTCASE DT-coredump-monitor-011 |
|
164 |
|
165 |
|
166 START_TESTCASE DT-coredump-monitor-012 |
|
167 //! @SYMTestCaseID DT-coredump-monitor-012 |
|
168 //! @SYMTestCaseDesc Test crash information in Multiple ELF file namely |
|
169 //! 1) Crash Type |
|
170 //! 2) Thread Name Validation |
|
171 //! 3) Process ID |
|
172 //! @SYMTestPriority High |
|
173 //! @SYMTestActions crash the board a number of times |
|
174 //! check for the crashes to be present |
|
175 //! read the crash information and process the crash |
|
176 //! with SELF formatter and file writter loaded generate multiple SELF files |
|
177 //! validate all the SELF files for the correctness |
|
178 //! @SYMTestExpectedResults Should be able t generate multiple ELF Files for multiple crashes and then validate each of the ELF files for: |
|
179 //! 1) Crash Type |
|
180 //! 2) Thread Name |
|
181 //! 3) Process ID |
|
182 //! @SYMTestType CT |
|
183 //! @SYMCreationDate 14/11/2008 |
|
184 //! @SYMAuthor sakhyaghosh |
|
185 //! @SYMTestStatus 2. Functional |
|
186 //! @SYMPREQ PREQ1700 |
|
187 //! @SYMREQ XXXX |
|
188 START_TEST_BLOCK 1000 tcds_kernel \data\tcds_kernel.ini |
|
189 CREATE_OBJECT CProcessCrashWrapper processb |
|
190 COMMAND processb NewL |
|
191 COMMAND processb ReadCrashInfo |
|
192 COMMAND processb LoadPlugins |
|
193 COMMAND processb ConfigurePlugins |
|
194 COMMAND processb ValidateMultipleSELFFile |
|
195 COMMAND processb UnLoadPlugins |
|
196 END_TEST_BLOCK |
|
197 END_TESTCASE DT-coredump-monitor-012 |
|
198 |
|
199 START_TESTCASE DT-coredump-monitor-013 |
|
200 //! @SYMTestCaseID DT-coredump-monitor-013 |
|
201 //! @SYMTestCaseDesc Processing Corrupt Crash should return KErrCorrupt, part of the negative test case of CDS ProcessCrashLog |
|
202 //! @SYMTestPriority High |
|
203 //! @SYMTestActions - Crash Board |
|
204 //! - Restart Board Before Crash has finished |
|
205 //! - Should see crash entry, but processing should return Corrupt |
|
206 //! @SYMTestExpectedResults Processing the corrupt crash should return KErrCorrupt |
|
207 //! @SYMTestType CT |
|
208 //! @SYMCreationDate 26/11/2008 |
|
209 //! @SYMAuthor sakhyaghosh |
|
210 //! @SYMTestStatus 2. Functional |
|
211 //! @SYMPREQ PREQ1700 |
|
212 //! @SYMREQ XXXX |
|
213 START_TEST_BLOCK 1000 tcds_kernel \data\tcds_kernel.ini |
|
214 CREATE_OBJECT CProcessCrashWrapper processb |
|
215 COMMAND processb NewL |
|
216 COMMAND processb ValidateCorruptCrash |
|
217 END_TEST_BLOCK |
|
218 END_TESTCASE DT-coredump-monitor-013 |
|
219 START_TESTCASE DT-coredump-monitor-014 |
|
220 //! @SYMTestCaseID DT-coredump-monitor-014 |
|
221 //! @SYMTestCaseDesc Processing Asynchronously for the Crash Log from flash |
|
222 //! @SYMTestPriority High |
|
223 //! @SYMTestActions - Crash Board |
|
224 //! - Restart Board Before Crash has finished |
|
225 //! - Should see teh crash log and process the crash asynchronously |
|
226 //! @SYMTestExpectedResults Processing of the crash log from flash done asynchronously |
|
227 //! @SYMTestType CT |
|
228 //! @SYMCreationDate 5/1/2009 |
|
229 //! @SYMAuthor sakhyaghosh |
|
230 //! @SYMTestStatus 2. Functional |
|
231 //! @SYMPREQ PREQ1700 |
|
232 START_TEST_BLOCK 1000 tcds_kernel \data\tcds_kernel.ini |
|
233 CREATE_OBJECT CProcessCrashWrapper processb |
|
234 COMMAND processb NewL |
|
235 COMMAND processb ReadCrashInfo |
|
236 COMMAND processb LoadPlugins |
|
237 COMMAND processb ConfigurePlugins |
|
238 COMMAND processb ValidateAsyncProcessCrashLog |
|
239 COMMAND processb UnLoadPlugins |
|
240 END_TEST_BLOCK |
|
241 END_TESTCASE DT-coredump-monitor-014 |
|
242 |
|
243 |
|
244 START_TESTCASE DT-coredump-monitor-015 |
|
245 //! @SYMTestCaseID DT-coredump-monitor-015 |
|
246 //! @SYMTestCaseDesc Processing Asynchronously for the Crash Log from flash while processing of live crash is in progress |
|
247 //! @SYMTestPriority High |
|
248 //! @SYMTestActions - Crash Board |
|
249 //! - Restart Board Before Crash has finished |
|
250 //! - Should start a live crash |
|
251 //! - Process crash log from flash asynchronously while the live crash processing is in progress |
|
252 //! @SYMTestExpectedResults Processing of the crash log done asynchronously whilst a live crash is ongoing |
|
253 //! @SYMTestType CT |
|
254 //! @SYMCreationDate 5/1/2009 |
|
255 //! @SYMAuthor sakhyaghosh |
|
256 //! @SYMTestStatus 2. Functional |
|
257 //! @SYMPREQ PREQ1700 |
|
258 START_TEST_BLOCK 1000 tcds_kernel \data\tcds_kernel.ini |
|
259 CREATE_OBJECT CProcessCrashWrapper processb |
|
260 COMMAND processb NewL |
|
261 COMMAND processb ReadCrashInfo |
|
262 COMMAND processb LoadPlugins |
|
263 COMMAND processb ConfigurePlugins |
|
264 COMMAND processb ValidateAsyncProcessAndLiveCrash User_PrefetchAbort |
|
265 COMMAND processb UnLoadPlugins |
|
266 END_TEST_BLOCK |
|
267 END_TESTCASE DT-coredump-monitor-015 |