phoneengine/loghandling/tsrc/run_auto_tests.bat
changeset 76 cfea66083b62
parent 37 ba76fc04e6c2
equal deleted inserted replaced
74:d1c62c765e48 76:cfea66083b62
    30 ::    "for /f %%a in ('dir /b ut_*') do call :build %%a"
    30 ::    "for /f %%a in ('dir /b ut_*') do call :build %%a"
    31 ::    which compiles, instruments and runs all test directories
    31 ::    which compiles, instruments and runs all test directories
    32 ::    starting with "ut_".
    32 ::    starting with "ut_".
    33 ::::::::::::::::::::::::::::::::::::::::::::::::::::::
    33 ::::::::::::::::::::::::::::::::::::::::::::::::::::::
    34 :DEFAULT
    34 :DEFAULT
    35 set TESTED_SRC=..\..\..\..\src\*
    35 set TESTED_SRC=..\..\..\src\*
    36 
    36 
    37 for /f %%a in ('dir /b ut_*') do call :build %%a
    37 for /f %%a in ('dir /b ut_*') do call :build %%a
    38 if [%DOMODULESTESTS%] EQU [TRUE] (
    38 if [%DOMODULESTESTS%] EQU [TRUE] (
    39 for /f %%a in ('dir /b mt_*') do call :build %%a
    39 for /f %%a in ('dir /b mt_*') do call :build %%a
    40 )
    40 )
   147 
   147 
   148 pushd .
   148 pushd .
   149 call cd %1\group
   149 call cd %1\group
   150 call sbs --config winscw_udeb.test --keepgoing CLEAN
   150 call sbs --config winscw_udeb.test --keepgoing CLEAN
   151 if [%INSTRUMENT%] EQU [TRUE] (
   151 if [%INSTRUMENT%] EQU [TRUE] (
   152 call ctcwrap -2comp -n %PATH_TO_COVERAGE_DATA%\%1 -i m -C "EXCLUDE=*" -C "NO_EXCLUDE=%TESTED_SRC%" "%SBS_CALL%"
   152 call ctcwrap -n %PATH_TO_COVERAGE_DATA%\%1 -i d -C "EXCLUDE=*" -C "NO_EXCLUDE=%TESTED_SRC%" "%SBS_CALL%"
   153 ) else (
   153 ) else (
   154 call %SBS_CALL%
   154 call %SBS_CALL%
   155 )
   155 )
   156 
   156 
   157 popd
   157 popd
   187 ::
   187 ::
   188 :: Calculates test coverage. Generates html
   188 :: Calculates test coverage. Generates html
   189 ::::::::::::::::::::::::::::::::::::::::::::::::::::::
   189 ::::::::::::::::::::::::::::::::::::::::::::::::::::::
   190 :CALCULATECOVERAGE
   190 :CALCULATECOVERAGE
   191 echo Calculating coverage
   191 echo Calculating coverage
   192 ctcpost %PATH_TO_COVERAGE_DATA%\*.sym | ctcmerge -i - -o profile.txt
   192 ctcpost %PATH_TO_COVERAGE_DATA%\*.sym -p - | ctcmerge -i - -o profile.txt
   193 call ctc2html -i profile.txt -o \coverage_result -nsb
   193 call ctc2html -t 70 -i  profile.txt -o \coverage_result -nsb
   194 goto end
   194 goto end
   195 
   195 
   196 ::::::::::::::::::::::::::::::::::::::::::::::::::::::
   196 ::::::::::::::::::::::::::::::::::::::::::::::::::::::
   197 :: function REMOVETESTS
   197 :: function REMOVETESTS
   198 ::
   198 ::