Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Tesh files for 32 bits arch.
[simgrid.git] / buildtools / scripts / test_dist_with_cmake.sh
index be54839..124dc19 100755 (executable)
@@ -8,18 +8,27 @@ else
   source ~/.simgrid_build.conf
 fi
 
+set -e
+get_version
 open_archive
 
 # Make sure we have cmake installed
-which_cmake=`which cmake
+which_cmake=`which cmake 2>/dev/null`
 if [ x$which_cmake = x ] ; then
   echo "Try to install cmake"
-  sudo apt-get install cmake
+  if [ -e /usr/bin/apt-get ] ; then # debian based
+    sudo apt-get install cmake
+  fi
+  if [ -e /usr/bin/yum ] ; then # fedora based
+    sudo yum update
+    sudo yum -y install cmake
+  fi
 fi
 
 # Launch CMake
 cd buildtools/Cmake
+echo $version > version
 cmake ./
 
 # Run CTest, and push the results
-ctest -D Experimental CTEST_FULL_OUTPUT
+ctest -D Experimental