cmmanager/connection_settings_shim/tsrc/ut/tools/cmmgrshim_ctc.bat
changeset 20 9c97ad6591ae
equal deleted inserted replaced
18:fcbbe021d614 20:9c97ad6591ae
       
     1 ::
       
     2 :: Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3 :: All rights reserved.
       
     4 :: This component and the accompanying materials are made available
       
     5 :: under the terms of "Eclipse Public License v1.0"
       
     6 :: which accompanies this distribution, and is available
       
     7 :: at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 ::
       
     9 :: Initial Contributors:
       
    10 :: Nokia Corporation - initial contribution.
       
    11 ::
       
    12 :: Contributors:
       
    13 ::
       
    14 :: Description:
       
    15 :: Script for running Connection Settings Shim test cases with CTC analysis.
       
    16 
       
    17 @echo off
       
    18 
       
    19 ::-----------------------------------------------------------------------------
       
    20 :: Set the local variables
       
    21 ::-----------------------------------------------------------------------------
       
    22 
       
    23 :: Connection Settings Shim base directory
       
    24 set cmmgrshim_dir=..\..\..
       
    25 pushd %cmmgrshim_dir%
       
    26 
       
    27 :: CTC instrumentation excludes
       
    28 set ctc_excludes=-C EXCLUDE=* -C NO_EXCLUDE=src\*.cpp
       
    29 
       
    30 ::-----------------------------------------------------------------------------
       
    31 :: Remove old coverage data
       
    32 ::-----------------------------------------------------------------------------
       
    33 
       
    34 echo Cleaning up...
       
    35 del MON.* ctcerr.txt profile.txt
       
    36 rd /s /q CTCHTML
       
    37 echo ...done
       
    38 
       
    39 ::-----------------------------------------------------------------------------
       
    40 :: Build & instrument code
       
    41 ::-----------------------------------------------------------------------------
       
    42 
       
    43 echo Building code and instrumenting..
       
    44 call del MON.* ctcerr.txt profile.txt
       
    45 call make distclean
       
    46 call qmake
       
    47 call ctcwrap -i d -2comp %ctc_excludes% sbs -c winscw_udeb
       
    48 echo ...done
       
    49 
       
    50 ::-----------------------------------------------------------------------------
       
    51 :: Build test code
       
    52 ::-----------------------------------------------------------------------------
       
    53 
       
    54 echo Building test code...
       
    55 call cd tsrc\ut
       
    56 call make distclean
       
    57 call qmake
       
    58 call sbs -c winscw_udeb
       
    59 echo ...done
       
    60 
       
    61 ::-----------------------------------------------------------------------------
       
    62 :: Execute the tests
       
    63 ::-----------------------------------------------------------------------------
       
    64 
       
    65 echo Running tests..
       
    66 cd ..\..
       
    67 call \epoc32\release\winscw\udeb\testcmmgrshim.exe
       
    68 echo ...done
       
    69 
       
    70 ::-----------------------------------------------------------------------------
       
    71 :: Create coverage results
       
    72 ::-----------------------------------------------------------------------------
       
    73 
       
    74 echo Creating results...
       
    75 call ctcpost -p profile.txt
       
    76 call ctc2html -i profile.txt
       
    77 echo ...done
       
    78 
       
    79 popd