sl@0
|
1 |
@rem
|
sl@0
|
2 |
@rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
3 |
@rem All rights reserved.
|
sl@0
|
4 |
@rem This component and the accompanying materials are made available
|
sl@0
|
5 |
@rem under the terms of "Eclipse Public License v1.0"
|
sl@0
|
6 |
@rem which accompanies this distribution, and is available
|
sl@0
|
7 |
@rem at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
8 |
@rem
|
sl@0
|
9 |
@rem Initial Contributors:
|
sl@0
|
10 |
@rem Nokia Corporation - initial contribution.
|
sl@0
|
11 |
@rem
|
sl@0
|
12 |
@rem Contributors:
|
sl@0
|
13 |
@rem
|
sl@0
|
14 |
@rem Description:
|
sl@0
|
15 |
@rem
|
sl@0
|
16 |
|
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 |
@if exist \textshell.bat call \textshell.bat
|
sl@0
|
22 |
@FIND "startupmode 1" %EPOCROOT%EPOC32\data\epoc.ini >NUL
|
sl@0
|
23 |
@if errorlevel 1 goto BODY
|
sl@0
|
24 |
goto ERROR
|
sl@0
|
25 |
|
sl@0
|
26 |
:BODY
|
sl@0
|
27 |
@REM Change the attributes of rom version file to rw
|
sl@0
|
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
|
sl@0
|
29 |
@REM #####################################################
|
sl@0
|
30 |
@rem FIRST TEST PART1 SYSLIB-CENTRALREPOSITORY-CT-4006 AND SYSLIB-CENTRALREPOSITORY-CT-4023
|
sl@0
|
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
|
sl@0
|
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
|
sl@0
|
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
|
sl@0
|
34 |
@if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\t_cenrep_fota_tvem1.exe call %EPOCROOT%EPOC32\RELEASE\%1\%2\t_cenrep_fota_tvem1.exe
|
sl@0
|
35 |
|
sl@0
|
36 |
@REM FIRST PRETEST SETUP PART2
|
sl@0
|
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
|
sl@0
|
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
|
sl@0
|
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
|
sl@0
|
40 |
|
sl@0
|
41 |
|
sl@0
|
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
|
sl@0
|
43 |
@if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt erase %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt
|
sl@0
|
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
|
sl@0
|
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
|
sl@0
|
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
|
sl@0
|
47 |
|
sl@0
|
48 |
|
sl@0
|
49 |
@REM FIRST TEST PART2
|
sl@0
|
50 |
@if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\t_cenrep_fota_tvem2.exe call %EPOCROOT%EPOC32\RELEASE\%1\%2\t_cenrep_fota_tvem2.exe
|
sl@0
|
51 |
|
sl@0
|
52 |
@REM FIRST POSTTEST CLEANUP
|
sl@0
|
53 |
@if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt erase %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt
|
sl@0
|
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
|
sl@0
|
55 |
@if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\resource\versions\sw.txt erase %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\resource\versions\sw.txt
|
sl@0
|
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
|
sl@0
|
57 |
|
sl@0
|
58 |
|
sl@0
|
59 |
@REM ####################################################
|
sl@0
|
60 |
@REM SECOND TEST PART1 SYSLIB-CENTRALREPOSITORY -CT-4007-10
|
sl@0
|
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
|
sl@0
|
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
|
sl@0
|
63 |
|
sl@0
|
64 |
@REM SECOND TEST PART2 SETUP - Remove repository from rom
|
sl@0
|
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
|
sl@0
|
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
|
sl@0
|
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
|
sl@0
|
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
|
sl@0
|
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
|
sl@0
|
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
|
sl@0
|
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
|
sl@0
|
72 |
|
sl@0
|
73 |
@REM SECOND TEST - Restart cenrep and the persists repository should have been removed.
|
sl@0
|
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
|
sl@0
|
75 |
|
sl@0
|
76 |
@REM SECOND TEST PART2 POSTTEST CLEANUP
|
sl@0
|
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
|
sl@0
|
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
|
sl@0
|
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
|
sl@0
|
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
|
sl@0
|
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
|
sl@0
|
82 |
@if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\resource\versions\sw.txt erase %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\resource\versions\sw.txt
|
sl@0
|
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
|
sl@0
|
84 |
|
sl@0
|
85 |
|
sl@0
|
86 |
@REM ####################################################
|
sl@0
|
87 |
@REM SYSLIB-CENTRALREPOSITORY-CT-4021
|
sl@0
|
88 |
@REM Modify a repository, then update the rom repository. remove the resource\versions directory so a merge shouldnt happen.
|
sl@0
|
89 |
@REM Change the attributes of rom version file to rw
|
sl@0
|
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
|
sl@0
|
91 |
@REM #####################################################
|
sl@0
|
92 |
@rem THIRD TEST PART1
|
sl@0
|
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
|
sl@0
|
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
|
sl@0
|
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
|
sl@0
|
96 |
|
sl@0
|
97 |
@if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\t_cenrep_fota_tvem1.exe call %EPOCROOT%EPOC32\RELEASE\%1\%2\t_cenrep_fota_tvem1.exe
|
sl@0
|
98 |
|
sl@0
|
99 |
@REM THIRD PRETEST SETUP PART2
|
sl@0
|
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
|
sl@0
|
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
|
sl@0
|
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
|
sl@0
|
103 |
|
sl@0
|
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
|
sl@0
|
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
|
sl@0
|
106 |
@if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\resource\versions rename %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\resource\versions versions1
|
sl@0
|
107 |
@REM THIRD TEST PART2
|
sl@0
|
108 |
@if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\t_cenrep_fota_tvem3.exe call %EPOCROOT%EPOC32\RELEASE\%1\%2\t_cenrep_fota_tvem3.exe
|
sl@0
|
109 |
|
sl@0
|
110 |
@REM THIRD POSTTEST CLEANUP
|
sl@0
|
111 |
@if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt erase %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt
|
sl@0
|
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
|
sl@0
|
113 |
@if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\resource\versions1 rename %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\resource\versions1 versions
|
sl@0
|
114 |
|
sl@0
|
115 |
|
sl@0
|
116 |
@REM ####################################################
|
sl@0
|
117 |
@REM SYSLIB-CENTRALREPOSITORY-CT-4022
|
sl@0
|
118 |
@REM Modify a repository, then update the rom repository. Place a corrupt rominfo_cache.txt file for comparison.
|
sl@0
|
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
|
sl@0
|
120 |
@REM #####################################################
|
sl@0
|
121 |
@rem FOURTH TEST PART1
|
sl@0
|
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
|
sl@0
|
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
|
sl@0
|
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
|
sl@0
|
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
|
sl@0
|
126 |
|
sl@0
|
127 |
@REM FOURTH PRETEST SETUP PART2
|
sl@0
|
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
|
sl@0
|
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
|
sl@0
|
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
|
sl@0
|
131 |
|
sl@0
|
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
|
sl@0
|
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
|
sl@0
|
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
|
sl@0
|
135 |
@REM FOURTH TEST PART2
|
sl@0
|
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
|
sl@0
|
137 |
|
sl@0
|
138 |
@REM FOURTH POSTTEST CLEANUP
|
sl@0
|
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
|
sl@0
|
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
|
sl@0
|
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
|
sl@0
|
142 |
|
sl@0
|
143 |
@REM ####################################################
|
sl@0
|
144 |
@REM SYSLIB-CENTRALREPOSITORY -CT-4020
|
sl@0
|
145 |
@REM Modify a repository, then update the rom repository. remove the sw.txt file so a merge shouldnt happen.
|
sl@0
|
146 |
@REM Change the attributes of rom version file to rw
|
sl@0
|
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
|
sl@0
|
148 |
@REM #####################################################
|
sl@0
|
149 |
@rem FIFTH TEST PART1
|
sl@0
|
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
|
sl@0
|
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
|
sl@0
|
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
|
sl@0
|
153 |
|
sl@0
|
154 |
@if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\t_cenrep_fota_tvem1.exe call %EPOCROOT%EPOC32\RELEASE\%1\%2\t_cenrep_fota_tvem1.exe
|
sl@0
|
155 |
|
sl@0
|
156 |
@REM FIFTH PRETEST SETUP PART2
|
sl@0
|
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
|
sl@0
|
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
|
sl@0
|
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
|
sl@0
|
160 |
|
sl@0
|
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
|
sl@0
|
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
|
sl@0
|
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
|
sl@0
|
164 |
@REM THIRD TEST PART2
|
sl@0
|
165 |
@if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\t_cenrep_fota_tvem3.exe call %EPOCROOT%EPOC32\RELEASE\%1\%2\t_cenrep_fota_tvem3.exe
|
sl@0
|
166 |
|
sl@0
|
167 |
@REM FIFTH POSTTEST CLEANUP
|
sl@0
|
168 |
@if exist %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt erase %EPOCROOT%EPOC32\RELEASE\%1\%2\Z\private\10202be9\10033333.txt
|
sl@0
|
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
|
sl@0
|
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
|
sl@0
|
171 |
GOTO EOF
|
sl@0
|
172 |
|
sl@0
|
173 |
:ERROR
|
sl@0
|
174 |
@echo "Needs to be run in techview mode and command line args winscw udeb|urel"
|
sl@0
|
175 |
|
sl@0
|
176 |
:EOF
|
sl@0
|
177 |
|