From 4a4af34fa10d3d571f864d01298cb496b989f501 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Fri, 11 Sep 2015 08:18:26 +0200 Subject: [PATCH] test that the node is well installed before trying to run --- buildtools/jenkins/run_DynamicAnalysis.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/buildtools/jenkins/run_DynamicAnalysis.sh b/buildtools/jenkins/run_DynamicAnalysis.sh index 6f11138260..b0f3b59179 100755 --- a/buildtools/jenkins/run_DynamicAnalysis.sh +++ b/buildtools/jenkins/run_DynamicAnalysis.sh @@ -18,6 +18,27 @@ do_cleanup() { find $WORKSPACE -name "memcheck_test_*.memcheck" -exec rm {} \; } +### Check the node installation + +for pkg in xsltproc valgrind +do + if dpkg -l |grep -q $pkg + then + echo "$pkg is installed. Good." + else + die "please install $pkg before proceeding" + fi +done + +if [ -e /usr/local/gcovr-3.1/scripts/gcovr ] +then + echo "gcovr is installed, good." +else + die "Please install /usr/local/gcovr-3.1/scripts/gcovr" +fi + +### Cleanup previous runs + ! [ -z "$WORKSPACE" ] || die "No WORKSPACE" [ -d "$WORKSPACE" ] || die "WORKSPACE ($WORKSPACE) does not exist" @@ -30,6 +51,8 @@ done cd $WORKSPACE/build +### Proceed with the tests + cmake -Denable_documentation=OFF -Denable_lua=OFF -Denable_tracing=ON \ -Denable_compile_optimizations=OFF -Denable_compile_warnings=ON -Denable_lib_static=OFF \ -Denable_latency_bound_tracking=OFF -Denable_jedule=OFF -Denable_mallocators=OFF \ -- 2.20.1