diff options
author | Christian Fetzer <fetzer.ch@gmail.com> | 2016-07-10 21:41:26 +0200 |
---|---|---|
committer | Christian Fetzer <fetzer.ch@gmail.com> | 2016-07-11 08:05:50 +0200 |
commit | d510c7d4b64cfa184b923d3cd0aa9218a3f5881a (patch) | |
tree | 030852ef84fdc0f4ea77d40689b8fce47623df02 /tools | |
parent | b9eda74afc6f93ef8d962cdc63c68fa5cbcaffeb (diff) |
[buildsteps/linux] Run tests with Code Coverage report generation
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/buildsteps/linux64/run-tests | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/buildsteps/linux64/run-tests b/tools/buildsteps/linux64/run-tests index 265ff01985..abcaea49fa 100755 --- a/tools/buildsteps/linux64/run-tests +++ b/tools/buildsteps/linux64/run-tests @@ -4,7 +4,11 @@ XBMC_PLATFORM_DIR=linux64 if [ "$CMAKE_BUILD" = true ]; then cd $WORKSPACE/build;make -j$BUILDTHREADS kodi-test - cd $WORKSPACE;build/kodi-test --gtest_output=xml:gtestresults.xml + if [ "$Configuration" != "Coverage" ]; then + cd $WORKSPACE;build/kodi-test --gtest_output=xml:gtestresults.xml + else + cd $WORKSPACE/build;GTEST_OUTPUT="xml:$WORKSPACE/gtestresults.xml" make coverage + fi else cd $WORKSPACE;make -j$BUILDTHREADS testsuite cd $WORKSPACE;./kodi-test --gtest_output=xml:gtestresults.xml |