X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/01dc7e145ae18ee678ac03beeed469cdcb5e5798..df18faac51d5f0b3ae8aa7d00bee5740c066aa81:/buildtools/scripts/test_dist_with_cmake.sh diff --git a/buildtools/scripts/test_dist_with_cmake.sh b/buildtools/scripts/test_dist_with_cmake.sh index be5483949d..124dc1917a 100755 --- a/buildtools/scripts/test_dist_with_cmake.sh +++ b/buildtools/scripts/test_dist_with_cmake.sh @@ -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