diff options
author | root <root@gklab-246-006.igk.intel.com> | 2017-01-16 09:13:54 +0100 |
---|---|---|
committer | Karol Latecki <karolx.latecki@intel.com> | 2017-01-16 17:29:05 +0100 |
commit | 1589632d2fc7bf178a329036dacd060fada06576 (patch) | |
tree | 62049f14091ea487c464a9d1415240d10a5ff85c | |
parent | f6aa774a98755df06ad7decdec644fbe5e01108d (diff) |
Modify tldk jenkins job to enable unit tests
Modify TLDK jenkins job to clone and build googletest and run unit tests.
Change-Id: I20b8bce8c715a492ac77d73f07a2b26f56f4d057
Signed-off-by: Karol Latecki <karolx.latecki@intel.com>
-rwxr-xr-x | jjb/tldk/gtest-build.sh | 13 | ||||
-rwxr-xr-x[-rw-r--r--] | jjb/tldk/include-raw-build.sh | 8 | ||||
-rw-r--r-- | jjb/tldk/tldk.yaml | 12 |
3 files changed, 33 insertions, 0 deletions
diff --git a/jjb/tldk/gtest-build.sh b/jjb/tldk/gtest-build.sh new file mode 100755 index 000000000..764e280c1 --- /dev/null +++ b/jjb/tldk/gtest-build.sh @@ -0,0 +1,13 @@ +#!/bin/bash +set -e -o pipefail +echo $WORKSPACE +git clone https://github.com/google/googletest.git $WORKSPACE/googletest +cmake $WORKSPACE/googletest/CMakeLists.txt +make -C $WORKSPACE/googletest +echo GTEST_DIR=$WORKSPACE/googletest/googletest > gtest-env.prop +echo GMOCK_DIR=$WORKSPACE/googletest/googlemock >> gtest-env.prop + +echo "*******************************************************************" +echo "* GTEST BUILD SUCCESSFULLY COMPLETED" +echo "*******************************************************************" + diff --git a/jjb/tldk/include-raw-build.sh b/jjb/tldk/include-raw-build.sh index f4ba63b63..a1b0a8eed 100644..100755 --- a/jjb/tldk/include-raw-build.sh +++ b/jjb/tldk/include-raw-build.sh @@ -28,8 +28,16 @@ fi echo "sha1sum of this script: ${0}" sha1sum $0 +# Make TLDK make echo "*******************************************************************" echo "* TLDK BUILD SUCCESSFULLY COMPLETED" echo "*******************************************************************" + +# Run unit tests application +$WORKSPACE/x86_64-native-linuxapp-gcc/app/gtest-rfc --lcores=0 -n 2 + +echo "*******************************************************************" +echo "* TLDK UNIT TESTS SUCCESSFUL" +echo "*******************************************************************" diff --git a/jjb/tldk/tldk.yaml b/jjb/tldk/tldk.yaml index 1b9610502..f2357044d 100644 --- a/jjb/tldk/tldk.yaml +++ b/jjb/tldk/tldk.yaml @@ -52,6 +52,10 @@ builders: - shell: + !include-raw-escape: gtest-build.sh + - inject: + properties-file: gtest-env.prop + - shell: !include-raw-escape: include-raw-build.sh publishers: @@ -109,6 +113,10 @@ builders: - shell: + !include-raw-escape: gtest-build.sh + - inject: + properties-file: gtest-env.prop + - shell: !include-raw-escape: include-raw-build.sh publishers: @@ -152,6 +160,10 @@ builders: - shell: + !include-raw-escape: gtest-build.sh + - inject: + properties-file: gtest-env.prop + - shell: !include-raw-escape: include-raw-build.sh publishers: |