graphicstest/graphicstestharness/batch/minigui.cmd
changeset 0 5d03bc08d59c
equal deleted inserted replaced
-1:000000000000 0:5d03bc08d59c
       
     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 on
       
    17 
       
    18 set TESTEXECUTE_INI=
       
    19 if defined EMULATOR_C_DIR (
       
    20 	set TESTEXECUTE_INI=%EMULATOR_C_DIR%\system\data\testexecute.ini
       
    21 ) else (
       
    22 	set TESTEXECUTE_INI=%EPOCROOT%epoc32\winscw\c\system\data\testexecute.ini
       
    23 )
       
    24 
       
    25 echo Backup EPOC.INI
       
    26 if defined EPOC_INI (
       
    27 	copy %EPOC_INI% %EPOC_INI%.mgbak
       
    28 ) else (
       
    29 	copy %EPOCROOT%epoc32\data\epoc.ini %EPOCROOT%epoc32\data\epoc.ini.mgbak
       
    30 )
       
    31 echo Backup testexecute.ini
       
    32 copy %TESTEXECUTE_INI% %TESTEXECUTE_INI%.mgbak
       
    33 echo Backup wsini.ini
       
    34 if defined EMULATOR_DATA_DIR (
       
    35 	copy %EMULATOR_DATA_DIR%\z\system\data\wsini.ini %EMULATOR_DATA_DIR%\z\system\data\wsini.ini.mgbak
       
    36 ) else (
       
    37 	copy %EPOCROOT%epoc32\release\winscw\udeb\z\system\data\wsini.ini %EPOCROOT%epoc32\release\winscw\udeb\z\system\data\wsini.ini.mgbak
       
    38 	copy %EPOCROOT%epoc32\release\winscw\urel\z\system\data\wsini.ini %EPOCROOT%epoc32\release\winscw\urel\z\system\data\wsini.ini.mgbak
       
    39 )
       
    40 
       
    41 
       
    42 REM Run command passed as argument
       
    43 if defined EMULATOR_DATA_DIR (
       
    44 	call %EMULATOR_DATA_DIR%\%*
       
    45 ) else (
       
    46 	call %EPOCROOT%epoc32\release\winscw\udeb\%*
       
    47 )
       
    48 
       
    49 REM Add minigui to epoc.ini 
       
    50 echo INFO: Adding minigui to epoc.ini
       
    51 if defined EPOC_INI (
       
    52 	echo minigui >> %EPOC_INI%
       
    53 	echo. >> %EPOC_INI%
       
    54 ) else (
       
    55 	echo minigui >> %EPOCROOT%epoc32\data\epoc.ini
       
    56 	echo. >> %EPOCROOT%epoc32\data\epoc.ini
       
    57 )	
       
    58 
       
    59 REM Disable SystemStarter in testexecute.ini 
       
    60 echo INFO: Disabling SystemStarter in testexecute.ini
       
    61 
       
    62 perl -p -i.bak -e "s/SystemStarter.*ON.*$/SystemStarter = OFF/i" %TESTEXECUTE_INI%
       
    63 
       
    64 echo testexecute.ini:	%TESTEXECUTE_INI%
       
    65 echo =======================================
       
    66 type %TESTEXECUTE_INI%
       
    67 echo =======================================
       
    68 
       
    69 REM Modify wsini to use ESHELL
       
    70 if defined EMULATOR_DATA_DIR (
       
    71 	call %EMULATOR_DATA_DIR%\z\graphicstest\replace.py %EMULATOR_DATA_DIR%\z\system\data\wsini.ini WSHELL ESHELL
       
    72 ) else (
       
    73 	call %EPOCROOT%epoc32\release\winscw\udeb\z\graphicstest\replace.py %EPOCROOT%epoc32\release\winscw\udeb\z\system\data\wsini.ini WSHELL ESHELL
       
    74 	call %EPOCROOT%epoc32\release\winscw\urel\z\graphicstest\replace.py %EPOCROOT%epoc32\release\winscw\urel\z\system\data\wsini.ini WSHELL ESHELL
       
    75 )