os/persistentdata/persistentstorage/centralrepository/test/t_cenrep_runtxtshellflashtests.bat
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
@echo off
sl@0
     2
rem
sl@0
     3
rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     4
rem All rights reserved.
sl@0
     5
rem This component and the accompanying materials are made available
sl@0
     6
rem under the terms of "Eclipse Public License v1.0"
sl@0
     7
rem which accompanies this distribution, and is available
sl@0
     8
rem at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     9
rem
sl@0
    10
rem Initial Contributors:
sl@0
    11
rem Nokia Corporation - initial contribution.
sl@0
    12
rem
sl@0
    13
rem Contributors:
sl@0
    14
rem
sl@0
    15
rem Description:
sl@0
    16
rem
sl@0
    17
@SETLOCAL
sl@0
    18
@rem This batch file will run the tests automatically.
sl@0
    19
@IF "%~1"=="" goto ERROR
sl@0
    20
@IF "%~2"=="" goto ERROR
sl@0
    21
@FIND "startupmode 1" %EPOCROOT%EPOC32\data\epoc.ini >NUL
sl@0
    22
@if errorlevel 1 goto ADDLINE
sl@0
    23
goto BODY
sl@0
    24
sl@0
    25
:ADDLINE
sl@0
    26
echo startupmode 1 >> %EPOCROOT%EPOC32\data\epoc.ini
sl@0
    27
goto BODY
sl@0
    28
sl@0
    29
:BODY
sl@0
    30
@if exist \textshell.bat call \textshell.bat
sl@0
    31
@REM FIRST TEST PRESETUP
sl@0
    32
@if exist %EPOCROOT%EPOC32\winscw\c\private\10202be9\romversion\romversion_info.txt erase %EPOCROOT%EPOC32\winscw\c\private\10202be9\romversion\romversion_info.txt
sl@0
    33
sl@0
    34
@REM FIRST TEST SYSLIB-CENTRALREPOSITORY-CT-400[2|3|4]
sl@0
    35
@if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\t_cenrep_fota_txtem2.exe call %EPOCROOT%EPOC32\RELEASE\%1\%2\t_cenrep_fota_txtem2.exe
sl@0
    36
sl@0
    37
@REM SECOND TEST PRESETUP SYSLIB-CENTRALREPOSITORY-CT-4005
sl@0
    38
@if exist  %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt move %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt  %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333_temp.txt
sl@0
    39
@if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333_modified.cre copy %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333_modified.cre %EPOCROOT%EPOC32\winscw\c\private\10202be9\persists\10033333.cre
sl@0
    40
@if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\sw_modified1.txt copy %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\sw_modified1.txt %EPOCROOT%EPOC32\winscw\c\private\10202be9\romversion\romversion_info.txt
sl@0
    41
sl@0
    42
@REM SECOND TEST
sl@0
    43
@if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\t_cenrep_fota_txtem1.exe call %EPOCROOT%EPOC32\RELEASE\%1\%2\t_cenrep_fota_txtem1.exe
sl@0
    44
sl@0
    45
@REM SECOND TEST POST CLEANUP
sl@0
    46
@if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333_temp.txt move %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333_temp.txt  %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt
sl@0
    47
goto EOF
sl@0
    48
sl@0
    49
:ERROR
sl@0
    50
@echo "please supply the release winscw and build type [udeb|urel]"
sl@0
    51
sl@0
    52
:EOF
sl@0
    53
sl@0
    54