Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
new scripts for Cdash
[simgrid.git] / buildtools / ctest / verif_mac.sh
1 #!/bin/bash
2
3 #GET the OS name
4 OS=`uname`
5 node=`uname -n`
6
7 # OS specific working directory 
8 BASEDIR=/pipol
9 DIR=$BASEDIR/$OS/$node
10
11 # Clean any leftover  from previous install
12 echo "remove old directory $BASEDIR/$OS/$node"
13 rm -rf $BASEDIR/$OS/$node
14
15 # create a new directory 
16 echo "create new directory $BASEDIR/$OS/$node"
17 mkdir  $BASEDIR/$OS
18 mkdir  $BASEDIR/$OS/$node
19 cd $BASEDIR/$OS/$node
20
21 # load the simgrid directory from svn
22 echo "load simgrid-svn"
23 svn checkout svn://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk
24 mv trunk/ simgrid
25 cp -r $BASEDIR/$OS/$node/simgrid/buildtools/ctest/Cmake $BASEDIR/$OS/$node/simgrid/Cmake
26
27 # Install dependencies
28 echo "get dependencies"
29 fink --yes install -y libtool automake1.10 autoconf libgcj10-dev gcc g++ bash flex flexml doxygen bibtex bibtool iconv bibtex2html addr2line valgrind
30
31 # 1er test
32 cd $BASEDIR/$OS/$node/simgrid
33 echo "./bootstrap"
34 ./bootstrap
35 echo "./configure"
36 ./configure --enable-maintainer-mode --disable-compile-optimizations
37 echo "make"
38 make 
39 echo "./checkall"
40 ./checkall
41
42 # 2eme test ctest
43 fink --yes install cmake
44 cd $BASEDIR/$OS/$node/simgrid/Cmake
45 cmake ./
46 ctest -D Experimental
47
48 echo "Done!"