os/persistentdata/persistentstorage/centralrepository/test/t_cenrep_runtvflashtests.bat
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/persistentdata/persistentstorage/centralrepository/test/t_cenrep_runtvflashtests.bat Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,177 @@
1.4 +@rem
1.5 +@rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
1.6 +@rem All rights reserved.
1.7 +@rem This component and the accompanying materials are made available
1.8 +@rem under the terms of "Eclipse Public License v1.0"
1.9 +@rem which accompanies this distribution, and is available
1.10 +@rem at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.11 +@rem
1.12 +@rem Initial Contributors:
1.13 +@rem Nokia Corporation - initial contribution.
1.14 +@rem
1.15 +@rem Contributors:
1.16 +@rem
1.17 +@rem Description:
1.18 +@rem
1.19 +
1.20 +@SETLOCAL
1.21 +@rem This batch file will run the tests automatically.
1.22 +@IF "%~1"=="" goto ERROR
1.23 +@IF "%~2"=="" goto ERROR
1.24 +@if exist \textshell.bat call \textshell.bat
1.25 +@FIND "startupmode 1" %EPOCROOT%EPOC32\data\epoc.ini >NUL
1.26 +@if errorlevel 1 goto BODY
1.27 +goto ERROR
1.28 +
1.29 +:BODY
1.30 +@REM Change the attributes of rom version file to rw
1.31 +@if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\resource\versions\sw.txt attrib -r %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\resource\versions\sw.txt
1.32 +@REM #####################################################
1.33 +@rem FIRST TEST PART1 SYSLIB-CENTRALREPOSITORY-CT-4006 AND SYSLIB-CENTRALREPOSITORY-CT-4023
1.34 +@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
1.35 +@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
1.36 +@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
1.37 +@if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\t_cenrep_fota_tvem1.exe call %EPOCROOT%EPOC32\RELEASE\%1\%2\t_cenrep_fota_tvem1.exe
1.38 +
1.39 +@REM FIRST PRETEST SETUP PART2
1.40 +@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
1.41 +@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
1.42 +@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
1.43 +
1.44 +
1.45 +@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
1.46 +@if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt erase %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt
1.47 +@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
1.48 +@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
1.49 +@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
1.50 +
1.51 +
1.52 +@REM FIRST TEST PART2
1.53 +@if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\t_cenrep_fota_tvem2.exe call %EPOCROOT%EPOC32\RELEASE\%1\%2\t_cenrep_fota_tvem2.exe
1.54 +
1.55 +@REM FIRST POSTTEST CLEANUP
1.56 +@if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt erase %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt
1.57 +@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
1.58 +@if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\resource\versions\sw.txt erase %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\resource\versions\sw.txt
1.59 +@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
1.60 +
1.61 +
1.62 +@REM ####################################################
1.63 +@REM SECOND TEST PART1 SYSLIB-CENTRALREPOSITORY -CT-4007-10
1.64 +@if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\resource\versions\sw.txt attrib -r %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\resource\versions\sw.txt
1.65 +@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
1.66 +
1.67 +@REM SECOND TEST PART2 SETUP - Remove repository from rom
1.68 +@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
1.69 +@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
1.70 +@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
1.71 +@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
1.72 +@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
1.73 +@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
1.74 +@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
1.75 +
1.76 +@REM SECOND TEST - Restart cenrep and the persists repository should have been removed.
1.77 +@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
1.78 +
1.79 +@REM SECOND TEST PART2 POSTTEST CLEANUP
1.80 +@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
1.81 +@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
1.82 +@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
1.83 +@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
1.84 +@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
1.85 +@if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\resource\versions\sw.txt erase %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\resource\versions\sw.txt
1.86 +@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
1.87 +
1.88 +
1.89 +@REM ####################################################
1.90 +@REM SYSLIB-CENTRALREPOSITORY-CT-4021
1.91 +@REM Modify a repository, then update the rom repository. remove the resource\versions directory so a merge shouldnt happen.
1.92 +@REM Change the attributes of rom version file to rw
1.93 +@if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\resource\versions\sw.txt attrib -r %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\resource\versions\sw.txt
1.94 +@REM #####################################################
1.95 +@rem THIRD TEST PART1
1.96 +@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
1.97 +@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
1.98 +@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
1.99 +
1.100 +@if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\t_cenrep_fota_tvem1.exe call %EPOCROOT%EPOC32\RELEASE\%1\%2\t_cenrep_fota_tvem1.exe
1.101 +
1.102 +@REM THIRD PRETEST SETUP PART2
1.103 +@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
1.104 +@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
1.105 +@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
1.106 +
1.107 +@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
1.108 +@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
1.109 +@if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\resource\versions rename %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\resource\versions versions1
1.110 +@REM THIRD TEST PART2
1.111 +@if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\t_cenrep_fota_tvem3.exe call %EPOCROOT%EPOC32\RELEASE\%1\%2\t_cenrep_fota_tvem3.exe
1.112 +
1.113 +@REM THIRD POSTTEST CLEANUP
1.114 +@if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt erase %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt
1.115 +@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
1.116 +@if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\resource\versions1 rename %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\resource\versions1 versions
1.117 +
1.118 +
1.119 +@REM ####################################################
1.120 +@REM SYSLIB-CENTRALREPOSITORY-CT-4022
1.121 +@REM Modify a repository, then update the rom repository. Place a corrupt rominfo_cache.txt file for comparison.
1.122 +@if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\resource\versions\sw.txt attrib -r %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\resource\versions\sw.txt
1.123 +@REM #####################################################
1.124 +@rem FOURTH TEST PART1
1.125 +@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
1.126 +@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
1.127 +@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
1.128 +@REM if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\t_cenrep_fota_tvem1.exe call %EPOCROOT%EPOC32\RELEASE\%1\%2\t_cenrep_fota_tvem1.exe
1.129 +
1.130 +@REM FOURTH PRETEST SETUP PART2
1.131 +@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
1.132 +@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
1.133 +@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
1.134 +
1.135 +@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
1.136 +@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
1.137 +@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
1.138 +@REM FOURTH TEST PART2
1.139 +@REM if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\t_cenrep_fota_tvem3.exe call %EPOCROOT%EPOC32\RELEASE\%1\%2\t_cenrep_fota_tvem3.exe
1.140 +
1.141 +@REM FOURTH POSTTEST CLEANUP
1.142 +@REM if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt erase %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt
1.143 +@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
1.144 +@REM if exist %EPOCROOT%EPOC32\winscw\c\private\10202be9\romversion\romversion_info.txt erase %EPOCROOT%EPOC32\winscw\c\private\10202be9\romversion\romversion_info.txt
1.145 +
1.146 +@REM ####################################################
1.147 +@REM SYSLIB-CENTRALREPOSITORY -CT-4020
1.148 +@REM Modify a repository, then update the rom repository. remove the sw.txt file so a merge shouldnt happen.
1.149 +@REM Change the attributes of rom version file to rw
1.150 +@if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\resource\versions\sw.txt attrib -r %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\resource\versions\sw.txt
1.151 +@REM #####################################################
1.152 +@rem FIFTH TEST PART1
1.153 +@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
1.154 +@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
1.155 +@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
1.156 +
1.157 +@if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\t_cenrep_fota_tvem1.exe call %EPOCROOT%EPOC32\RELEASE\%1\%2\t_cenrep_fota_tvem1.exe
1.158 +
1.159 +@REM FIFTH PRETEST SETUP PART2
1.160 +@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
1.161 +@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
1.162 +@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
1.163 +
1.164 +@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
1.165 +@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
1.166 +@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
1.167 +@REM THIRD TEST PART2
1.168 +@if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\t_cenrep_fota_tvem3.exe call %EPOCROOT%EPOC32\RELEASE\%1\%2\t_cenrep_fota_tvem3.exe
1.169 +
1.170 +@REM FIFTH POSTTEST CLEANUP
1.171 +@if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt erase %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt
1.172 +@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
1.173 +@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
1.174 +GOTO EOF
1.175 +
1.176 +:ERROR
1.177 +@echo "Needs to be run in techview mode and command line args winscw udeb|urel"
1.178 +
1.179 +:EOF
1.180 +