Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
correction of the ctest output size
[simgrid.git] / buildtools / ctest / test_simgrid_pipol.sh
1 #! /bin/sh
2
3 #PIPOL esn i386-linux-ubuntu-jaunty.dd.gz none 02:00 --user --silent
4 #PIPOL esn i386-linux-ubuntu-karmic.dd.gz none 02:00 --user --silent
5 #PIPOL esn amd64-linux-ubuntu-jaunty.dd.gz none 02:00 --user --silent
6 #PIPOL esn amd64-linux-ubuntu-karmic.dd.gz none 02:00 --user --silent 
7
8 #PIPOL esn i386-linux-debian-etch.dd.gz none 02:00 --user --silent
9 #PIPOL esn i386-linux-debian-lenny.dd.gz none 02:00 --user --silent
10 #PIPOL esn amd64-linux-debian-etch.dd.gz none 02:00 --user --silent
11 #PIPOL esn amd64-linux-debian-lenny.dd.gz none 02:00 --user --silent
12
13 #PIPOL esn i386-linux-fedora-core11.dd.gz none 02:00 --user --silent
14 #PIPOL esn amd64-linux-fedora-core11.dd.gz none 02:00 --user --silent
15
16 #PIPOL esn i386-linux-mandriva-2009_powerpack.dd.gz none 02:00 --user --silent
17 #PIPOL esn amd64-linux-mandriva-2009_powerpack.dd.gz none 02:00 --user --silent
18
19 #PIPOL esn i386_mac-mac-osx-server-leopard.dd.gz none 02:00 --user --silent
20
21 #GET the OS name
22 OS=`uname`
23 node=`uname -n`
24
25 # OS specific working directory 
26 BASEDIR=/pipol
27 DIR=$BASEDIR/$OS/$node
28
29 # Clean any leftover  from previous install
30 echo "remove old directory $BASEDIR/$OS/$node"
31 rm -rf $BASEDIR/$OS/$node
32
33 # create a new directory 
34 echo "create new directory $BASEDIR/$OS/$node"
35 mkdir  $BASEDIR/$OS
36 mkdir  $BASEDIR/$OS/$node
37 cd $BASEDIR/$OS/$node
38
39 # load the simgrid directory from svn
40 echo "load simgrid-svn"
41 svn checkout svn://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk
42 mv trunk/ simgrid
43 cp -r $BASEDIR/$OS/$node/simgrid/buildtools/ctest/Cmake $BASEDIR/$OS/$node/simgrid/Cmake
44
45
46
47 if [[ $OS == 'Linux' ]]; then
48         # Install dependencies Linux
49         echo "get dependencies Linux"
50         sudo aptitude install -y libtool automake1.10 autoconf libgcj10-dev gcc g++ bash flex flexml doxygen bibtex bibtool iconv bibtex2html addr2line valgrind
51         # 1er test
52         cd $BASEDIR/$OS/$node/simgrid
53         echo "./bootstrap"
54         ./bootstrap
55         echo "./configure"
56         ./configure --enable-maintainer-mode --disable-compile-optimizations
57         echo "make"
58         make 
59         echo "./checkall"
60         ./checkall
61         # 2eme test ctest
62         sudo aptitude install -y cmake
63         cd $BASEDIR/$OS/$node/simgrid/Cmake
64         cmake ./
65         ctest -D Nightly
66 fi
67
68 if [[ $OS == 'Darwin' ]]; then
69         # Install dependencies Mac
70         echo "get dependencies Mac"
71         fink --yes install libtool14
72         # fink --yes install doxygen 
73         fink --yes install autoconf
74         # 1er test
75         cd $BASEDIR/$OS/$node/simgrid
76         echo "./bootstrap"
77         ./bootstrap
78         echo "./configure"
79         ./configure --enable-maintainer-mode MAKE=gmake --disable-compile-optimizations
80         echo "make"
81         make 
82         echo "./checkall"
83         ./checkall
84         # 2eme test ctest
85         fink --yes install cmake
86         cd $BASEDIR/$OS/$node/simgrid/Cmake
87         cmake ./
88         ctest -D Nightly
89 fi
90
91 echo "Finish !"