417a1deca74fdb1bfcf01be5044656a7854b843c
[ci-management.git] / jjb / tldk / include-raw-build.sh
1 #!/bin/bash
2 # basic build script example
3 set -e -o pipefail
4 # do nothing but print the current slave hostname
5 hostname
6 export CCACHE_DIR=/tmp/ccache
7 if [ -d $CCACHE_DIR ];then
8     echo $CCACHE_DIR exists
9     du -sk $CCACHE_DIR
10 else
11     echo $CCACHE_DIR does not exist.  This must be a new slave.
12 fi
13
14 echo "cat /etc/bootstrap.sha"
15 if [ -f /etc/bootstrap.sha ];then
16     cat /etc/bootstrap.sha
17 else
18     echo "Cannot find /etc/bootstrap.sha"
19 fi
20
21 echo "cat /etc/bootstrap-functions.sha"
22 if [ -f /etc/bootstrap-functions.sha ];then
23     cat /etc/bootstrap-functions.sha
24 else
25     echo "Cannot find /etc/bootstrap-functions.sha"
26 fi
27
28 echo "sha1sum of this script: ${0}"
29 sha1sum $0
30
31 # Make TLDK
32 make
33
34 echo "*******************************************************************"
35 echo "* TLDK BUILD SUCCESSFULLY COMPLETED"
36 echo "*******************************************************************"
37
38 # Run unit tests application
39 $WORKSPACE/x86_64-native-linuxapp-gcc/app/gtest-rfc --lcores=0 -n 2
40
41 echo "*******************************************************************"
42 echo "* TLDK UNIT TESTS SUCCESSFUL
43 echo "*******************************************************************"