localisation/apparchitecture/tef/tssaac/scripts/emulator/sysstart_apparc_checkEpocWind.bat
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/localisation/apparchitecture/tef/tssaac/scripts/emulator/sysstart_apparc_checkEpocWind.bat Thu Jan 21 12:53:44 2010 +0000
@@ -0,0 +1,66 @@
+@rem
+@rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+@rem All rights reserved.
+@rem This component and the accompanying materials are made available
+@rem under the terms of the License "Symbian Foundation License v1.0"
+@rem which accompanies this distribution, and is available
+@rem at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
+@rem
+@rem Initial Contributors:
+@rem Nokia Corporation - initial contribution.
+@rem
+@rem Contributors:
+@rem
+@rem Description:
+@rem
+@echo off
+setlocal
+
+set SSAAC_RESULT_FILE=\epoc32\winscw\c\T_SSAAC_PanicResultFile.txt
+
+set TEST_CASE=%1
+set EPOCWIND=%TEMP%\epocwind.out
+
+goto :%TEST_CASE%
+
+:checkLog
+ :: checkLog SEARCH_STRING EXPECTED_NUMBER_OF_OCCURENCES
+ set SEARCH_STRING=%1
+ set TEMP_FILE=sysstart_temp.txt
+ set EXPECTED_COUNT=%2
+ set LOG_COUNT=0
+ type %EPOCWIND% | %windir%\system32\find /c %SEARCH_STRING%>%TEMP_FILE%
+ for /f "delims=\" %%i in ('type %TEMP_FILE%') do set LOG_COUNT=%%i
+ del %TEMP_FILE%
+ if "%EXPECTED_COUNT%" == "%LOG_COUNT%" goto :EOF
+ if "%EXPECTED_COUNT%" NEQ "%LOG_COUNT%" set TEST_RESULT_FLAG=false
+goto :EOF
+
+:initialise
+ if exist %SSAAC_RESULT_FILE% del %SSAAC_RESULT_FILE%
+ set TEST_RESULT_FLAG=true
+goto :EOF
+
+
+:T_TestStartApp2L
+:T_TestStartApp3L
+:T_TestStartApp4L
+:T_TestStartApp5L
+:T_TestStartApp6L
+:T_TestInsertDataTypeL
+:T_TestAppForDataTypeL
+:T_TestDeleteDataTypeL
+:T_TestServiceDiscovery
+:T_TestGetAppInfo
+:T_TestGetAllApps
+:T_TestCreateDoc
+:T_TestAppCount
+ call :initialise
+ call :checkLog "CSysStartApparcTestCase: Error connecting to RApaLsSession (err=-1)" 1
+ call :checkLog "Thread tssaac.exe::Main Panic KERN-EXEC 0" 1
+ echo Test Case=%TEST_CASE% > %SSAAC_RESULT_FILE%
+ if /i "%TEST_RESULT_FLAG%"=="true" echo Result=1 >> %SSAAC_RESULT_FILE%
+ if /i "%TEST_RESULT_FLAG%"=="false" echo Result=0 >> %SSAAC_RESULT_FILE%
+goto :EOF
+
+endlocal