Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
A script to do everything on pipol
[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 open_archive
13
14 # Make sure we have cmake installed
15 which_cmake=`which cmake` 
16 if [ x$which_cmake = x ] ; then
17   echo "Try to install cmake"
18   sudo apt-get install cmake
19 fi
20
21 # Launch CMake
22 cd buildtools/Cmake
23 cmake ./
24
25 # Run CTest, and push the results
26 ctest -D Experimental CTEST_FULL_OUTPUT