secureswitools/swisistools/test/tinterpretsisinteg/int_nr_option-03.bat
branchRCL_3
changeset 19 7ca52d38f8c3
child 25 98b66e4fb0be
equal deleted inserted replaced
18:3ba40be8e484 19:7ca52d38f8c3
       
     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 the License "Eclipse Public License v1.0"
       
     6 @rem which accompanies this distribution, and is available
       
     7 @rem at the URL "http://www.eclipse.org/legal/sfl-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_nr_option_03
       
    18 REM int_nr_option_03 - Install a SIS file (SA) without NR CLI option set. then install PU for the same SIS file with NR CLI option set. This is a positive testcase. Expected Result : SIS files (SA and PU) are Installed.
       
    19 
       
    20 IF NOT EXIST .\backup\cdrive mkdir .\backup\cdrive > NUL
       
    21 IF NOT EXIST .\backup\romdrive mkdir .\backup\romdrive > NUL
       
    22 if not exist .\cdrive mkdir .\cdrive > NUL
       
    23 if not exist .\cdrive\Documents mkdir .\cdrive\Documents > NUL
       
    24 if not exist .\romdrive mkdir .\romdrive > NUL
       
    25 if not exist .\romdrive\system\ mkdir .\romdrive\system\ > NUL
       
    26 if not exist .\romdrive\system\install\ mkdir .\romdrive\system\install\ > NUL
       
    27 
       
    28 xcopy /E /Y backup\cdrive cdrive > NUL
       
    29 xcopy /E /Y backup\romdrive romdrive > NUL
       
    30 
       
    31 REM Remove installation files from any previous tests
       
    32 if exist  \epoc32\winscw\c\Documents\abc*.txt  del \epoc32\winscw\c\Documents\abc*.txt  > NUL
       
    33 if exist \epoc32\winscw\c\sys\install\sisregistry\80000086\*.reg del \epoc32\winscw\c\sys\install\sisregistry\80000086\*.reg > NUL
       
    34 if exist \epoc32\winscw\c\sys\install\sisregistry\80000086\*.ctl del \epoc32\winscw\c\sys\install\sisregistry\80000086\*.ctl > NUL
       
    35 
       
    36 call interpretsis -z .\romdrive -c .\cdrive  -s \epoc32\winscw\c\tswi\tsis\data\int_nr_option_01.sis -w info -l /epoc32/winscw/c/interpretsis_test_harness.txt > NUL
       
    37 call interpretsis -z .\romdrive -c .\cdrive  -s \epoc32\winscw\c\tswi\tsis\data\pu_int_nr_option_01.sis +nonremovablepkg -w info -l /epoc32/winscw/c/interpretsis_test_harness.txt > NUL
       
    38 
       
    39 if not %errorlevel%==0 GOTO LAST
       
    40 if not exist \epoc32\winscw\c\Documents mkdir \epoc32\winscw\c\Documents
       
    41 call xcopy .\cdrive\sys\install\sisregistry \epoc32\winscw\c\sys\install\sisregistry /S /Y > NUL
       
    42 call xcopy .\cdrive\Documents \epoc32\winscw\c\Documents /S /Y > NUL
       
    43 if exist \epoc32\winscw\c\sys\install\sisregistry\backup.lst del \epoc32\winscw\c\sys\install\sisregistry\backup.lst > NUL
       
    44 
       
    45 ECHO ***ERRORCODE*** %errorlevel% PASS>>/epoc32/winscw/c/interpretsis_test_harness.txt
       
    46 GOTO END
       
    47 :LAST
       
    48 ECHO ***ERRORCODE*** %errorlevel% FAIL>>/epoc32/winscw/c/interpretsis_test_harness.txt
       
    49 :END