Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
ab54c6442c0bbf32f2c9a5ac547a9f3eb4e7cd18
[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 amd64-windows-server-2008-64bits.dd.gz none 02:00 --root
22
23 if [ -e ./pipol ] ; then
24         rm -rf ./pipol/$PIPOL_HOST
25         mkdir ./pipol/$PIPOL_HOST
26 else
27         mkdir ./pipol
28         rm -rf ./pipol/$PIPOL_HOST
29         mkdir ./pipol/$PIPOL_HOST
30 fi
31 cd ./pipol/$PIPOL_HOST
32
33 git clone git://scm.gforge.inria.fr/simgrid/simgrid.git simgrid --quiet
34 cd simgrid
35
36
37 if [ x$PIPOL_IMAGE == "xamd64-windows-server-2008-64bits.dd.gz" ] ; then
38
39         export PATH=/cygdrive/c/:/cygdrive/c/GnuWin32/bin/:/cygdrive/c/Windows/system32:/cygdrive/c/Windows
40         export PATH=$PATH:/cygdrive/c/strawberry/c/bin:/cygdrive/c/strawberry/perl/site/bin:/cygdrive/c/strawberry/perl/bin
41
42         cmake \
43         -G"Unix Makefiles" \
44         -Denable_lua=off \
45         -Denable_tracing=off \
46         -Denable_smpi=off \
47         -Denable_supernovae=off \
48         -Denable_compile_optimizations=off \
49         -Denable_compile_warnings=off \
50         -Denable_lib_static=off \
51         -Denable_model-checking=off \
52         -Denable_latency_bound_tracking=off \
53         -Denable_gtnets=off .
54         ctest -D NightlyStart
55         ctest -D NightlyConfigure
56         ctest -D NightlyBuild
57         ctest -D NightlySubmit
58 else
59         sh ./buildtools/pipol/install_gtnets.sh ./gtnets_install
60         SIMGRID_DIR=`pwd`
61         export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$SIMGRID_DIR/gtnets_install/lib
62         perl ./buildtools/pipol/cmake.pl
63         perl ./buildtools/pipol/ruby.pl
64         
65         if [ x$PIPOL_IMAGE == "xamd64_2010-linux-ubuntu-maverick.dd.gz" ] ; then
66                 #mem-check
67                 cmake \
68                 -Denable_lua=off \
69                 -Denable_tracing=off \
70                 -Denable_smpi=off \
71                 -Denable_supernovae=off \
72                 -Denable_compile_optimizations=off \
73                 -Denable_compile_warnings=on \
74                 -Denable_lib_static=off \
75                 -Denable_model-checking=off \
76                 -Denable_latency_bound_tracking=off \
77                 -Denable_gtnets=off \
78                 -Denable_jedule=off \
79                 -Denable_memcheck=on ./
80                 ctest -D NightlyStart
81                 ctest -D NightlyConfigure
82                 ctest -D NightlyBuild
83                 ctest -D NightlyMemCheck
84                 ctest -D NightlySubmit
85         else
86                 #supernovae
87                 cmake \
88                 -Denable_lua=on \
89                 -Denable_tracing=on \
90                 -Denable_smpi=on \
91                 -Denable_supernovae=on \
92                 -Denable_compile_optimizations=on \
93                 -Denable_compile_warnings=on \
94                 -Denable_lib_static=off \
95                 -Denable_model-checking=off \
96                 -Denable_latency_bound_tracking=off \
97                 -Denable_gtnets=off .
98                 ctest -D NightlyStart
99                 ctest -D NightlyConfigure
100                 ctest -D NightlyBuild
101                 ctest -D NightlyTest
102                 ctest -D NightlySubmit
103                 make clean
104                 
105                 #MC
106                 cmake \
107                 -Denable_latency_bound_tracking=on \
108                 -Denable_gtnets=on \
109                 -Dgtnets_path=./gtnets_install \
110                 -Denable_coverage=on \
111                 -Denable_model-checking=on \
112                 -Denable_compile_optimizations=off \
113                 -Denable_auto_install=on \
114                 -DCMAKE_INSTALL_PREFIX=./simgrid_install \
115                 -Denable_supernovae=off .
116                 ctest -D NightlyStart
117                 ctest -D NightlyConfigure
118                 ctest -D NightlyBuild
119                 ctest -D NightlyTest
120                 ctest -D NightlyCoverage
121                 ctest -D NightlySubmit
122         fi
123         
124         export SIMGRID_ROOT=`pwd`
125         export LD_LIBRARY_PATH=`pwd`/lib
126         
127         cd ../
128         svn checkout svn://scm.gforge.inria.fr/svn/simgrid/contrib/trunk/simgrid-java simgrid-java --quiet
129         cd simgrid-java
130         cmake .
131         ctest -D NightlyStart
132         ctest -D NightlyConfigure
133         ctest -D NightlyBuild
134         ctest -D NightlyTest
135         ctest -D NightlySubmit
136         
137         cd ../
138         svn checkout svn://scm.gforge.inria.fr/svn/simgrid/contrib/trunk/simgrid-ruby simgrid-ruby --quiet
139         cd simgrid-ruby
140         cmake .
141         ctest -D NightlyStart
142         ctest -D NightlyConfigure
143         ctest -D NightlyBuild
144         ctest -D NightlyTest
145         ctest -D NightlySubmit
146 fi