aboutsummaryrefslogtreecommitdiff
path: root/tools/buildsteps/linux32/run-tests
diff options
context:
space:
mode:
Diffstat (limited to 'tools/buildsteps/linux32/run-tests')
-rwxr-xr-xtools/buildsteps/linux32/run-tests9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/buildsteps/linux32/run-tests b/tools/buildsteps/linux32/run-tests
new file mode 100755
index 0000000000..429e094b92
--- /dev/null
+++ b/tools/buildsteps/linux32/run-tests
@@ -0,0 +1,9 @@
+WORKSPACE=${WORKSPACE:-$( cd $(dirname $0)/../../.. ; pwd -P )}
+XBMC_PLATFORM_DIR=linux32
+. $WORKSPACE/tools/buildsteps/defaultenv
+
+cd $WORKSPACE;make -j$BUILDTHREADS testsuite
+cd $WORKSPACE;./xbmc-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