Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
correction of the ctest output size
[simgrid.git] / buildtools / ctest / verif.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 if [[ $OS == 'Linux' ]]; then
28         # Install dependencies Linux
29         echo "get dependencies Linux"
30         sudo aptitude install -y libtool automake1.10 autoconf libgcj10-dev gcc g++ bash flex flexml doxygen bibtex bibtool iconv bibtex2html addr2line valgrind
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         # 2eme test ctest
42         sudo aptitude install -y cmake
43         cd $BASEDIR/$OS/$node/simgrid/Cmake
44         cmake ./
45         ctest -D Experimental
46 fi
47
48 if [[ $OS == 'Darwin' ]]; then
49         # Install dependencies Mac
50         echo "get dependencies Mac"
51         fink --yes install libtool14
52         # fink --yes install doxygen 
53         fink --yes install autoconf
54         # 1er test
55         cd $BASEDIR/$OS/$node/simgrid
56         echo "./bootstrap"
57         ./bootstrap
58         echo "./configure"
59         ./configure --enable-maintainer-mode MAKE=gmake --disable-compile-optimizations
60         echo "make"
61         make 
62         echo "./checkall"
63         ./checkall
64         # 2eme test ctest
65         fink --yes install cmake
66         cd $BASEDIR/$OS/$node/simgrid/Cmake
67         cmake ./
68         ctest -D Experimental
69 fi
70
71 echo "Done!"