aboutsummaryrefslogtreecommitdiff
path: root/tools/buildsteps/osx-arm64/run-tests
blob: 67c8a0ea1f287ff441debaf8e29063433725bbbf (plain)
1
2
3
4
5
6
7
8
9
10
WORKSPACE=${WORKSPACE:-$( cd $(dirname $0)/../../.. ; pwd -P )}
XBMC_PLATFORM_DIR=osx-arm64
. $WORKSPACE/tools/buildsteps/defaultenv

cd $WORKSPACE/build;make -j$BUILDTHREADS kodi-test
cd $WORKSPACE;build/kodi-test --gtest_output=xml:gtestresults.xml

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