|
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_AppListFile_Boot1 |
|
32 call :test T_AppListFile_Boot2 |
|
33 call :test T_AppListFile_Boot3 |
|
34 call :test T_AppListFileUpdate |
|
35 call :test T_ApsScan |
|
36 call :test T_AutoMMCReaderOpen |
|
37 call :test T_Backup |
|
38 call :test T_Capability1 |
|
39 call :test T_Capability2 |
|
40 call :test T_DataTypeMappingWithSid |
|
41 call :test T_Caption |
|
42 call :test T_Cmdln |
|
43 call :test T_ControlPanelTest |
|
44 call :test T_DataMappingPersistenceA |
|
45 call :test T_DataMappingPersistenceB |
|
46 call :test T_DataMappingPersistenceC |
|
47 call :test T_DriveNotification |
|
48 call :test T_EndTask |
|
49 call :test T_Exe |
|
50 call :test T_File2 |
|
51 call :test T_File3 |
|
52 call :test T_Foreground |
|
53 call :test T_GroupName |
|
54 call :test T_GroupName_ver1 |
|
55 call :test T_GroupName_ver2 |
|
56 call :test T_IntegritySupport |
|
57 call :test T_IntegritySupportReboot1 |
|
58 call :test T_IntegritySupportReboot2 |
|
59 call :test T_LargeStack |
|
60 call :test T_Locale |
|
61 call :test T_Mdr |
|
62 call :test T_MimeContentPolicy |
|
63 call :test T_Mru |
|
64 call :test T_NonNativeApps |
|
65 call :test T_Notif |
|
66 call :test T_OOM |
|
67 call :test T_Pro |
|
68 call :test T_Proc |
|
69 call :test T_RApaLsSession |
|
70 call :test T_RuleBasedLaunching |
|
71 call :test T_Serv2 |
|
72 call :test T_Serv3 |
|
73 call :test T_ServiceBase |
|
74 call :test T_ServiceRegistry |
|
75 call :test T_Services |
|
76 call :test T_StartApp |
|
77 call :test T_StartDoc |
|
78 call :test T_Wgnam |
|
79 call :test T_WindowChaining |
|
80 ::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 |
|
81 |
|
82 call sysstart_apparc_run.bat |
|
83 type \epoc32\winscw\c\logs\testexecute\sysstart_apparctest_summary.txt >> %APPARCTEST_SUMMARY% |
|
84 |
|
85 goto :skipFunctions |
|
86 |
|
87 :test |
|
88 set TEST_CASE=%1 |
|
89 set TEST_RSC=%2 |
|
90 set EPOCWIND_COPY=\epoc32\winscw\c\logs\testexecute\apparctest_%TEST_CASE%_epocwind.out |
|
91 set EPOCWIND_ORIG=%TEMP%\epocwind.out |
|
92 |
|
93 if exist %EPOCWIND_COPY% del %EPOCWIND_COPY% |
|
94 |
|
95 echo testexecute.exe z:\apparctest\apparctest_%TEST_CASE%.script |
|
96 testexecute.exe z:\apparctest\apparctest_%TEST_CASE%.script |
|
97 |
|
98 copy %EPOCWIND_ORIG% %EPOCWIND_COPY% >NUL |
|
99 call :updateTestSummary |
|
100 goto :EOF |
|
101 |
|
102 :checkLog |
|
103 :: checkLog SEARCH_FILE SEARCH_STRING EXPECTED_NUMBER_OF_OCCURENCES |
|
104 set SEARCH_FILE=%1 |
|
105 set SEARCH_STRING=%2 |
|
106 set TEMP_FILE=sysstart_temp.txt |
|
107 set EXPECTED_COUNT=%3 |
|
108 set LOG_COUNT=0 |
|
109 type %SEARCH_FILE% | find /c %SEARCH_STRING%>%TEMP_FILE% |
|
110 for /f "delims=\" %%i in ('type %TEMP_FILE%') do set LOG_COUNT=%%i |
|
111 del %TEMP_FILE% |
|
112 if "%EXPECTED_COUNT%" == "%LOG_COUNT%" goto :EOF |
|
113 if "%EXPECTED_COUNT%" NEQ "%LOG_COUNT%" set TEST_RESULT_FLAG=FAIL |
|
114 goto :EOF |
|
115 |
|
116 :updateTestSummary |
|
117 set TEST_RESULT_FLAG=PASS |
|
118 call :checkLog \epoc32\winscw\c\logs\testexecute\apparctest_%TEST_CASE%.htm "%TEST_CASE% ***Result = PASS" 1 |
|
119 echo %TEST_CASE% - %TEST_RESULT_FLAG% >> %APPARCTEST_SUMMARY% |
|
120 goto :EOF |
|
121 |
|
122 :skipFunctions |
|
123 |
|
124 |
|
125 endlocal |