From 486588e7a8095791b81a4ac8bd0062e2297a61ee Mon Sep 17 00:00:00 2001 From: Karol Latecki Date: Tue, 25 Oct 2016 10:07:48 +0200 Subject: Add dependencies for tldk jjb tldk needs googletest to compile and run its unit test application Change-Id: I73b666114dbcde88fc8a25daf14dfdf3c1661fc5 Signed-off-by: Karol Latecki --- jjb/tldk/gtest-build.sh | 13 +++++++++++++ jjb/tldk/include-raw-build.sh | 8 ++++++++ jjb/tldk/tldk.yaml | 8 ++++++++ 3 files changed, 29 insertions(+) create mode 100644 jjb/tldk/gtest-build.sh (limited to 'jjb') diff --git a/jjb/tldk/gtest-build.sh b/jjb/tldk/gtest-build.sh new file mode 100644 index 000000000..dc66908e7 --- /dev/null +++ b/jjb/tldk/gtest-build.sh @@ -0,0 +1,13 @@ +#!/bin/bash +# basic build script example +set -e -o pipefail +set -x +echo $WORKSPACE +git clone https://github.com/google/googletest.git $WORKSPACE/googletest +cmake $WORKSPACE/googletest/CMakeLists.txt +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..417a1deca 100644 --- 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 f0ad3fbc4..cc44a7220 100644 --- a/jjb/tldk/tldk.yaml +++ b/jjb/tldk/tldk.yaml @@ -104,6 +104,10 @@ notbuilt: true builders: + - shell: + !include-raw-escape: gtest-build.sh + - inject: + properties-file: gtest-env.prop - shell: !include-raw-escape: include-raw-build.sh @@ -143,5 +147,9 @@ branch: '{branch}' builders: + - shell: + !include-raw-escape: gtest-build.sh + - inject: + properties-file: gtest-env.prop - shell: !include-raw-escape: include-raw-build.sh -- cgit 1.2.3-korg