|
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 OFF |
|
17 REM INT_DefaultValueTest |
|
18 REM testcase INT_DefaultValueTest - Install sis and update a corrupt DB. This is a positive testcase |
|
19 |
|
20 if not exist .\cdrive mkdir .\cdrive > NUL |
|
21 if not exist .\romdrive mkdir .\romdrive > NUL |
|
22 |
|
23 REM xcopy /E /Y backup\cdrive cdrive > NUL |
|
24 REM xcopy /E /Y backup\romdrive romdrive > NUL |
|
25 |
|
26 |
|
27 REM Remove installation files from any previous tests |
|
28 if exist .\cdrive\Documents\InstTest\devlangsup*.txt del .\cdrive\Documents\InstTest\devlangsup*.txt > NUL |
|
29 |
|
30 if exist .\romdrive\sys\install\scr\provisioned\scr.db del .\romdrive\sys\install\scr\provisioned\scr.db > NUL |
|
31 if not exist .\romdrive\sys\install\scr\provisioned mkdir .\romdrive\sys\install\scr\provisioned > NUL |
|
32 copy \epoc32\release\winscw\udeb\z\tusif\tscr\data\scr-nodefaultvalues.db .\romdrive\sys\install\scr\provisioned\scr.db /Y > NUL |
|
33 |
|
34 if exist .\cdrive\sys\install\scr\scr.db del .\cdrive\sys\install\scr\scr.db > NUL |
|
35 if not exist .\cdrive\sys\install\scr mkdir .\cdrive\sys\install\scr > NUL |
|
36 copy \epoc32\release\winscw\udeb\z\tusif\tscr\data\scr-nodefaultvalues.db .\cdrive\sys\install\scr\scr.db /Y > NUL |
|
37 |
|
38 call interpretsis -z .\romdrive -c .\cdrive -s /epoc32/winscw/c/tswi/tsis/data/interpretsis_testcase.sis -w info -I /epoc32/winscw/c/tswi/tinterpretsisinteg/testcase-interpretsis-01/argumentfile.ini -l /epoc32/winscw/c/interpretsis_test_harness_db.txt > NUL |
|
39 |
|
40 copy .\romdrive\sys\install\scr\provisioned\scr.db \epoc32\winscw\c\sys\install\scr\scr.db /Y > NUL |
|
41 |
|
42 IF NOT EXIST .\backup\cdrive mkdir .\backup\cdrive > NUL |
|
43 IF NOT EXIST .\backup\romdrive mkdir .\backup\romdrive > NUL |
|
44 xcopy /E /Y cdrive backup\cdrive > NUL |
|
45 xcopy /E /Y romdrive backup\romdrive > NUL |
|
46 |
|
47 IF NOT %errorlevel%==0 GOTO LAST |
|
48 ECHO ***ERRORCODE*** %errorlevel% PASS>>/epoc32/winscw/c/interpretsis_test_harness_db.txt |
|
49 GOTO END |
|
50 :LAST |
|
51 ECHO ***ERRORCODE*** %errorlevel% FAIL>>/epoc32/winscw/c/interpretsis_test_harness_db.txt |
|
52 :END |