aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMemphiz <memphis@machzwo.de>2013-11-12 16:08:23 +0100
committerMemphiz <memphis@machzwo.de>2014-02-12 18:46:25 +0100
commita09d6db18334b1c3cfe05681bf92facaa04aceb1 (patch)
tree0edd1d43de5f5bd3dec3fb2f0616afefd122fa7f /tools
parentfcfaf8ce0e2c7d8aa9bf00fabde5105b6344f2d0 (diff)
[jenkins] - add gtest buildstep for jenkins (osx32, osx64m linux32, linux64)
Diffstat (limited to 'tools')
-rwxr-xr-xtools/buildsteps/linux32/run-tests9
-rwxr-xr-xtools/buildsteps/linux64/run-tests9
-rwxr-xr-xtools/buildsteps/osx32/run-tests9
-rwxr-xr-xtools/buildsteps/osx64/run-tests9
4 files changed, 36 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
diff --git a/tools/buildsteps/linux64/run-tests b/tools/buildsteps/linux64/run-tests
new file mode 100755
index 0000000000..43469c3db5
--- /dev/null
+++ b/tools/buildsteps/linux64/run-tests
@@ -0,0 +1,9 @@
+WORKSPACE=${WORKSPACE:-$( cd $(dirname $0)/../../.. ; pwd -P )}
+XBMC_PLATFORM_DIR=linux64
+. $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
diff --git a/tools/buildsteps/osx32/run-tests b/tools/buildsteps/osx32/run-tests
new file mode 100755
index 0000000000..a77fb8139c
--- /dev/null
+++ b/tools/buildsteps/osx32/run-tests
@@ -0,0 +1,9 @@
+WORKSPACE=${WORKSPACE:-$( cd $(dirname $0)/../../.. ; pwd -P )}
+XBMC_PLATFORM_DIR=osx32
+. $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
diff --git a/tools/buildsteps/osx64/run-tests b/tools/buildsteps/osx64/run-tests
new file mode 100755
index 0000000000..b3113e356f
--- /dev/null
+++ b/tools/buildsteps/osx64/run-tests
@@ -0,0 +1,9 @@
+WORKSPACE=${WORKSPACE:-$( cd $(dirname $0)/../../.. ; pwd -P )}
+XBMC_PLATFORM_DIR=osx64
+. $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