Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
test that the node is well installed before trying to run
authorMartin Quinson <martin.quinson@loria.fr>
Fri, 11 Sep 2015 06:18:26 +0000 (08:18 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Fri, 11 Sep 2015 06:18:26 +0000 (08:18 +0200)
buildtools/jenkins/run_DynamicAnalysis.sh

index 6f11138..b0f3b59 100755 (executable)
@@ -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 \