blob: 5aa20e70d6955032567e5815bb77cf067271adc4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
WORKSPACE=${WORKSPACE:-$( cd $(dirname $0)/../../.. ; pwd -P )}
XBMC_PLATFORM_DIR=osx64
. $WORKSPACE/tools/buildsteps/defaultenv
if [ "$CMAKE_BUILD" = true ]; then
cd $WORKSPACE/build;make -j$BUILDTHREADS kodi-test
cd $WORKSPACE;build/kodi-test --gtest_output=xml:gtestresults.xml
else
cd $WORKSPACE;make -j$BUILDTHREADS testsuite
cd $WORKSPACE;./kodi-test --gtest_output=xml:gtestresults.xml
fi
awk '{ if ($1 == "<testcase" && match($0, "notrun")) print substr($0,0,length($0)-2) "><skipped/></testcase>"; else print $0;}' gtestresults.xml > gtestresults-skipped.xml
rm gtestresults.xml
mv gtestresults-skipped.xml gtestresults.xml
|