|
1 @rem |
|
2 @rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 @rem All rights reserved. |
|
4 @rem This component and the accompanying materials are made available |
|
5 @rem under the terms of the License "Symbian Foundation License v1.0" |
|
6 @rem which accompanies this distribution, and is available |
|
7 @rem at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". |
|
8 @rem |
|
9 @rem Initial Contributors: |
|
10 @rem Nokia Corporation - initial contribution. |
|
11 @rem |
|
12 @rem Contributors: |
|
13 @rem |
|
14 @rem Description: |
|
15 @rem |
|
16 @echo off |
|
17 setlocal |
|
18 |
|
19 set SSAAC_RESULT_FILE=\epoc32\winscw\c\T_SSAAC_PanicResultFile.txt |
|
20 |
|
21 set TEST_CASE=%1 |
|
22 set EPOCWIND=%TEMP%\epocwind.out |
|
23 |
|
24 goto :%TEST_CASE% |
|
25 |
|
26 :checkLog |
|
27 :: checkLog SEARCH_STRING EXPECTED_NUMBER_OF_OCCURENCES |
|
28 set SEARCH_STRING=%1 |
|
29 set TEMP_FILE=sysstart_temp.txt |
|
30 set EXPECTED_COUNT=%2 |
|
31 set LOG_COUNT=0 |
|
32 type %EPOCWIND% | %windir%\system32\find /c %SEARCH_STRING%>%TEMP_FILE% |
|
33 for /f "delims=\" %%i in ('type %TEMP_FILE%') do set LOG_COUNT=%%i |
|
34 del %TEMP_FILE% |
|
35 if "%EXPECTED_COUNT%" == "%LOG_COUNT%" goto :EOF |
|
36 if "%EXPECTED_COUNT%" NEQ "%LOG_COUNT%" set TEST_RESULT_FLAG=false |
|
37 goto :EOF |
|
38 |
|
39 :initialise |
|
40 if exist %SSAAC_RESULT_FILE% del %SSAAC_RESULT_FILE% |
|
41 set TEST_RESULT_FLAG=true |
|
42 goto :EOF |
|
43 |
|
44 |
|
45 :T_TestStartApp2L |
|
46 :T_TestStartApp3L |
|
47 :T_TestStartApp4L |
|
48 :T_TestStartApp5L |
|
49 :T_TestStartApp6L |
|
50 :T_TestInsertDataTypeL |
|
51 :T_TestAppForDataTypeL |
|
52 :T_TestDeleteDataTypeL |
|
53 :T_TestServiceDiscovery |
|
54 :T_TestGetAppInfo |
|
55 :T_TestGetAllApps |
|
56 :T_TestCreateDoc |
|
57 :T_TestAppCount |
|
58 call :initialise |
|
59 call :checkLog "CSysStartApparcTestCase: Error connecting to RApaLsSession (err=-1)" 1 |
|
60 call :checkLog "Thread tssaac.exe::Main Panic KERN-EXEC 0" 1 |
|
61 echo Test Case=%TEST_CASE% > %SSAAC_RESULT_FILE% |
|
62 if /i "%TEST_RESULT_FLAG%"=="true" echo Result=1 >> %SSAAC_RESULT_FILE% |
|
63 if /i "%TEST_RESULT_FLAG%"=="false" echo Result=0 >> %SSAAC_RESULT_FILE% |
|
64 goto :EOF |
|
65 |
|
66 endlocal |