secureswitools/swisistools/test/tinterpretsisinteg/api-inst-testcase-interpretsis-02_db.bat
branchRCL_3
changeset 26 8b7f4e561641
parent 25 7333d7932ef7
child 27 e8965914fac7
equal deleted inserted replaced
25:7333d7932ef7 26:8b7f4e561641
     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 testcase-interpretsis-02
       
    18 REM testcase testcase-interpretsis-02 - Install sis. Add an applications registration info with same app file name. This is a negative testcase 
       
    19 
       
    20 if not exist .\cdrive mkdir .\cdrive > NUL
       
    21 if not exist .\romdrive mkdir .\romdrive > NUL
       
    22 
       
    23 xcopy /E /Y backup\cdrive cdrive > NUL
       
    24 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 
       
    31 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
       
    32 call interpretsis -z .\romdrive -c .\cdrive  -s /epoc32/winscw/c/tswi/tsis/data/interpretsis_testcase_05.sis -w info -I /epoc32/winscw/c/tswi/tinterpretsisinteg/testcase-interpretsis-01/argumentfile_05.ini  -l /epoc32/winscw/c/interpretsis_test_harness_db.txt > NUL
       
    33 
       
    34 copy .\romdrive\sys\install\scr\provisioned\scr.db \epoc32\winscw\c\sys\install\scr\scr.db /Y > NUL
       
    35 
       
    36 IF NOT EXIST .\backup\cdrive mkdir .\backup\cdrive > NUL
       
    37 IF NOT EXIST .\backup\romdrive mkdir .\backup\romdrive > NUL
       
    38 xcopy /E /Y cdrive backup\cdrive > NUL
       
    39 xcopy /E /Y romdrive backup\romdrive > NUL
       
    40 
       
    41 IF NOT %errorlevel%==0 GOTO LAST
       
    42 ECHO ***ERRORCODE*** %errorlevel% PASS>>/epoc32/winscw/c/interpretsis_test_harness_db.txt
       
    43 GOTO END
       
    44 :LAST
       
    45 ECHO ***ERRORCODE*** %errorlevel% FAIL>>/epoc32/winscw/c/interpretsis_test_harness_db.txt
       
    46 :END