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
1 #! /bin/bash
2 # This script waits that the make_dist script finishes building the right archive in ~/simgrid
3 # and then builds it using cmake. Warning, cmake is only a wrapper for now, you still need the autotools
4
5 if [ -e ~/simgrid-svn/buildtools/scripts/simgrid_build.conf ] ; then
6   source ~/simgrid-svn/buildtools/scripts/simgrid_build.conf
7 else
8   source ~/.simgrid_build.conf
9 fi
10
11 set -e
12 get_version
13 open_archive
14
15 # Make sure we have cmake installed
16 which_cmake=`which cmake 2>/dev/null`
17 if [ x$which_cmake = x ] ; then
18   echo "Try to install cmake"
19   if [ -e /usr/bin/apt-get ] ; then # debian based
20     sudo apt-get install cmake
21   fi
22   if [ -e /usr/bin/yum ] ; then # fedora based
23     sudo yum update
24     sudo yum -y install cmake
25   fi
26 fi
27
28 # Launch CMake
29 cd buildtools/Cmake
30 echo $version > version
31 cmake ./
32
33 # Run CTest, and push the results
34 ctest -D Experimental