os/persistentdata/persistentstorage/centralrepository/test/t_cenrep_runtvflashtests.bat
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     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 
    17 @SETLOCAL
    18 @rem This batch file will run the tests automatically.
    19 @IF "%~1"=="" goto ERROR
    20 @IF "%~2"=="" goto ERROR
    21 @if exist \textshell.bat call \textshell.bat
    22 @FIND "startupmode 1" %EPOCROOT%EPOC32\data\epoc.ini >NUL
    23 @if errorlevel 1 goto BODY
    24 goto ERROR
    25 
    26 :BODY
    27 @REM Change the attributes of rom version file to rw
    28 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\resource\versions\sw.txt attrib -r %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\resource\versions\sw.txt
    29 @REM #####################################################
    30 @rem FIRST TEST PART1 SYSLIB-CENTRALREPOSITORY-CT-4006 AND SYSLIB-CENTRALREPOSITORY-CT-4023
    31 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt copy %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10043333.txt
    32 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt copy %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10043334.txt
    33 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt copy %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10043335.txt
    34 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\t_cenrep_fota_tvem1.exe call %EPOCROOT%EPOC32\RELEASE\%1\%2\t_cenrep_fota_tvem1.exe
    35 
    36 @REM FIRST PRETEST SETUP PART2
    37 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt copy %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333_extra.txt %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10043333.txt
    38 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333_corrupt.txt copy %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333_corrupt.txt %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10043334.txt
    39 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt copy %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333_extra.txt %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10043335.txt
    40 
    41 
    42 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt rename %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt 10033333_txt.tmp
    43 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt erase %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt
    44 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333_extra.txt copy %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333_extra.txt %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt
    45 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\resource\versions\sw.txt rename %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\resource\versions\sw.txt sw_txt.tmp
    46 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\sw_modified.txt copy %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\sw_modified.txt %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\resource\versions\sw.txt
    47 
    48 
    49 @REM FIRST TEST PART2
    50 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\t_cenrep_fota_tvem2.exe call %EPOCROOT%EPOC32\RELEASE\%1\%2\t_cenrep_fota_tvem2.exe
    51 
    52 @REM FIRST POSTTEST CLEANUP
    53 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt erase %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt
    54 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333_txt.tmp rename %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333_txt.tmp 10033333.txt
    55 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\resource\versions\sw.txt erase %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\resource\versions\sw.txt
    56 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\resource\versions\sw_txt.tmp rename %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\resource\versions\sw_txt.tmp sw.txt
    57 
    58 
    59 @REM ####################################################
    60 @REM SECOND TEST PART1 SYSLIB-CENTRALREPOSITORY -CT-4007-10
    61 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\resource\versions\sw.txt attrib -r %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\resource\versions\sw.txt
    62 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\t_cenrep_fota_hw_setup.exe call %EPOCROOT%EPOC32\RELEASE\%1\%2\t_cenrep_fota_hw_setup.exe 
    63 
    64 @REM SECOND TEST PART2 SETUP - Remove repository from rom
    65 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt rename %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt 10033333_txt.tmp
    66 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033335.txt rename %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033335.txt 10033335_txt.tmp
    67 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033336.txt rename %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033336.txt 10033336_txt.tmp
    68 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033339.txt rename %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033339.txt 10033339_txt.tmp
    69 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333_005.txt rename %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333_005.txt 10033336.txt
    70 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\resource\versions\sw.txt rename %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\resource\versions\sw.txt sw_txt.tmp
    71 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\sw_modified.txt copy %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\sw_modified.txt %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\resource\versions\sw.txt
    72 
    73 @REM SECOND TEST - Restart cenrep and the persists repository should have been removed.
    74 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\t_cenrep_fota_hw_tests.exe call %EPOCROOT%EPOC32\RELEASE\%1\%2\t_cenrep_fota_hw_tests.exe 
    75 
    76 @REM SECOND TEST PART2 POSTTEST CLEANUP
    77 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333_txt.tmp rename %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333_txt.tmp 10033333.txt
    78 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033335_txt.tmp rename %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033335_txt.tmp 10033335.txt
    79 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033339_txt.tmp rename %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033339_txt.tmp 10033339.txt
    80 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033336.txt rename %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033336.txt 10033333_005.txt
    81 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033336_txt.tmp rename %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033336_txt.tmp 10033336.txt
    82 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\resource\versions\sw.txt erase %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\resource\versions\sw.txt
    83 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\resource\versions\sw_txt.tmp rename %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\resource\versions\sw_txt.tmp sw.txt
    84 
    85 
    86 @REM ####################################################
    87 @REM SYSLIB-CENTRALREPOSITORY-CT-4021
    88 @REM Modify a repository, then update the rom repository. remove the resource\versions directory so a merge shouldnt happen.
    89 @REM Change the attributes of rom version file to rw
    90 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\resource\versions\sw.txt attrib -r %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\resource\versions\sw.txt
    91 @REM #####################################################
    92 @rem THIRD TEST PART1
    93 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt copy %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10043333.txt
    94 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt copy %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10043334.txt
    95 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt copy %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10043335.txt
    96 
    97 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\t_cenrep_fota_tvem1.exe call %EPOCROOT%EPOC32\RELEASE\%1\%2\t_cenrep_fota_tvem1.exe
    98 
    99 @REM THIRD PRETEST SETUP PART2
   100 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt copy %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333_extra.txt %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10043333.txt
   101 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333_corrupt.txt copy %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333_corrupt.txt %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10043334.txt
   102 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt copy %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333_extra.txt %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10043335.txt
   103 
   104 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt rename %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt 10033333_txt.tmp
   105 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333_extra.txt copy %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333_extra.txt %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt
   106 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\resource\versions rename %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\resource\versions versions1
   107 @REM THIRD TEST PART2
   108 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\t_cenrep_fota_tvem3.exe call %EPOCROOT%EPOC32\RELEASE\%1\%2\t_cenrep_fota_tvem3.exe
   109 
   110 @REM THIRD POSTTEST CLEANUP
   111 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt erase %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt
   112 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333_txt.tmp rename %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333_txt.tmp 10033333.txt
   113 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\resource\versions1 rename %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\resource\versions1 versions
   114 
   115 
   116 @REM ####################################################
   117 @REM SYSLIB-CENTRALREPOSITORY-CT-4022
   118 @REM Modify a repository, then update the rom repository. Place a corrupt rominfo_cache.txt file for comparison.
   119 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\resource\versions\sw.txt attrib -r %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\resource\versions\sw.txt
   120 @REM #####################################################
   121 @rem FOURTH TEST PART1
   122 @REM if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt copy %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10043333.txt
   123 @REM if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt copy %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10043334.txt
   124 @REM if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt copy %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10043335.txt
   125 @REM if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\t_cenrep_fota_tvem1.exe call %EPOCROOT%EPOC32\RELEASE\%1\%2\t_cenrep_fota_tvem1.exe
   126 
   127 @REM FOURTH PRETEST SETUP PART2
   128 @REM if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt copy %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333_extra.txt %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10043333.txt
   129 @REM if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333_corrupt.txt copy %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333_corrupt.txt %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10043334.txt
   130 @REM if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt copy %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333_extra.txt %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10043335.txt
   131 
   132 @REM if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt rename %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt 10033333_txt.tmp
   133 @REM if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333_extra.txt copy %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333_extra.txt %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt
   134 @REM if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\sw_corrupt.txt copy %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\sw_corrupt.txt %EPOCROOT%EPOC32\winscw\c\private\10202be9\romversion\romversion_info.txt
   135 @REM FOURTH TEST PART2
   136 @REM if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\t_cenrep_fota_tvem3.exe call %EPOCROOT%EPOC32\RELEASE\%1\%2\t_cenrep_fota_tvem3.exe
   137 
   138 @REM FOURTH POSTTEST CLEANUP
   139 @REM if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt erase %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt
   140 @REM if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333_txt.tmp rename %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333_txt.tmp 10033333.txt
   141 @REM if exist %EPOCROOT%EPOC32\winscw\c\private\10202be9\romversion\romversion_info.txt erase %EPOCROOT%EPOC32\winscw\c\private\10202be9\romversion\romversion_info.txt
   142 
   143 @REM ####################################################
   144 @REM SYSLIB-CENTRALREPOSITORY -CT-4020
   145 @REM Modify a repository, then update the rom repository. remove the sw.txt file so a merge shouldnt happen.
   146 @REM Change the attributes of rom version file to rw
   147 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\resource\versions\sw.txt attrib -r %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\resource\versions\sw.txt
   148 @REM #####################################################
   149 @rem FIFTH TEST PART1
   150 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt copy %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10043333.txt
   151 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt copy %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10043334.txt
   152 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt copy %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10043335.txt
   153 
   154 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\t_cenrep_fota_tvem1.exe call %EPOCROOT%EPOC32\RELEASE\%1\%2\t_cenrep_fota_tvem1.exe
   155 
   156 @REM FIFTH PRETEST SETUP PART2
   157 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt copy %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333_extra.txt %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10043333.txt
   158 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333_corrupt.txt copy %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333_corrupt.txt %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10043334.txt
   159 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt copy %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333_extra.txt %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10043335.txt
   160 
   161 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt rename %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt 10033333_txt.tmp
   162 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333_extra.txt copy %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333_extra.txt %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt
   163 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\resource\versions\sw.txt rename %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\resource\versions\sw.txt sw_txt 
   164 @REM THIRD TEST PART2
   165 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\t_cenrep_fota_tvem3.exe call %EPOCROOT%EPOC32\RELEASE\%1\%2\t_cenrep_fota_tvem3.exe
   166 
   167 @REM FIFTH POSTTEST CLEANUP
   168 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt erase %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt
   169 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333_txt.tmp rename %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333_txt.tmp 10033333.txt
   170 @if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\resource\versions\sw_txt rename %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\resource\versions\sw_txt sw.txt
   171 GOTO EOF
   172 
   173 :ERROR 
   174 @echo "Needs to be run in techview mode and command line args winscw udeb|urel"
   175 
   176 :EOF
   177