diff options
author | Memphiz <memphis@machzwo.de> | 2013-11-12 16:08:23 +0100 |
---|---|---|
committer | Memphiz <memphis@machzwo.de> | 2014-02-12 18:46:25 +0100 |
commit | a09d6db18334b1c3cfe05681bf92facaa04aceb1 (patch) | |
tree | 0edd1d43de5f5bd3dec3fb2f0616afefd122fa7f /tools | |
parent | fcfaf8ce0e2c7d8aa9bf00fabde5105b6344f2d0 (diff) |
[jenkins] - add gtest buildstep for jenkins (osx32, osx64m linux32, linux64)
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/buildsteps/linux32/run-tests | 9 | ||||
-rwxr-xr-x | tools/buildsteps/linux64/run-tests | 9 | ||||
-rwxr-xr-x | tools/buildsteps/osx32/run-tests | 9 | ||||
-rwxr-xr-x | tools/buildsteps/osx64/run-tests | 9 |
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 |