telutils/dialpad/tsrc/unit/checkcoverage.cmd
branchRCL_3
changeset 20 987c9837762f
parent 19 7d48bed6ce0c
child 21 0a6dd2dc9970
equal deleted inserted replaced
19:7d48bed6ce0c 20:987c9837762f
     1 @echo off
       
     2 rem
       
     3 rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     4 rem All rights reserved.
       
     5 rem This component and the accompanying materials are made available
       
     6 rem under the terms of "Eclipse Public License v1.0"
       
     7 rem which accompanies this distribution, and is available
       
     8 rem at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     9 rem
       
    10 rem Initial Contributors:
       
    11 rem Nokia Corporation - initial contribution.
       
    12 rem
       
    13 rem Contributors:
       
    14 rem
       
    15 rem Description:
       
    16 rem
       
    17 
       
    18 @echo on
       
    19 :FINAL
       
    20 
       
    21 @echo off
       
    22 
       
    23 rmdir /q /s coverage
       
    24 mkdir coverage
       
    25 cd coverage
       
    26 
       
    27 if "%1"=="mt_dialpad" (
       
    28 echo Instrumenting dialpad.dll
       
    29 call qmake^
       
    30  ..\..\..\dialpad.pro
       
    31 call ctcwrap^
       
    32  mingw32-make debug
       
    33 call qmake^
       
    34  ..\%1\%1.pro
       
    35 call mingw32-make^
       
    36  debug
       
    37 if "%2"=="mt_keyhandler" (
       
    38 call qmake^
       
    39  ..\%2\%2.pro
       
    40 call mingw32-make^
       
    41  debug
       
    42 )
       
    43 call %1.exe
       
    44 call %2.exe
       
    45 ) 
       
    46 
       
    47 if not "%1"=="mt_dialpad" (
       
    48 echo Instrumenting %1
       
    49 call qmake^
       
    50  ..\%1\%1.pro
       
    51 call ctcwrap^
       
    52  mingw32-make debug
       
    53 call %1.exe
       
    54 )
       
    55 
       
    56 call ctcpost^
       
    57  mon.sym mon.dat^
       
    58  -p profile.txt
       
    59 call ctc2html -i profile.txt
       
    60 cd ..
       
    61 echo All done!
       
    62