Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[jenkins] preliminary checks to save time when we are building a new slave
[simgrid.git] / tools / jenkins / build.sh
index 576986cb8782a94eb350d4670c14862042817ce6..8a9710933126ffc715f518f188d3bb6d3482f895 100755 (executable)
@@ -37,6 +37,12 @@ onoff() {
   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