phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/ut_infowidgetnetworkhandler/run_auto_tests_qt.bat
changeset 27 2f8f8080a020
parent 22 6bb1b21d2484
equal deleted inserted replaced
22:6bb1b21d2484 27:2f8f8080a020
    52 set BUILDTESTS=TRUE
    52 set BUILDTESTS=TRUE
    53 set RUNTESTS=TRUE
    53 set RUNTESTS=TRUE
    54 set INSTRUMENT=TRUE
    54 set INSTRUMENT=TRUE
    55 set REMOVEINSTRUMENT=TRUE
    55 set REMOVEINSTRUMENT=TRUE
    56 set DOMODULESTESTS=TRUE
    56 set DOMODULESTESTS=TRUE
    57 set ABLD_CALL=abld build winscw udeb -keepgoing
    57 set ABLD_CALL= -2comp  sbs.bat -c winscw_udeb --keepgoing
    58 set PATH_TO_DLL=\epoc32\release\winscw\udeb
    58 set PATH_TO_DLL=\epoc32\release\winscw\udeb
    59 set PATH_TO_COVERAGE_DATA=\coverage_data
    59 set PATH_TO_COVERAGE_DATA=\coverage_data
       
    60 set PATH_TO_RESULT=\test_result
    60 
    61 
    61 if not exist %PATH_TO_COVERAGE_DATA% (
    62 if not exist %PATH_TO_COVERAGE_DATA% (
    62 mkdir %PATH_TO_COVERAGE_DATA%
    63 mkdir %PATH_TO_COVERAGE_DATA%
       
    64 )
       
    65 
       
    66 if not exist %PATH_TO_RESULT% (
       
    67 mkdir %PATH_TO_RESULT%
    63 )
    68 )
    64 
    69 
    65 if [%1] EQU [] ( goto default )
    70 if [%1] EQU [] ( goto default )
    66 
    71 
    67 call :%1
    72 call :%1
   130 )
   135 )
   131 
   136 
   132 pushd .
   137 pushd .
   133 call cd %1
   138 call cd %1
   134 call qmake
   139 call qmake
   135 call bldmake bldfiles
   140 call sbs -c winscw_udeb clean
   136 call abld clean winscw udeb
       
   137 if [%INSTRUMENT%] EQU [TRUE] (
   141 if [%INSTRUMENT%] EQU [TRUE] (
   138 call ctcwrap -n %PATH_TO_COVERAGE_DATA%\%1 -i d -C "EXCLUDE=*" -C "NO_EXCLUDE=%TESTED_SRC%" %ABLD_CALL%
   142 call ctcwrap -n %PATH_TO_COVERAGE_DATA%\%1 -i d -C "EXCLUDE=*" -C "NO_EXCLUDE=%TESTED_SRC%" %ABLD_CALL%
   139 ) else (
   143 ) else (
   140 call %ABLD_CALL%
   144 call %ABLD_CALL%
   141 )
   145 )
   151 :: NOTE! Function assumes that test binary is named according to test directory.
   155 :: NOTE! Function assumes that test binary is named according to test directory.
   152 ::::::::::::::::::::::::::::::::::::::::::::::::::::::
   156 ::::::::::::::::::::::::::::::::::::::::::::::::::::::
   153 :RUNTESTS
   157 :RUNTESTS
   154 echo Running tests
   158 echo Running tests
   155 call %PATH_TO_DLL%\ut_infowidgetnetworkhandler.exe -dtextshell --
   159 call %PATH_TO_DLL%\ut_infowidgetnetworkhandler.exe -dtextshell --
       
   160 move \epoc32\winscw\c\data\ut_infowidgetnetworkhandler.log %PATH_TO_RESULT%\ut_infowidgetnetworkhandler.log
   156 goto end
   161 goto end
   157 
   162 
   158 ::::::::::::::::::::::::::::::::::::::::::::::::::::::
   163 ::::::::::::::::::::::::::::::::::::::::::::::::::::::
   159 :: function CALCULATECOVERAGE
   164 :: function CALCULATECOVERAGE
   160 ::
   165 ::