Logo AND Algorithmique Numérique Distribuée

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