Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix code coverage on script.
[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_coverage=on \
116 -Denable_smpi=on .
117 ctest -D NightlyStart
118 ctest -D NightlyConfigure
119 ctest -D NightlyBuild
120 ctest -D NightlyTest
121 ctest -D NightlyCoverage
122 ctest -D NightlySubmit
123 make clean
124
125 if [ $SYSTEM = Linux ] ; then
126         cd ..
127         home_dir=`pwd`
128
129         svn checkout svn://scm.gforge.inria.fr/svn/simgrid/contrib/trunk/GTNetS/ --quiet
130         cd GTNetS
131         unzip gtnets-current.zip > /dev/null
132         tar zxvf gtnets-current-patch.tgz  > /dev/null
133         cd gtnets-current
134         cat ../00*.patch | patch -p1 > /dev/null
135
136         ARCH_32=`uname -m | cut -d'_' -f2`
137
138         if [ x$ARCH_32 = x64 ] ; then #only if 64 bit processor family
139         cat ../AMD64-FATAL-Removed-DUL_SIZE_DIFF-Added-fPIC-compillin.patch | patch -p1 > /dev/null
140         fi
141
142         ln -sf Makefile.linux Makefile
143         make -j 3 depend > /dev/null
144         make -j 3 debug > /dev/null 2>&1
145         make -j 3 opt > /dev/null 2>&1
146         wait
147         cd $home_dir
148         absolute_path=`pwd`
149         userhome=$absolute_path
150
151         if [ -e $userhome/usr/lib ] ; then
152                 echo ""
153         else
154                 mkdir $userhome/usr     
155                 mkdir $userhome/usr/lib
156         fi
157
158         if [ -e $userhome/usr/include ] ; then
159                 echo ""
160         else    
161                 mkdir $userhome/usr/include 
162         fi
163
164         cp -fr $absolute_path/GTNetS/gtnets-current/*.so $userhome/usr/lib/
165         ln -sf $userhome/usr/lib/libgtsim-opt.so $userhome/usr/lib/libgtnets.so
166
167         export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$userhome/usr/lib/
168         mkdir $userhome/usr/include/gtnets
169         cp -fr $absolute_path/GTNetS/gtnets-current/SRC/*.h $userhome/usr/include/gtnets
170         wait
171         cd $home_dir
172         rm -rf $absolute_path/GTNetS
173         cd simgrid-trunk
174         
175         if [ -e $userhome/usr/lib/libgtsim-opt.so ] ; then
176                 #gtnets
177                 cmake -Denable_lua=on \
178                 -Denable_ruby=on \
179                 -Denable_lib_static=on \
180                 -Denable_model-checking=off \
181                 -Denable_tracing=on \
182                 -Denable_latency_bound_tracking=on \
183                 -Denable_gtnets=on \
184                 -Denable_java=on \
185                 -Dgtnets_path=$userhome/usr \
186                 -Denable_coverage=off \
187                 -Denable_smpi=on .
188                 ctest -D NightlyStart
189                 ctest -D NightlyConfigure
190                 ctest -D NightlyBuild
191                 ctest -D NightlyTest
192                 ctest -D NightlySubmit
193                 make clean
194         fi
195 fi
196
197 if[ x$PIPOL_IMAGE = xi386-linux-ubuntu-karmic.dd.gz ]
198         #Make the memcheck mode
199         cmake -Denable_lua=off \
200         -Denable_ruby=off \
201         -Denable_lib_static=off \
202         -Denable_model-checking=off \
203         -Denable_tracing=off \
204         -Denable_latency_bound_tracking=off \
205         -Denable_gtnets=off \
206         -Denable_java=off \
207         -Denable_memcheck=on ./
208         ctest -D NightlyStart
209         ctest -D NightlyConfigure
210         ctest -D NightlyBuild
211         ctest -D NightlyMemCheck
212         ctest -D NightlySubmit
213         make clean
214 fi