dbgsrv/coredumpserver/test/automatictests/tcds_unit/scripts/tcds_unit.script
changeset 0 c6b0df440bee
equal deleted inserted replaced
-1:000000000000 0:c6b0df440bee
       
     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								tcds_unit.script
       
    15 //
       
    16 
       
    17 //! @SYMTestSuiteName               	DT-SCDS-UNIT
       
    18 //! @SYMScriptTestEnvironment       	TEF
       
    19 
       
    20 LOAD_SUITE tcds_unit
       
    21 
       
    22 
       
    23 
       
    24 START_TESTCASE                DT-SCDS-UNIT-0001
       
    25 //! @SYMTestCaseID              DT-SCDS-UNIT-0001
       
    26 //! @SYMTestCaseDesc            Test we can construct a flash data source and delete it succesfully.
       
    27 //! @SYMTestPriority            Critical
       
    28 //! @SYMTestActions             Call NewL and delete it.
       
    29 //! @SYMTestExpectedResults     Pass
       
    30 //! @SYMTestType                UT
       
    31 //! @SYMCreationDate            25/11/2008
       
    32 //! @SYMAuthor                  stephenroberts
       
    33 //! @SYMTestStatus              2. Functional
       
    34 //! @SYMPREQ                    PREQ1700
       
    35     START_TEST_BLOCK    100    tcds_unit \data\tcds_unit.ini
       
    36     	CREATE_OBJECT	CFlashDataSourceWrapper	session1
       
    37 		COMMAND		session1	NewL
       
    38     END_TEST_BLOCK
       
    39 END_TESTCASE DT-SCDS-UNIT-0001
       
    40                      
       
    41 
       
    42 
       
    43 START_TESTCASE                DT-SCDS-UNIT-0002
       
    44 //! @SYMTestCaseID              DT-SCDS-UNIT-0002
       
    45 //! @SYMTestCaseDesc            Tests the ReadCrashLog method on the flash data source.
       
    46 //! @SYMTestPriority            Critical
       
    47 //! @SYMTestActions             Write dummy data to flash and read it back via GetFlashBuffer.
       
    48 //! @SYMTestExpectedResults     Pass
       
    49 //! @SYMTestType                UT
       
    50 //! @SYMCreationDate            25/11/2008
       
    51 //! @SYMAuthor                  stephenroberts
       
    52 //! @SYMTestStatus              2. Functional
       
    53 //! @SYMPREQ                    PREQ1700
       
    54     START_TEST_BLOCK    100    tcds_unit \data\tcds_unit.ini
       
    55     	CREATE_OBJECT	CFlashDataSourceWrapper	session1
       
    56 		COMMAND		session1	ReadCrashLog
       
    57     END_TEST_BLOCK
       
    58 END_TESTCASE DT-SCDS-UNIT-0002
       
    59 
       
    60 
       
    61 START_TESTCASE                DT-SCDS-UNIT-0003
       
    62 //! @SYMTestCaseID              DT-SCDS-UNIT-0003
       
    63 //! @SYMTestCaseDesc            Tests we can retrieve the flash buffer of the flash data source.
       
    64 //! @SYMTestPriority            Critical
       
    65 //! @SYMTestActions             Get the flash buffer with GetFlashBuffer and make sure its ok.
       
    66 //! @SYMTestExpectedResults     Pass
       
    67 //! @SYMTestType                UT
       
    68 //! @SYMCreationDate            25/11/2008
       
    69 //! @SYMAuthor                  stephenroberts
       
    70 //! @SYMTestStatus              2. Functional
       
    71 //! @SYMPREQ                    PREQ1700
       
    72     START_TEST_BLOCK    100    tcds_unit \data\tcds_unit.ini
       
    73     	CREATE_OBJECT	CFlashDataSourceWrapper	session1
       
    74 		COMMAND		session1	GetFlashBuffer
       
    75     END_TEST_BLOCK
       
    76 END_TESTCASE DT-SCDS-UNIT-0003
       
    77 
       
    78 
       
    79 START_TESTCASE                DT-SCDS-UNIT-0004
       
    80 //! @SYMTestCaseID              DT-SCDS-UNIT-0004
       
    81 //! @SYMTestCaseDesc            Tests we can read and process a crash header from the flash partition.
       
    82 //! @SYMTestPriority            Critical
       
    83 //! @SYMTestActions             Write a dummy header to the flash partition and read it back. It should be as expected. Tests ProcessCrashHeader().
       
    84 //! @SYMTestExpectedResults     Pass
       
    85 //! @SYMTestType                UT
       
    86 //! @SYMCreationDate            25/11/2008
       
    87 //! @SYMAuthor                  stephenroberts
       
    88 //! @SYMTestStatus              2. Functional
       
    89 //! @SYMPREQ                    PREQ1700
       
    90     START_TEST_BLOCK    100    tcds_unit \data\tcds_unit.ini
       
    91     	CREATE_OBJECT	CFlashDataSourceWrapper	session1
       
    92 		COMMAND		session1	ProcessCrashHeader1
       
    93     END_TEST_BLOCK
       
    94 END_TESTCASE DT-SCDS-UNIT-0004
       
    95 
       
    96 
       
    97 START_TESTCASE                DT-SCDS-UNIT-0005
       
    98 //! @SYMTestCaseID              DT-SCDS-UNIT-0005
       
    99 //! @SYMTestCaseDesc            Tests we can recognise a corrupt crash header from the flash partition
       
   100 //! @SYMTestPriority            Critical
       
   101 //! @SYMTestActions             Write a dummy data to the flash partition and read it back. Should recognise as corrupt. Tests ProcessCrashHeader.
       
   102 //! @SYMTestExpectedResults     Pass
       
   103 //! @SYMTestType                UT
       
   104 //! @SYMCreationDate            25/11/2008
       
   105 //! @SYMAuthor                  stephenroberts
       
   106 //! @SYMTestStatus              2. Functional
       
   107 //! @SYMPREQ                    PREQ1700
       
   108     START_TEST_BLOCK    100    tcds_unit \data\tcds_unit.ini
       
   109     	CREATE_OBJECT	CFlashDataSourceWrapper	session1
       
   110 		COMMAND		session1	ProcessCrashHeader2
       
   111     END_TEST_BLOCK
       
   112 END_TESTCASE DT-SCDS-UNIT-0005
       
   113 
       
   114 
       
   115 START_TESTCASE                DT-SCDS-UNIT-0006
       
   116 //! @SYMTestCaseID              DT-SCDS-UNIT-0006
       
   117 //! @SYMTestCaseDesc            Tests we can retrieve the process list.
       
   118 //! @SYMTestPriority            Critical
       
   119 //! @SYMTestActions             Write a known process list to flash and then read it back. Should be as expected.
       
   120 //! @SYMTestExpectedResults     Pass
       
   121 //! @SYMTestType                UT
       
   122 //! @SYMCreationDate            25/11/2008
       
   123 //! @SYMAuthor                  stephenroberts
       
   124 //! @SYMTestStatus              2. Functional
       
   125 //! @SYMPREQ                    PREQ1700
       
   126     START_TEST_BLOCK    100    tcds_unit \data\tcds_unit.ini
       
   127     	CREATE_OBJECT	CFlashDataSourceWrapper	session1
       
   128 		COMMAND		session1	GetProcessListL1
       
   129     END_TEST_BLOCK
       
   130 END_TESTCASE DT-SCDS-UNIT-0006
       
   131 
       
   132 
       
   133 START_TESTCASE                DT-SCDS-UNIT-0007
       
   134 //! @SYMTestCaseID              DT-SCDS-UNIT-0007
       
   135 //! @SYMTestCaseDesc            Tests we can handle things ok when there is no process list.
       
   136 //! @SYMTestPriority            Critical
       
   137 //! @SYMTestActions             Write a dummy crash with no process list. Should handle it and return a zero sized process list.
       
   138 //! @SYMTestExpectedResults     Pass
       
   139 //! @SYMTestType                UT
       
   140 //! @SYMCreationDate            25/11/2008
       
   141 //! @SYMAuthor                  stephenroberts
       
   142 //! @SYMTestStatus              2. Functional
       
   143 //! @SYMPREQ                    PREQ1700
       
   144     START_TEST_BLOCK    100    tcds_unit \data\tcds_unit.ini
       
   145     	CREATE_OBJECT	CFlashDataSourceWrapper	session1
       
   146 		COMMAND		session1	GetProcessListL2
       
   147     END_TEST_BLOCK
       
   148 END_TESTCASE DT-SCDS-UNIT-0007
       
   149 
       
   150 
       
   151 START_TESTCASE                DT-SCDS-UNIT-0008
       
   152 //! @SYMTestCaseID              DT-SCDS-UNIT-0008
       
   153 //! @SYMTestCaseDesc            Tests we can retrieve the system wide thread list.
       
   154 //! @SYMTestPriority            Critical
       
   155 //! @SYMTestActions             Write a known system wide thread list to flash and then read it back. Should be as expected.
       
   156 //! @SYMTestExpectedResults     Pass
       
   157 //! @SYMTestType                UT
       
   158 //! @SYMCreationDate            25/11/2008
       
   159 //! @SYMAuthor                  stephenroberts
       
   160 //! @SYMTestStatus              2. Functional
       
   161 //! @SYMPREQ                    PREQ1700
       
   162     START_TEST_BLOCK    100    tcds_unit \data\tcds_unit.ini
       
   163     	CREATE_OBJECT	CFlashDataSourceWrapper	session1
       
   164 		COMMAND		session1	GetThreadListL1
       
   165     END_TEST_BLOCK
       
   166 END_TESTCASE  DT-SCDS-UNIT-0008
       
   167 
       
   168 
       
   169 START_TESTCASE                DT-SCDS-UNIT-0009
       
   170 //! @SYMTestCaseID              DT-SCDS-UNIT-0009
       
   171 //! @SYMTestCaseDesc            Tests we can handle things ok when there is no process list.
       
   172 //! @SYMTestPriority            Critical
       
   173 //! @SYMTestActions             Write a dummy crash with no thread list. Should handle it and return a zero sized process list.
       
   174 //! @SYMTestExpectedResults     Pass
       
   175 //! @SYMTestType                UT
       
   176 //! @SYMCreationDate            25/11/2008
       
   177 //! @SYMAuthor                  stephenroberts
       
   178 //! @SYMTestStatus              2. Functional
       
   179 //! @SYMPREQ                    PREQ1700
       
   180     START_TEST_BLOCK    100    tcds_unit \data\tcds_unit.ini
       
   181     	CREATE_OBJECT	CFlashDataSourceWrapper	session1
       
   182 		COMMAND		session1	GetThreadListL2
       
   183     END_TEST_BLOCK
       
   184 END_TESTCASE DT-SCDS-UNIT-0009
       
   185 
       
   186 
       
   187 START_TESTCASE                DT-SCDS-UNIT-0010
       
   188 //! @SYMTestCaseID              DT-SCDS-UNIT-0010
       
   189 //! @SYMTestCaseDesc            Tests we can retrieve process specific thread list.
       
   190 //! @SYMTestPriority            Critical
       
   191 //! @SYMTestActions             Write a dummy crash with a thread list with threads for multiple known process IDs. Retrieve the thread list via one of those process ID's and should only see the threads for that process.
       
   192 //! @SYMTestExpectedResults     Pass
       
   193 //! @SYMTestType                UT
       
   194 //! @SYMCreationDate            25/11/2008
       
   195 //! @SYMAuthor                  stephenroberts
       
   196 //! @SYMTestStatus              2. Functional
       
   197 //! @SYMPREQ                    PREQ1700
       
   198     START_TEST_BLOCK    100    tcds_unit \data\tcds_unit.ini
       
   199     	CREATE_OBJECT	CFlashDataSourceWrapper	session1
       
   200 		COMMAND		session1	GetThreadListL3
       
   201     END_TEST_BLOCK
       
   202 END_TESTCASE DT-SCDS-UNIT-0010
       
   203 
       
   204 
       
   205 START_TESTCASE                DT-SCDS-UNIT-0011
       
   206 //! @SYMTestCaseID              DT-SCDS-UNIT-0011
       
   207 //! @SYMTestCaseDesc            Tests we can read registers back from the flash succesfully.
       
   208 //! @SYMTestPriority            Critical
       
   209 //! @SYMTestActions             Write a dummy crash with registers for the crashed thread, usr registers and svr registers. Should be able to retrieve all.
       
   210 //! @SYMTestExpectedResults     Pass
       
   211 //! @SYMTestType                UT
       
   212 //! @SYMCreationDate            25/11/2008
       
   213 //! @SYMAuthor                  stephenroberts
       
   214 //! @SYMTestStatus              2. Functional
       
   215 //! @SYMPREQ                    PREQ1700
       
   216     START_TEST_BLOCK    100    tcds_unit \data\tcds_unit.ini
       
   217     	CREATE_OBJECT	CFlashDataSourceWrapper	session1
       
   218 		COMMAND		session1	ReadRegistersL1
       
   219     END_TEST_BLOCK
       
   220 END_TESTCASE DT-SCDS-UNIT-0011
       
   221 
       
   222 
       
   223 START_TESTCASE                DT-SCDS-UNIT-0012
       
   224 //! @SYMTestCaseID              DT-SCDS-UNIT-0012
       
   225 //! @SYMTestCaseDesc            Tests we can read memory back from the flash succesfully.
       
   226 //! @SYMTestPriority            Critical
       
   227 //! @SYMTestActions             Write a dummy crash with some memory. Should be able to retrieve it.
       
   228 //! @SYMTestExpectedResults     Pass
       
   229 //! @SYMTestType                UT
       
   230 //! @SYMCreationDate            25/11/2008
       
   231 //! @SYMAuthor                  stephenroberts
       
   232 //! @SYMTestStatus              2. Functional
       
   233 //! @SYMPREQ                    PREQ1700
       
   234     START_TEST_BLOCK    100    tcds_unit \data\tcds_unit.ini
       
   235     	CREATE_OBJECT	CFlashDataSourceWrapper	session1
       
   236 		COMMAND		session1	ReadMemoryL1
       
   237     END_TEST_BLOCK
       
   238 END_TESTCASE DT-SCDS-UNIT-0012
       
   239 
       
   240 
       
   241 START_TESTCASE                DT-SCDS-UNIT-0013
       
   242 //! @SYMTestCaseID              DT-SCDS-UNIT-0013
       
   243 //! @SYMTestCaseDesc            Tests we can read code segments back from the flash succesfully.
       
   244 //! @SYMTestPriority            Critical
       
   245 //! @SYMTestActions             Write a dummy crash with some code segments. Should be able to retrieve expected code segments.
       
   246 //! @SYMTestExpectedResults     Pass
       
   247 //! @SYMTestType                UT
       
   248 //! @SYMCreationDate            25/11/2008
       
   249 //! @SYMAuthor                  stephenroberts
       
   250 //! @SYMTestStatus              2. Functional
       
   251 //! @SYMPREQ                    PREQ1700
       
   252     START_TEST_BLOCK    100    tcds_unit \data\tcds_unit.ini
       
   253     	CREATE_OBJECT	CFlashDataSourceWrapper	session1
       
   254 		COMMAND		session1	GetCodeSegmentsL1
       
   255     END_TEST_BLOCK
       
   256 END_TESTCASE DT-SCDS-UNIT-0013
       
   257 
       
   258 
       
   259 START_TESTCASE                DT-SCDS-UNIT-0014
       
   260 //! @SYMTestCaseID              DT-SCDS-UNIT-0014
       
   261 //! @SYMTestCaseDesc            Tests we can recognise corrupt code segments.
       
   262 //! @SYMTestPriority            Critical
       
   263 //! @SYMTestActions             Write a dummy crash with some code segments but not code segment set (descriptor). Should get back a KErrCorrupt.
       
   264 //! @SYMTestExpectedResults     Pass
       
   265 //! @SYMTestType                UT
       
   266 //! @SYMCreationDate            25/11/2008
       
   267 //! @SYMAuthor                  stephenroberts
       
   268 //! @SYMTestStatus              2. Functional
       
   269 //! @SYMPREQ                    PREQ1700
       
   270     START_TEST_BLOCK    100    tcds_unit \data\tcds_unit.ini
       
   271     	CREATE_OBJECT	CFlashDataSourceWrapper	session1
       
   272 		COMMAND		session1	GetCodeSegmentsL2
       
   273     END_TEST_BLOCK
       
   274 END_TESTCASE DT-SCDS-UNIT-0014
       
   275 
       
   276 
       
   277 START_TESTCASE                DT-SCDS-UNIT-0015
       
   278 //! @SYMTestCaseID              DT-SCDS-UNIT-0015
       
   279 //! @SYMTestCaseDesc            Tests we can read back entire trace data via flash data source.
       
   280 //! @SYMTestPriority            Critical
       
   281 //! @SYMTestActions             Write a dummy crash with some trace data. Should retrieve expected trace.
       
   282 //! @SYMTestExpectedResults     Pass
       
   283 //! @SYMTestType                UT
       
   284 //! @SYMCreationDate            25/11/2008
       
   285 //! @SYMAuthor                  stephenroberts
       
   286 //! @SYMTestStatus              2. Functional
       
   287 //! @SYMPREQ                    PREQ1700
       
   288     START_TEST_BLOCK    100    tcds_unit \data\tcds_unit.ini
       
   289     	CREATE_OBJECT	CFlashDataSourceWrapper	session1
       
   290 		COMMAND		session1	ReadTraceBufferL1
       
   291     END_TEST_BLOCK
       
   292 END_TESTCASE DT-SCDS-UNIT-0015
       
   293 
       
   294 
       
   295 START_TESTCASE                DT-SCDS-UNIT-0016
       
   296 //! @SYMTestCaseID              DT-SCDS-UNIT-0016
       
   297 //! @SYMTestCaseDesc            Tests we can calculate the check sum of the crash.
       
   298 //! @SYMTestPriority            Critical
       
   299 //! @SYMTestActions             Calculate check sum and should be as expected.
       
   300 //! @SYMTestExpectedResults     Pass
       
   301 //! @SYMTestType                UT
       
   302 //! @SYMCreationDate            25/11/2008
       
   303 //! @SYMAuthor                  stephenroberts
       
   304 //! @SYMTestStatus              2. Functional
       
   305 //! @SYMPREQ                    PREQ1700
       
   306     START_TEST_BLOCK    100    tcds_unit \data\tcds_unit.ini
       
   307     	CREATE_OBJECT	CFlashDataSourceWrapper	session1
       
   308 		COMMAND		session1	CalcChecksum
       
   309     END_TEST_BLOCK
       
   310 END_TESTCASE DT-SCDS-UNIT-0016
       
   311 
       
   312 
       
   313 START_TESTCASE                DT-SCDS-UNIT-0018
       
   314 //! @SYMTestCaseID              DT-SCDS-UNIT-0018
       
   315 //! @SYMTestCaseDesc            Tests we can get back the correct size of trace available
       
   316 //! @SYMTestPriority            High
       
   317 //! @SYMTestActions             Write trace data to flash. Should get back expected.
       
   318 //! @SYMTestExpectedResults     Pass
       
   319 //! @SYMTestType                UT
       
   320 //! @SYMCreationDate            26/11/2008
       
   321 //! @SYMAuthor                  stephenroberts
       
   322 //! @SYMTestStatus              2. Functional
       
   323 //! @SYMPREQ                    PREQ1700
       
   324     START_TEST_BLOCK    100    tcds_unit \data\tcds_unit.ini
       
   325     	CREATE_OBJECT	CFlashDataSourceWrapper	session1
       
   326 		COMMAND		session1	TraceDataSize
       
   327     END_TEST_BLOCK
       
   328 END_TESTCASE DT-SCDS-UNIT-0018
       
   329 
       
   330 
       
   331 START_TESTCASE                DT-SCDS-UNIT-0019
       
   332 //! @SYMTestCaseID              DT-SCDS-UNIT-0019
       
   333 //! @SYMTestCaseDesc            Tests we can get back KErrNotFound when trace is not available
       
   334 //! @SYMTestPriority            High
       
   335 //! @SYMTestActions             Write no trace data to flash. Should get KErrNotFound when we look for it.
       
   336 //! @SYMTestExpectedResults     Pass
       
   337 //! @SYMTestType                UT
       
   338 //! @SYMCreationDate            26/11/2008
       
   339 //! @SYMAuthor                  stephenroberts
       
   340 //! @SYMTestStatus              2. Functional
       
   341 //! @SYMPREQ                    PREQ1700
       
   342     START_TEST_BLOCK    100    tcds_unit \data\tcds_unit.ini
       
   343     	CREATE_OBJECT	CFlashDataSourceWrapper	session1
       
   344 		COMMAND		session1	TraceDataSizeNotFound
       
   345     END_TEST_BLOCK
       
   346 END_TESTCASE DT-SCDS-UNIT-0019
       
   347 
       
   348 START_TESTCASE                DT-SCDS-UNIT-0020
       
   349 //! @SYMTestCaseID              DT-SCDS-UNIT-0020
       
   350 //! @SYMTestCaseDesc            Tests we can read the trace buffer with an offset
       
   351 //! @SYMTestPriority            High
       
   352 //! @SYMTestActions             Write trace data to flash. Read little chunks. Should be as expected.
       
   353 //! @SYMTestExpectedResults     Pass
       
   354 //! @SYMTestType                UT
       
   355 //! @SYMCreationDate            27/11/2008
       
   356 //! @SYMAuthor                  stephenroberts
       
   357 //! @SYMTestStatus              2. Functional
       
   358 //! @SYMPREQ                    PREQ1700
       
   359     START_TEST_BLOCK    100    tcds_unit \data\tcds_unit.ini
       
   360     	CREATE_OBJECT	CFlashDataSourceWrapper	session1
       
   361 		COMMAND		session1	ReadTraceBufferL2
       
   362     END_TEST_BLOCK
       
   363 END_TESTCASE DT-SCDS-UNIT-0020
       
   364 
       
   365 START_TESTCASE                DT-CDS-UNIT-0001
       
   366 //! @SYMTestCaseID              DT-CDS-UNIT-0001
       
   367 //! @SYMTestCaseDesc            Tests we can get trace buffer size
       
   368 //! @SYMTestPriority            High
       
   369 //! @SYMTestActions             Write trace data to buffer. Get size and should be4 expected.
       
   370 //! @SYMTestExpectedResults     Pass
       
   371 //! @SYMTestType                UT
       
   372 //! @SYMCreationDate            27/11/2008
       
   373 //! @SYMAuthor                  stephenroberts
       
   374 //! @SYMTestStatus              2. Functional
       
   375 //! @SYMPREQ                    PREQ1700
       
   376     START_TEST_BLOCK    100    tcds_unit \data\tcds_unit.ini
       
   377     	CREATE_OBJECT	CServerDataSourceWrapper	session1
       
   378 		COMMAND		session1	GetAvailableTraceSizeL
       
   379     END_TEST_BLOCK
       
   380 END_TESTCASE DT-CDS-UNIT-0001
       
   381 
       
   382 
       
   383 START_TESTCASE                DT-SCDS-UNIT-0021
       
   384 //! @SYMTestCaseID              DT-SCDS-UNIT-0021
       
   385 //! @SYMTestCaseDesc            Tests data source does not return duplicate segments
       
   386 //! @SYMTestPriority            Critical
       
   387 //! @SYMTestActions             Write a dummy crash with duplicate code segmentscheck no duplicates in returned list
       
   388 //! @SYMTestExpectedResults     Pass
       
   389 //! @SYMTestType                UT
       
   390 //! @SYMCreationDate            25/11/2008
       
   391 //! @SYMAuthor                  stephenroberts
       
   392 //! @SYMTestStatus              2. Functional
       
   393 //! @SYMPREQ                    PREQ1700
       
   394     START_TEST_BLOCK    100    tcds_unit \data\tcds_unit.ini
       
   395     	CREATE_OBJECT	CFlashDataSourceWrapper	session1
       
   396 		COMMAND		session1	GetCodeSegmentsL3
       
   397     END_TEST_BLOCK
       
   398 END_TESTCASE DT-SCDS-UNIT-0021
       
   399 
       
   400