Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use flag -Drelease=on on pipol for the moment.
[simgrid.git] / buildtools / pipol / Nightly_simgrid.sh
1 #!/bin/bash
2
3 #PRE-PIPOL /home/mescal/navarro/pre-simgrid.sh
4
5 #PIPOL esn i386-linux-ubuntu-karmic.dd.gz none 02:00 --user --silent
6 #PIPOL esn amd64-linux-ubuntu-karmic.dd.gz none 02:00 --user --silent
7 #PIPOL esn i386-linux-ubuntu-lucid.dd.gz none 02:00 --user --silent
8 #PIPOL esn amd64-linux-ubuntu-lucid.dd.gz none 02:00 --user --silent
9 #PIPOL esn amd64_2010-linux-ubuntu-maverick.dd.gz none 02:00 --user --silent
10
11 #PIPOL esn i386-linux-fedora-core12.dd.gz none 02:00 --user --silent
12 #PIPOL esn amd64-linux-fedora-core12.dd.gz none 02:00 --user --silent
13 #PIPOL esn i386-linux-fedora-core13.dd.gz none 02:00 --user --silent
14 #PIPOL esn amd64-linux-fedora-core13.dd.gz none 02:00 --user --silent
15
16 #PIPOL esn i386_kvm-linux-debian-lenny none 02:00 --user --silent
17 #PIPOL esn amd64_kvm-linux-debian-lenny none 02:00 --user --silent
18 #PIPOL esn i386_kvm-linux-debian-testing none 02:00 --user --silent
19 #PIPOL esn amd64_kvm-linux-debian-testing none 02:00 --user --silent
20
21 #PIPOL  esn x86_64_mac-mac-osx-server-snow-leopard.dd.gz none 02:00 --user --silent
22 #PIPOL  esn x86_mac-mac-osx-server-snow-leopard.dd.gz none 02:00 --user --silent
23
24 #PIPOL esn amd64-windows-server-2008-64bits.dd.gz none 02:00 --root
25
26 if [ -e ./pipol ] ; then
27         rm -rf ./pipol/$PIPOL_HOST
28         mkdir ./pipol/$PIPOL_HOST
29 else
30         mkdir ./pipol
31         rm -rf ./pipol/$PIPOL_HOST
32         mkdir ./pipol/$PIPOL_HOST
33 fi
34 cd ./pipol/$PIPOL_HOST
35
36 git clone git://scm.gforge.inria.fr/simgrid/simgrid.git simgrid --quiet
37 cd simgrid
38
39 if [ x$PIPOL_IMAGE == "xamd64-windows-server-2008-64bits.dd.gz" ] ; then
40
41         export PATH=/cygdrive/c/:/cygdrive/c/GnuWin32/bin/:/cygdrive/c/Windows/system32:/cygdrive/c/Windows
42         export PATH=$PATH:/cygdrive/c/CMake\ 2.8/bin/:/cygdrive/c/strawberry/c/bin:/cygdrive/c/strawberry/perl/site/bin:/cygdrive/c/strawberry/perl/bin
43
44         cmake \
45         -G"Unix Makefiles" \
46         -Denable_lua=off \
47         -Denable_tracing=off \
48         -Denable_smpi=off \
49         -Denable_supernovae=off \
50         -Denable_compile_optimizations=off \
51         -Denable_compile_warnings=off \
52         -Denable_lib_static=off \
53         -Denable_model-checking=off \
54         -Denable_latency_bound_tracking=off \
55         -Drelease=on \
56         -Denable_gtnets=off .
57         ctest -D NightlyStart
58         ctest -D NightlyConfigure
59         ctest -D NightlyBuild
60         ctest -D NightlySubmit
61 else
62         sh ./buildtools/pipol/install_gtnets.sh ./gtnets_install
63         SIMGRID_DIR=`pwd`
64         export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$SIMGRID_DIR/gtnets_install/lib
65         perl ./buildtools/pipol/cmake.pl
66         perl ./buildtools/pipol/ruby.pl
67         
68         if [ x$PIPOL_IMAGE == "xamd64_2010-linux-ubuntu-maverick.dd.gz" ] ; then
69                 #mem-check
70                 cmake \
71                 -Denable_lua=off \
72                 -Denable_tracing=off \
73                 -Denable_smpi=off \
74                 -Denable_supernovae=off \
75                 -Denable_compile_optimizations=off \
76                 -Denable_compile_warnings=on \
77                 -Denable_lib_static=off \
78                 -Denable_model-checking=off \
79                 -Denable_latency_bound_tracking=off \
80                 -Denable_gtnets=off \
81                 -Denable_jedule=off \
82                 -Drelease=on \
83                 -Denable_memcheck=on ./
84                 ctest -D NightlyStart
85                 ctest -D NightlyConfigure
86                 ctest -D NightlyBuild
87                 ctest -D NightlyMemCheck
88                 ctest -D NightlySubmit
89         else
90                 #supernovae
91                 cmake \
92                 -Denable_lua=on \
93                 -Denable_tracing=on \
94                 -Denable_smpi=on \
95                 -Denable_supernovae=on \
96                 -Denable_compile_optimizations=on \
97                 -Denable_compile_warnings=on \
98                 -Denable_lib_static=off \
99                 -Denable_model-checking=off \
100                 -Denable_latency_bound_tracking=off \
101                 -Drelease=on \
102                 -Denable_gtnets=off .
103                 ctest -D NightlyStart
104                 ctest -D NightlyConfigure
105                 ctest -D NightlyBuild
106                 ctest -D NightlyTest
107                 ctest -D NightlySubmit
108                 make clean
109                 
110                 #MC
111                 cmake \
112                 -Denable_latency_bound_tracking=on \
113                 -Denable_gtnets=on \
114                 -Dgtnets_path=./gtnets_install \
115                 -Denable_coverage=on \
116                 -Denable_model-checking=on \
117                 -Denable_compile_optimizations=off \
118                 -Denable_auto_install=on \
119                 -DCMAKE_INSTALL_PREFIX=./simgrid_install \
120                 -Drelease=on \
121                 -Denable_supernovae=off .
122                 ctest -D NightlyStart
123                 ctest -D NightlyConfigure
124                 ctest -D NightlyBuild
125                 ctest -D NightlyTest
126                 ctest -D NightlyCoverage
127                 ctest -D NightlySubmit
128         fi
129         
130         export SIMGRID_ROOT=`pwd`
131         export LD_LIBRARY_PATH=`pwd`/lib
132         
133         cd ../
134         svn checkout svn://scm.gforge.inria.fr/svn/simgrid/contrib/trunk/simgrid-java simgrid-java --quiet
135         cd simgrid-java
136         cmake .
137         ctest -D NightlyStart
138         ctest -D NightlyConfigure
139         ctest -D NightlyBuild
140         ctest -D NightlyTest
141         ctest -D NightlySubmit
142         
143         cd ../
144         svn checkout svn://scm.gforge.inria.fr/svn/simgrid/contrib/trunk/simgrid-ruby simgrid-ruby --quiet
145         cd simgrid-ruby
146         cmake .
147         ctest -D NightlyStart
148         ctest -D NightlyConfigure
149         ctest -D NightlyBuild
150         ctest -D NightlyTest
151         ctest -D NightlySubmit
152 fi