Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove old buildname and options.
[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-intrepid.dd.gz none 02:00 --user --silent
6 #PIPOL esn amd64-linux-ubuntu-intrepid.dd.gz none 02:00 --user --silent
7
8 #PIPOL esn i386-linux-ubuntu-jaunty.dd.gz none 02:00 --user --silent
9 #PIPOL esn amd64-linux-ubuntu-jaunty.dd.gz none 02:00 --user --silent
10
11 #PIPOL esn i386-linux-ubuntu-karmic.dd.gz none 02:00 --user --silent
12 #PIPOL esn amd64-linux-ubuntu-karmic.dd.gz none 02:00 --user --silent
13
14 #PIPOL esn i386-linux-fedora-core11.dd.gz none 02:00 --user --silent
15 #PIPOL esn amd64-linux-fedora-core11.dd.gz none 02:00 --user --silent
16
17 #PIPOL esn i386_kvm-linux-debian-lenny none 02:00 --user --silent
18 #PIPOL esn i386_kvm-linux-debian-testing none 02:00 --user --silent
19
20 #PIPOL esn amd64_kvm-linux-debian-lenny none 02:00 --user --silent
21 #PIPOL esn amd64_kvm-linux-debian-testing none 02:00 --user --silent
22
23 SYSTEM=`uname`
24
25 if [ -e ./pipol ] ; then
26         rm -rf ./pipol/$PIPOL_HOST
27         mkdir ./pipol/$PIPOL_HOST
28 else
29         mkdir ./pipol
30         rm -rf ./pipol/$PIPOL_HOST
31         mkdir ./pipol/$PIPOL_HOST
32 fi
33 cd ./pipol/$PIPOL_HOST
34
35 svn checkout svn://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk simgrid-trunk --quiet
36
37 sh ./simgrid-trunk/buildtools/pipol/liste_install.sh
38 perl ./simgrid-trunk/buildtools/pipol/cmake.pl
39
40 cd simgrid-trunk
41
42 rm CMakeCache.txt
43
44 #ucontext and pthread
45 cmake -Denable_lua=on \
46 -Denable_ruby=on \
47 -Denable_lib_static=on \
48 -Denable_model-checking=off \
49 -Denable_tracing=on \
50 -Denable_latency_bound_tracking=off \
51 -Denable_gtnets=off \
52 -Denable_java=on \
53 -Denable_compile_optimizations=off \
54 -Denable_compile_warnings=off \
55 -Denable_supernovae=off \
56 -Denable_smpi=on .
57 ctest -D NightlyStart
58 ctest -D NightlyConfigure
59 ctest -D NightlyBuild
60 ctest -D NightlyTest
61 ctest -D NightlySubmit
62 make clean
63
64 #full_flags
65 cmake -Denable_lua=on \
66 -Denable_ruby=on \
67 -Denable_lib_static=on \
68 -Denable_model-checking=off \
69 -Denable_tracing=on \
70 -Denable_latency_bound_tracking=on \
71 -Denable_gtnets=off \
72 -Denable_java=on \
73 -Denable_compile_optimizations=on \
74 -Denable_compile_warnings=on \
75 -Denable_smpi=on .
76 ctest -D NightlyStart
77 ctest -D NightlyConfigure
78 ctest -D NightlyBuild
79 ctest -D NightlyTest
80 ctest -D NightlySubmit
81 make clean
82
83 #supernovae
84 cmake -Denable_lua=on \
85 -Denable_ruby=on \
86 -Denable_lib_static=on \
87 -Denable_model-checking=off \
88 -Denable_tracing=on \
89 -Denable_latency_bound_tracking=on \
90 -Denable_gtnets=off \
91 -Denable_java=on \
92 -Denable_compile_optimizations=off \
93 -Denable_compile_warnings=off \
94 -Denable_supernovae=on \
95 -Denable_smpi=on .
96 ctest -D NightlyStart
97 ctest -D NightlyConfigure
98 ctest -D NightlyBuild
99 ctest -D NightlyTest
100 ctest -D NightlySubmit
101 make clean
102
103 #model checking
104 cmake -Denable_lua=on \
105 -Denable_ruby=on \
106 -Denable_lib_static=on \
107 -Denable_model-checking=on \
108 -Denable_tracing=on \
109 -Denable_latency_bound_tracking=on \
110 -Denable_gtnets=off \
111 -Denable_java=on \
112 -Denable_compile_optimizations=off \
113 -Denable_compile_warnings=off \
114 -Denable_supernovae=off \
115 -Denable_smpi=on .
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 make clean
123
124 if [ $SYSTEM = Linux ] ; then
125         cd ..
126         home_dir=`pwd`
127
128         svn checkout svn://scm.gforge.inria.fr/svn/simgrid/contrib/trunk/GTNetS/ --quiet
129         cd GTNetS
130         unzip gtnets-current.zip > /dev/null
131         tar zxvf gtnets-current-patch.tgz  > /dev/null
132         cd gtnets-current
133         cat ../00*.patch | patch -p1 > /dev/null
134
135         ARCH_32=`uname -m | cut -d'_' -f2`
136
137         if [ x$ARCH_32 = x64 ] ; then #only if 64 bit processor family
138         cat ../AMD64-FATAL-Removed-DUL_SIZE_DIFF-Added-fPIC-compillin.patch | patch -p1 > /dev/null
139         fi
140
141         ln -sf Makefile.linux Makefile
142         make -j 3 depend > /dev/null
143         make -j 3 debug > /dev/null 2>&1
144         make -j 3 opt > /dev/null 2>&1
145         wait
146         cd $home_dir
147         absolute_path=`pwd`
148         userhome=$absolute_path
149
150         if [ -e $userhome/usr/lib ] ; then
151                 echo ""
152         else
153                 mkdir $userhome/usr     
154                 mkdir $userhome/usr/lib
155         fi
156
157         if [ -e $userhome/usr/include ] ; then
158                 echo ""
159         else    
160                 mkdir $userhome/usr/include 
161         fi
162
163         cp -fr $absolute_path/GTNetS/gtnets-current/*.so $userhome/usr/lib/
164         ln -sf $userhome/usr/lib/libgtsim-opt.so $userhome/usr/lib/libgtnets.so
165
166         export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$userhome/usr/lib/
167         mkdir $userhome/usr/include/gtnets
168         cp -fr $absolute_path/GTNetS/gtnets-current/SRC/*.h $userhome/usr/include/gtnets
169         wait
170         cd $home_dir
171         rm -rf $absolute_path/GTNetS
172         cd simgrid-trunk
173         
174         if [ -e $userhome/usr/lib/libgtsim-opt.so ] ; then
175                 #gtnets
176                 cmake -Denable_lua=on \
177                 -Denable_ruby=on \
178                 -Denable_lib_static=on \
179                 -Denable_model-checking=off \
180                 -Denable_tracing=on \
181                 -Denable_latency_bound_tracking=on \
182                 -Denable_gtnets=on \
183                 -Denable_java=on \
184                 -Dgtnets_path=$userhome/usr \
185                 -Denable_smpi=on .
186                 ctest -D NightlyStart
187                 ctest -D NightlyConfigure
188                 ctest -D NightlyBuild
189                 ctest -D NightlyTest
190                 ctest -D NightlySubmit
191                 make clean
192         fi
193 fi
194
195 if[ x$PIPOL_IMAGE = xi386-linux-ubuntu-karmic.dd.gz ]
196         #Make the memcheck mode
197         cmake -Denable_lua=off \
198         -Denable_ruby=off \
199         -Denable_lib_static=off \
200         -Denable_model-checking=off \
201         -Denable_tracing=off \
202         -Denable_latency_bound_tracking=off \
203         -Denable_gtnets=off \
204         -Denable_java=off \
205         -Denable_memcheck=on ./
206         ctest -D NightlyStart
207         ctest -D NightlyConfigure
208         ctest -D NightlyBuild
209         ctest -D NightlyMemCheck
210         ctest -D NightlySubmit
211         make clean
212 fi