0
|
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-formatters-SELF.script
|
|
15 |
//
|
|
16 |
|
|
17 |
//! @SYMTestSuiteName DT-formatters-SELF
|
|
18 |
//! @SYMScriptTestEnvironment TEF
|
|
19 |
|
|
20 |
LOAD_SUITE tcds_kernel
|
|
21 |
|
|
22 |
START_TESTCASE DT-formatters-SELF-001
|
|
23 |
//! @SYMTestCaseID DT-formatters-SELF-001
|
|
24 |
//! @SYMTestCaseDesc Test SELF Configuration to hold trace data with a system crash.
|
|
25 |
//! @SYMTestPriority Critical
|
|
26 |
//! @SYMTestActions Configure the CDS to collect a crash log for our test crash application's crash event. Generate a system crash by crashing kernel side code using our test crash application and restart the board. Load the SELF formatter plugin and an arbitrary writer. Configure the SELF formatter to hold trace data. Process the crash log. Ensure the trace data is there and correct.
|
|
27 |
//! @SYMTestExpectedResults SELF crash dump should contain trace data.
|
|
28 |
//! @SYMTestType CT
|
|
29 |
//! @SYMCreationDate 10/8/2007
|
|
30 |
//! @SYMAuthor stephenroberts
|
|
31 |
//! @SYMTestStatus 2. Functional
|
|
32 |
//! @SYMPREQ PREQ1700
|
|
33 |
START_TEST_BLOCK 1000 tcds_kernel \data\tcds_kernel.ini
|
|
34 |
CREATE_OBJECT CProcessCrashWrapper self
|
|
35 |
COMMAND self NewL
|
|
36 |
COMMAND self ReadCrashInfo
|
|
37 |
COMMAND self LoadPlugins
|
|
38 |
COMMAND self ConfigurePlugins
|
|
39 |
COMMAND self ValidateTraceSELFFile
|
|
40 |
COMMAND self UnLoadPlugins
|
|
41 |
END_TEST_BLOCK
|
|
42 |
END_TESTCASE DT-formatters-SELF-001
|
|
43 |
|
|
44 |
START_TESTCASE DT-formatters-SELF-005
|
|
45 |
//! @SYMTestCaseID DT-formatters-SELF-005
|
|
46 |
//! @SYMTestCaseDesc Test SELF Configuration to hold heap data.
|
|
47 |
//! @SYMTestPriority Critical
|
|
48 |
//! @SYMTestActions Configure the CDS to collect a crash log for our test crash application's crash event. Generate a system crash by crashing kernel side code using our test crash application and restart the board. Load the SELF formatter plugin and an arbitrary writer. Configure the SELF formatter to hold heap data. Process the crash log and confirm heap data is present.
|
|
49 |
//! @SYMTestExpectedResults SELF crash dump should contain trace data.
|
|
50 |
//! @SYMTestType CT
|
|
51 |
//! @SYMCreationDate 13/8/2007
|
|
52 |
//! @SYMAuthor stephenroberts
|
|
53 |
//! @SYMTestStatus 2. Functional
|
|
54 |
//! @SYMPREQ PREQ1700
|
|
55 |
START_TEST_BLOCK 1000 tcds_kernel \data\tcds_kernel.ini
|
|
56 |
CREATE_OBJECT CProcessCrashWrapper self
|
|
57 |
COMMAND self NewL
|
|
58 |
COMMAND self ReadCrashInfo
|
|
59 |
COMMAND self LoadPlugins
|
|
60 |
COMMAND self ConfigurePlugins
|
|
61 |
COMMAND self ValidateHeapSELFFile
|
|
62 |
COMMAND self UnLoadPlugins
|
|
63 |
END_TEST_BLOCK
|
|
64 |
END_TESTCASE DT-formatters-SELF-005
|
|
65 |
|
|
66 |
START_TESTCASE DT-formatters-SELF-009
|
|
67 |
//! @SYMTestCaseID DT-formatters-SELF-009
|
|
68 |
//! @SYMTestCaseDesc The SELF dump file should be verified to display the CPU ID of the thread it was running on.
|
|
69 |
//! @SYMTestPriority High
|
|
70 |
//! @SYMTestActions The CPU ID should be available. For a non SMP system (H4) it should be -1.
|
|
71 |
//! @SYMTestExpectedResults The CPU ID for the crashed threads should all be the same.
|
|
72 |
//! @SYMTestType CT
|
|
73 |
//! @SYMCreationDate 10/6/2008
|
|
74 |
//! @SYMAuthor stephenroberts
|
|
75 |
//! @SYMTestStatus 2. Functional
|
|
76 |
//! @SYMPREQ PREQ1700
|
|
77 |
START_TEST_BLOCK 1000 tcds_kernel \data\tcds_kernel.ini
|
|
78 |
CREATE_OBJECT CProcessCrashWrapper self
|
|
79 |
COMMAND self NewL
|
|
80 |
COMMAND self ReadCrashInfo
|
|
81 |
COMMAND self LoadPlugins
|
|
82 |
COMMAND self ConfigurePlugins
|
|
83 |
COMMAND self ValidateSelfCPUID
|
|
84 |
COMMAND self UnLoadPlugins
|
|
85 |
END_TEST_BLOCK
|
|
86 |
END_TESTCASE DT-formatters-SELF-009
|
|
87 |
|
|
88 |
START_TESTCASE DT-formatters-SELF-0010
|
|
89 |
//! @SYMTestCaseID DT-formatters-SELF-0010
|
|
90 |
//! @SYMTestCaseDesc For system crashes the SELF file should contain variant specific data when configured to do so
|
|
91 |
//! @SYMTestPriority High
|
|
92 |
//! @SYMTestActions Configure SCM to dump with variant data and verify its in SELF file
|
|
93 |
//! @SYMTestExpectedResults Variant data section present
|
|
94 |
//! @SYMTestType CT
|
|
95 |
//! @SYMCreationDate 30/9/2009
|
|
96 |
//! @SYMAuthor stephenroberts
|
|
97 |
//! @SYMTestStatus 2. Functional
|
|
98 |
//! @SYMPREQ PREQ2596
|
|
99 |
START_TEST_BLOCK 1000 tcds_kernel \data\tcds_self.ini
|
|
100 |
CREATE_OBJECT CSymbianElfWrapper self
|
|
101 |
COMMAND self GenerateSelfFile self0010
|
|
102 |
COMMAND self VerifySectionExists self0010
|
|
103 |
END_TEST_BLOCK
|
|
104 |
END_TESTCASE DT-formatters-SELF-0010
|
|
105 |
|
|
106 |
START_TESTCASE DT-formatters-SELF-0011
|
|
107 |
//! @SYMTestCaseID DT-formatters-SELF-0011
|
|
108 |
//! @SYMTestCaseDesc For system crashes the SELF file should contain variant specific data when configured to do so
|
|
109 |
//! @SYMTestPriority High
|
|
110 |
//! @SYMTestActions Configure SCM to dump with no variant data (or use an app dump) and verify its not in SELF file
|
|
111 |
//! @SYMTestExpectedResults Variant data section present
|
|
112 |
//! @SYMTestType CT
|
|
113 |
//! @SYMCreationDate 30/9/2009
|
|
114 |
//! @SYMAuthor stephenroberts
|
|
115 |
//! @SYMTestStatus 2. Functional
|
|
116 |
//! @SYMPREQ PREQ2596
|
|
117 |
START_TEST_BLOCK 1000 tcds_kernel \data\tcds_self.ini
|
|
118 |
CREATE_OBJECT CSymbianElfWrapper self
|
|
119 |
COMMAND self GenerateSelfFile self0011
|
|
120 |
COMMAND self VerifySectionDoesNotExist self0011
|
|
121 |
END_TEST_BLOCK
|
|
122 |
END_TESTCASE DT-formatters-SELF-0011
|
|
123 |
|