Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[jenkins] preliminary checks to save time when we are building a new slave
authorMartin Quinson <martin.quinson@loria.fr>
Thu, 7 Jan 2016 21:57:10 +0000 (22:57 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Thu, 7 Jan 2016 21:57:10 +0000 (22:57 +0100)
tools/jenkins/build.sh

index 576986c..8a97109 100755 (executable)
@@ -37,6 +37,12 @@ onoff() {
   fi
 }
 
   fi
 }
 
+# Check that we have what we need, or die quickly
+test -e /bin/tar  || die "I need tar to compile. Please fix your slave."
+test -e /bin/gzip || die "I need gzip to compile. Please fix your slave."
+test -e /usr/include/libunwind.h || die "I need libunwind to compile. Please fix your slave."
+test -e /usr/include/valgrind/valgrind.h || die "I need valgrind to compile. Please fix your slave."
+
 build_mode="$1"
 echo "Build mode $build_mode on $(uname -np)" >&2
 case "$build_mode" in
 build_mode="$1"
 echo "Build mode $build_mode on $(uname -np)" >&2
 case "$build_mode" in