2 # basic build script example
4 # do nothing but print the current slave hostname
6 export CCACHE_DIR=/tmp/ccache
7 if [ -d $CCACHE_DIR ];then
8 echo $CCACHE_DIR exists
11 echo $CCACHE_DIR does not exist. This must be a new slave.
14 echo "cat /etc/bootstrap.sha"
15 if [ -f /etc/bootstrap.sha ];then
16 cat /etc/bootstrap.sha
18 echo "Cannot find /etc/bootstrap.sha"
21 echo "cat /etc/bootstrap-functions.sha"
22 if [ -f /etc/bootstrap-functions.sha ];then
23 cat /etc/bootstrap-functions.sha
25 echo "Cannot find /etc/bootstrap-functions.sha"
31 echo "*******************************************************************"
32 echo "* TLDK BUILD SUCCESSFULLY COMPLETED"
33 echo "*******************************************************************"
35 # Run unit tests application
36 sudo $WORKSPACE/x86_64-native-linuxapp-gcc/app/gtest-rfc --lcores=0 -n 2
38 echo "*******************************************************************"
39 echo "* TLDK UNIT TESTS SUCCESSFUL"
40 echo "*******************************************************************"
42 if [ -f "$WORKSPACE/examples/l4fwd/test/run_test.sh" ]
45 export L4FWD_PATH=$WORKSPACE/x86_64-native-linuxapp-gcc/app/l4fwd
49 sudo -E /bin/bash $WORKSPACE/examples/l4fwd/test/run_test.sh -46a
51 echo "*****************************************************************"
52 echo "* TLDK OFO/LOST SEGMENT TESTS SUCCESSFUL"
53 echo "*****************************************************************"