equal
deleted
inserted
replaced
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 :: |