appfw/apparchitecture/tef/scripts/emulator/apparctest_CACHE_OFF_run.bat
changeset 0 2e3d3ce01487
child 29 6a787171e1de
equal deleted inserted replaced
-1:000000000000 0:2e3d3ce01487
       
     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 "Eclipse Public License v1.0"
       
     6 @rem which accompanies this distribution, and is available
       
     7 @rem at the URL "http://www.eclipse.org/legal/epl-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 :: *******************************************************************
       
    20 :: This batch file is used to run tests on 9.3 and higher versions.
       
    21 ::
       
    22 :: Any ADDITIONS or DELETIONS to the test cases in this script MUST
       
    23 :: be copied to the partner script that is used on hardware:
       
    24 :: ..\hardware\apparctest_run.bat
       
    25 :: *******************************************************************
       
    26 
       
    27 set APPARCTEST_SUMMARY=\epoc32\winscw\c\logs\testexecute\apparctest_summary.txt
       
    28 if exist %APPARCTEST_SUMMARY% del %APPARCTEST_SUMMARY% >NUL
       
    29 
       
    30 call :test T_AppList 
       
    31 call :test T_ApsScan
       
    32 call :test T_AutoMMCReaderOpen 
       
    33 call :test T_Backup 
       
    34 call :test T_Capability1 
       
    35 call :test T_Capability2 
       
    36 call :test T_DataTypeMappingWithSid
       
    37 call :test T_Caption 
       
    38 call :test T_Cmdln 
       
    39 call :test T_ControlPanelTest 
       
    40 call :test T_DataMappingPersistenceA 
       
    41 call :test T_DataMappingPersistenceB 
       
    42 call :test T_DataMappingPersistenceC 
       
    43 call :test T_DriveNotification
       
    44 call :test T_EndTask
       
    45 call :test T_Exe 
       
    46 call :test T_File1 
       
    47 call :test T_File2 
       
    48 call :test T_File3 
       
    49 call :test T_Foreground 
       
    50 call :test T_GroupName 
       
    51 call :test T_GroupName_ver1 
       
    52 call :test T_GroupName_ver2 
       
    53 call :test T_IntegritySupport
       
    54 call :test T_IntegritySupportReboot1
       
    55 call :test T_IntegritySupportReboot2
       
    56 call :test T_LargeStack
       
    57 call :test T_Locale 
       
    58 call :test T_Mdr 
       
    59 call :test T_MimeContentPolicy
       
    60 call :test T_Mru 
       
    61 call :test T_NonNativeApps 
       
    62 call :test T_Notif 
       
    63 call :test T_OOM 
       
    64 call :test T_Pro 
       
    65 call :test T_Proc 
       
    66 call :test T_RApaLsSession 
       
    67 call :test T_RuleBasedLaunching 
       
    68 call :test T_Serv2 
       
    69 call :test T_Serv3 
       
    70 call :test T_ServiceBase 
       
    71 call :test T_ServiceRegistry 
       
    72 call :test T_Services 
       
    73 call :test T_StartApp 
       
    74 call :test T_StartDoc 
       
    75 call :test T_Wgnam 
       
    76 call :test T_WindowChaining 
       
    77 ::call :test T_RecUpgrade  This test can not run on emulator as it requires loading, unloading and deletion of a plug-in and Windows OS don’t allow deletion of loaded binaries 
       
    78 
       
    79 call sysstart_apparc_run.bat
       
    80 type \epoc32\winscw\c\logs\testexecute\sysstart_apparctest_summary.txt >> %APPARCTEST_SUMMARY%
       
    81 
       
    82 goto :skipFunctions
       
    83 
       
    84 :test
       
    85 	set TEST_CASE=%1
       
    86 	set TEST_RSC=%2
       
    87 	set EPOCWIND_COPY=\epoc32\winscw\c\logs\testexecute\apparctest_%TEST_CASE%_epocwind.out
       
    88 	set EPOCWIND_ORIG=%TEMP%\epocwind.out
       
    89 
       
    90 	if exist %EPOCWIND_COPY% del %EPOCWIND_COPY%
       
    91 
       
    92 	echo testexecute.exe z:\apparctest\apparctest_%TEST_CASE%.script
       
    93 	testexecute.exe z:\apparctest\apparctest_%TEST_CASE%.script
       
    94 
       
    95 	copy %EPOCWIND_ORIG% %EPOCWIND_COPY% >NUL
       
    96 	call :updateTestSummary
       
    97 goto :EOF
       
    98 
       
    99 :checkLog
       
   100 	:: checkLog SEARCH_FILE SEARCH_STRING EXPECTED_NUMBER_OF_OCCURENCES
       
   101 	set SEARCH_FILE=%1
       
   102 	set SEARCH_STRING=%2
       
   103 	set TEMP_FILE=sysstart_temp.txt
       
   104 	set EXPECTED_COUNT=%3
       
   105 	set LOG_COUNT=0
       
   106 	type %SEARCH_FILE% | find /c %SEARCH_STRING%>%TEMP_FILE%
       
   107 	for /f "delims=\" %%i in ('type %TEMP_FILE%') do set LOG_COUNT=%%i
       
   108 	del %TEMP_FILE%
       
   109 	if "%EXPECTED_COUNT%" ==  "%LOG_COUNT%" goto :EOF
       
   110 	if "%EXPECTED_COUNT%" NEQ "%LOG_COUNT%" set TEST_RESULT_FLAG=FAIL
       
   111 goto :EOF
       
   112 
       
   113 :updateTestSummary
       
   114 	set TEST_RESULT_FLAG=PASS
       
   115 	call :checkLog \epoc32\winscw\c\logs\testexecute\apparctest_%TEST_CASE%.htm "%TEST_CASE% ***Result = PASS" 1
       
   116 	echo %TEST_CASE% - %TEST_RESULT_FLAG% >> %APPARCTEST_SUMMARY% 
       
   117 goto :EOF
       
   118 
       
   119 :skipFunctions
       
   120 
       
   121 
       
   122 endlocal