Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update script pipol
[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
40 if [ x$PIPOL_IMAGE == "xamd64-windows-server-2008-64bits.dd.gz" ] ; then
41
42         export PATH=/cygdrive/c/:/cygdrive/c/GnuWin32/bin/:/cygdrive/c/Windows/system32:/cygdrive/c/Windows
43         export PATH=$PATH:/cygdrive/c/strawberry/c/bin:/cygdrive/c/strawberry/perl/site/bin:/cygdrive/c/strawberry/perl/bin
44
45         cmake \
46         -G"Unix Makefiles" \
47         -Denable_lua=off \
48         -Denable_tracing=off \
49         -Denable_smpi=off \
50         -Denable_supernovae=off \
51         -Denable_compile_optimizations=off \
52         -Denable_compile_warnings=off \
53         -Denable_lib_static=off \
54         -Denable_model-checking=off \
55         -Denable_latency_bound_tracking=off \
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                 -Denable_memcheck=on ./
83                 ctest -D NightlyStart
84                 ctest -D NightlyConfigure
85                 ctest -D NightlyBuild
86                 ctest -D NightlyMemCheck
87                 ctest -D NightlySubmit
88         else
89                 #supernovae
90                 cmake \
91                 -Denable_lua=on \
92                 -Denable_tracing=on \
93                 -Denable_smpi=on \
94                 -Denable_supernovae=on \
95                 -Denable_compile_optimizations=on \
96                 -Denable_compile_warnings=on \
97                 -Denable_lib_static=off \
98                 -Denable_model-checking=off \
99                 -Denable_latency_bound_tracking=off \
100                 -Denable_gtnets=off .
101                 ctest -D NightlyStart
102                 ctest -D NightlyConfigure
103                 ctest -D NightlyBuild
104                 ctest -D NightlyTest
105                 ctest -D NightlySubmit
106                 make clean
107                 
108                 #MC
109                 cmake \
110                 -Denable_latency_bound_tracking=on \
111                 -Denable_gtnets=on \
112                 -Dgtnets_path=./gtnets_install \
113                 -Denable_coverage=on \
114                 -Denable_model-checking=on \
115                 -Denable_compile_optimizations=off \
116                 -Denable_auto_install=on \
117                 -DCMAKE_INSTALL_PREFIX=./simgrid_install \
118                 -Denable_supernovae=off .
119                 ctest -D NightlyStart
120                 ctest -D NightlyConfigure
121                 ctest -D NightlyBuild
122                 ctest -D NightlyTest
123                 ctest -D NightlyCoverage
124                 ctest -D NightlySubmit
125         fi
126         
127         export SIMGRID_ROOT=`pwd`
128         export LD_LIBRARY_PATH=`pwd`/lib
129         
130         cd ../
131         svn checkout svn://scm.gforge.inria.fr/svn/simgrid/contrib/trunk/simgrid-java simgrid-java --quiet
132         cd simgrid-java
133         cmake .
134         ctest -D NightlyStart
135         ctest -D NightlyConfigure
136         ctest -D NightlyBuild
137         ctest -D NightlyTest
138         ctest -D NightlySubmit
139         
140         cd ../
141         svn checkout svn://scm.gforge.inria.fr/svn/simgrid/contrib/trunk/simgrid-ruby simgrid-ruby --quiet
142         cd simgrid-ruby
143         cmake .
144         ctest -D NightlyStart
145         ctest -D NightlyConfigure
146         ctest -D NightlyBuild
147         ctest -D NightlyTest
148         ctest -D NightlySubmit
149 fi