tsrc/unittestrunner/qt_runtests.cmd
changeset 22 496ad160a278
equal deleted inserted replaced
15:ccd8e69b5392 22:496ad160a278
       
     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 @echo on
       
    18 
       
    19 call del MON.sym
       
    20 call del MON.dat
       
    21 
       
    22 call qmake -platform symbian-abld
       
    23 call sbs -c winscw_udeb reallyclean
       
    24 
       
    25 echo -- Build sbs -c winscw_udeb--
       
    26 call sbs -c winscw_udeb
       
    27 
       
    28 echo -- Build and instrument for Code coverage --
       
    29 echo -- ctcwrap -i f : This instruments the code for function coverage measurement 
       
    30 call ctcwrap -i d -C "EXCLUDE+*/tsrc/*" -C "EXCLUDE+*/*/tsrc/*" -C "EXCLUDE+*/*/*/tsrc/*" -C "EXCLUDE+moc_*" sbs -c winscw_udeb
       
    31 
       
    32 echo --qt_runall.cmd
       
    33 call qt_runall.cmd
       
    34 
       
    35 echo --ctcpost MON.sym MON.dat -p profile.txt
       
    36 call ctcpost MON.sym MON.dat -p profile.txt
       
    37 
       
    38 echo --you can give the output directory for the result
       
    39 echo --e.q qt_runtests.cmd R:\qtresult
       
    40 echo --ctc2html -i profile.txt -o %1
       
    41 
       
    42 IF ["%1"] EQU [""] GOTO :USEDEFDIR
       
    43 
       
    44 call ctc2html -i profile.txt -o %1
       
    45 GOTO :ENDDIR
       
    46 
       
    47 :USEDEFDIR
       
    48 echo --default output directory used
       
    49 call ctc2html -i profile.txt
       
    50 
       
    51 :ENDDIR
       
    52 echo -- Coverage calculated --
       
    53 
       
    54 :END
       
    55 echo -- Build Complete --
       
    56 
       
    57