Logo AND Algorithmique Numérique Distribuée

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