secureswitools/swisistools/test/tinterpretsisinteg/int_nr_option-33.bat
changeset 24 84a16765cd86
child 25 98b66e4fb0be
equal deleted inserted replaced
6:aba6b8104af3 24:84a16765cd86
       
     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_33
       
    18 REM int_nr_option_33 -  SA(NR) over Rom Stub. This is a positive testcase. Expected result : SIS file is 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 copy \epoc32\winscw\c\tswi\tinterpretsisinteg\data\int_nr_option_01_stub.sis .\romdrive\system\install\int_nr_option_01_stub.sis /Y > NUL
       
    32 
       
    33 REM Remove installation files from any previous tests
       
    34 if exist  \epoc32\winscw\c\Documents\abc*.txt  del \epoc32\winscw\c\Documents\abc*.txt  > NUL
       
    35 if exist \epoc32\winscw\c\sys\install\sisregistry\80000086\*.reg del \epoc32\winscw\c\sys\install\sisregistry\80000086\*.reg > NUL
       
    36 if exist \epoc32\winscw\c\sys\install\sisregistry\80000086\*.ctl del \epoc32\winscw\c\sys\install\sisregistry\80000086\*.ctl > NUL
       
    37 
       
    38 call interpretsis -z .\romdrive -c .\cdrive  -s \epoc32\winscw\c\tswi\tsis\data\int_nr_option_03.sis +nonremovablepkg -w info -l /epoc32/winscw/c/interpretsis_test_harness.txt > NUL
       
    39 
       
    40 if not %errorlevel%==0 GOTO LAST
       
    41 if not exist \epoc32\winscw\c\Documents mkdir \epoc32\winscw\c\Documents
       
    42 call xcopy .\cdrive\sys\install\sisregistry \epoc32\winscw\c\sys\install\sisregistry /S /Y > NUL
       
    43 call xcopy .\cdrive\Documents \epoc32\winscw\c\Documents /S /Y > NUL
       
    44 if exist \epoc32\winscw\c\sys\install\sisregistry\backup.lst del \epoc32\winscw\c\sys\install\sisregistry\backup.lst > NUL
       
    45 if exist .\romdrive\system\install\int_nr_option_01_stub.sis del .\romdrive\system\install\int_nr_option_01_stub.sis > NUL
       
    46 
       
    47 ECHO ***ERRORCODE*** %errorlevel% PASS>>/epoc32/winscw/c/interpretsis_test_harness.txt
       
    48 GOTO END
       
    49 :LAST
       
    50 ECHO ***ERRORCODE*** %errorlevel% FAIL>>/epoc32/winscw/c/interpretsis_test_harness.txt
       
    51 :END