0
|
1 |
@echo OFF
|
|
2 |
|
|
3 |
rem Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
4 |
rem All rights reserved.
|
|
5 |
rem This component and the accompanying materials are made available
|
|
6 |
rem under the terms of "Eclipse Public License v1.0"
|
|
7 |
rem which accompanies this distribution, and is available
|
|
8 |
rem at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
9 |
rem
|
|
10 |
rem Initial Contributors:
|
|
11 |
rem Nokia Corporation - initial contribution.
|
|
12 |
rem
|
|
13 |
rem Contributors:
|
|
14 |
rem
|
|
15 |
rem Description:
|
|
16 |
rem
|
|
17 |
|
|
18 |
rem Parse the input parameters
|
|
19 |
set numCrashes=0
|
|
20 |
|
|
21 |
:while
|
|
22 |
if "%1"=="" goto Main
|
|
23 |
if "%1"=="/c" goto GetCrashNum
|
|
24 |
if "%1"=="/d" goto DisplayTestInfo
|
|
25 |
if "%1"=="/?" goto DisplayHelp
|
|
26 |
shift
|
|
27 |
goto while
|
|
28 |
|
|
29 |
:GetCrashNum
|
|
30 |
shift
|
|
31 |
set numCrashes=%1
|
|
32 |
goto:while
|
|
33 |
|
|
34 |
:DisplayHelp
|
|
35 |
echo.
|
|
36 |
echo Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
37 |
echo All rights reserved.
|
|
38 |
echo.
|
|
39 |
echo Usage: DT-coredump-monitor-012.bat /c=c [/desc] [/?]
|
|
40 |
echo.
|
|
41 |
echo num is the number of crashes to test. Must be greater than 1 /c num
|
|
42 |
echo Display Usage /?
|
|
43 |
echo Display Description /d
|
|
44 |
exit /B n
|
|
45 |
|
|
46 |
:DisplayTestInfo
|
|
47 |
echo.
|
|
48 |
echo Test Description:
|
|
49 |
echo Test crash information in Multiple ELF file namely
|
|
50 |
echo 1 Crash Type
|
|
51 |
echo 2 Thread Name Validation
|
|
52 |
echo 3 Process ID
|
|
53 |
exit /B n
|
|
54 |
|
|
55 |
:Main
|
|
56 |
if %numCrashes% GTR 1 (
|
|
57 |
call:CleanFlashPartition
|
|
58 |
call:ConfigureScm
|
|
59 |
for /L %%i in (1,1,%numCrashes%) do (
|
|
60 |
call:CrashBoard
|
|
61 |
call:Sleep
|
|
62 |
)
|
|
63 |
call:ValidateFiles
|
|
64 |
)else (
|
|
65 |
call:DisplayHelp
|
|
66 |
)
|
|
67 |
set numCrashes=
|
|
68 |
|
|
69 |
exit /B n
|
|
70 |
|
|
71 |
:CleanFlashPartition
|
|
72 |
echo Cleaning flash partition...
|
|
73 |
call testdriver run -p armv5 -b udeb -s file:/${sourceroot}/tcds_kernel/group/tcds_kernel.driver#system_crash.processcrash.testListAndDeleteAllCrashes
|
|
74 |
goto:eof
|
|
75 |
|
|
76 |
:ConfigureScm
|
|
77 |
echo Configuring SCM...
|
|
78 |
call testdriver run -p armv5 -b udeb -s file:/${sourceroot}/tcds_kernel/group/tcds_kernel.driver#system_crash.processcrash.testSCMZeroConfig
|
|
79 |
goto:eof
|
|
80 |
|
|
81 |
:CrashBoard
|
|
82 |
echo Crashing board...
|
|
83 |
call testdriver run -p armv5 -b udeb -s file:/${sourceroot}/tcds_kernel/group/tcds_kernel.driver#system_crash.crash_system.crash_prefetch_abort
|
|
84 |
goto:eof
|
|
85 |
|
|
86 |
:Sleep
|
|
87 |
echo Sleeping...
|
|
88 |
call ..\util\sleepandrestart.bat
|
|
89 |
goto:eof
|
|
90 |
|
|
91 |
:ValidateFiles
|
|
92 |
echo Validating...
|
|
93 |
call testdriver run -p armv5 -b udeb -s file:/${sourceroot}/tcds_kernel/group/tcds_kernel.driver#system_crash.coredump-monitor.coredump-monitor-012
|
|
94 |
goto:eof
|