javaextensions/wma/mms/tsrc/exhaustivetests/runTests.bat
branchRCL_3
changeset 14 04becd199f91
equal deleted inserted replaced
13:f5050f1da672 14:04becd199f91
       
     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 set start_path=%CD%
       
    18 
       
    19 rem ******************* Compilation and installation of the tests ************************************************************************
       
    20 call ant 
       
    21 
       
    22 rem IF THE INSTALLATION OF MIDLETS FROM COMMAND LINE WORKS THEN:
       
    23 rem    . UNCOMMENT LINE NO. 12
       
    24 rem    . COMMENT OUT LINES NO.14, 15, 16
       
    25 rem call ant install
       
    26 
       
    27 rem THIS IS A WORKAROUND FOR THE MIDLET NOT BEING INSTALLED FROM COMMAND LINE
       
    28 echo Install the MIDlet, exit the emulator and
       
    29 pause
       
    30 
       
    31 rem ********************* TEST PREPARATIONS: configure MMSEngine for the auto-receiving of some MMSs **************************************
       
    32 copy .\data\localmode.ini \epoc32\WINSCW\C\system\data\
       
    33 cd \epoc32\WINSCW\C\Data\Images\
       
    34 mkdir wma20
       
    35 mkdir mmstest
       
    36 cd %start_path%
       
    37 unzip .\data\MMSs.zip -d \epoc32\WINSCW\C\Data\Images\wma20\
       
    38 ren \epoc32\release\winscw\udeb\Z\resource\java\security\policies\untrusted.ser untrusted.ser_
       
    39 copy .\data\untrusted.ser \epoc32\release\winscw\udeb\Z\resource\java\security\policies
       
    40 
       
    41 rem IF RUNNING OF MIDLETS FROM COMMAND LINE WORKS THEN:
       
    42 rem    . UNCOMMENT LINE NO.31
       
    43 rem    . COMMENT OUT LINES NO.33, 34, 35
       
    44 rem call ant run
       
    45 
       
    46 rem THIS IS A WORKAROUND FOR NOT BEING ABLE TO RUN THE MIDLET FROM COMMAND LINE
       
    47 echo Run the MIDlet, exit the emulator and
       
    48 pause
       
    49 
       
    50 
       
    51 :cleanup
       
    52 del /Q \epoc32\WINSCW\C\system\data\localmode.ini
       
    53 del /Q \epoc32\WINSCW\C\Data\Images\mmstest\*.*
       
    54 del /Q \epoc32\WINSCW\C\Data\Images\wma20\*.*
       
    55 cd \epoc32\WINSCW\C\Data\Images\
       
    56 rmdir wma20
       
    57 rmdir mmstest
       
    58 del /Q \epoc32\release\winscw\udeb\Z\resource\java\security\policies\untrusted.ser
       
    59 ren \epoc32\release\winscw\udeb\Z\resource\java\security\policies\untrusted.ser_ untrusted.ser
       
    60 cd %start_path%
       
    61 
       
    62 :end