Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
9938a78ccef27f4f2204501e28bd634b1a6c297a
[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 -Denable_java=on \
75 -Dwith_context=auto \
76 -Denable_compile_optimizations=off \
77 -Denable_compile_warnings=off \
78 -Denable_supernovae=on \
79 -Denable_smpi=on .
80 ctest -D ExperimentalStart
81 ctest -D ExperimentalConfigure
82 ctest -D ExperimentalBuild
83 ctest -D ExperimentalTest
84 ctest -D ExperimentalSubmit
85 make clean
86
87 #model checking
88 cmake -Denable_lua=on \
89 -Denable_ruby=on \
90 -Denable_lib_static=on \
91 -Denable_graphviz=on \
92 -Denable_model-checking=on \
93 -Denable_tracing=on \
94 -Denable_latency_bound_tracking=on \
95 -Denable_gtnets=on \
96 -Denable_java=on \
97 -Dwith_context=auto \
98 -Denable_compile_optimizations=off \
99 -Denable_compile_warnings=off \
100 -Denable_supernovae=off \
101 -Denable_smpi=on .
102 ctest -D ExperimentalStart
103 ctest -D ExperimentalConfigure
104 ctest -D ExperimentalBuild
105 ctest -D ExperimentalTest
106 ctest -D ExperimentalCoverage
107 ctest -D ExperimentalSubmit
108 make clean
109
110 if [ $SYSTEM = Linux ] ; then
111         cd ..
112         home_dir=`pwd`
113
114         svn checkout svn://scm.gforge.inria.fr/svn/simgrid/contrib/trunk/GTNetS/ --quiet
115         cd GTNetS
116         unzip gtnets-current.zip > /dev/null
117         tar zxvf gtnets-current-patch.tgz  > /dev/null
118         cd gtnets-current
119         cat ../00*.patch | patch -p1 > /dev/null
120
121         ARCH_32=`uname -m | cut -d'_' -f2`
122
123         if [ x$ARCH_32 = x64 ] ; then #only if 64 bit processor family
124         cat ../AMD64-FATAL-Removed-DUL_SIZE_DIFF-Added-fPIC-compillin.patch | patch -p1 > /dev/null
125         fi
126
127         ln -sf Makefile.linux Makefile
128         make -j 3 depend > /dev/null
129         make -j 3 debug > /dev/null 2>&1
130         make -j 3 opt > /dev/null 2>&1
131         wait
132         cd $home_dir
133         absolute_path=`pwd`
134         userhome=$absolute_path
135
136         if [ -e $userhome/usr/lib ] ; then
137                 echo ""
138         else
139                 mkdir $userhome/usr     
140                 mkdir $userhome/usr/lib
141         fi
142
143         if [ -e $userhome/usr/include ] ; then
144                 echo ""
145         else    
146                 mkdir $userhome/usr/include 
147         fi
148
149         cp -fr $absolute_path/GTNetS/gtnets-current/*.so $userhome/usr/lib/
150         ln -sf $userhome/usr/lib/libgtsim-opt.so $userhome/usr/lib/libgtnets.so
151
152         export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$userhome/usr/lib/
153         mkdir $userhome/usr/include/gtnets
154         cp -fr $absolute_path/GTNetS/gtnets-current/SRC/*.h $userhome/usr/include/gtnets
155         wait
156         cd $home_dir
157         rm -rf $absolute_path/GTNetS
158         cd simgrid-trunk
159         
160         if [ -e $userhome/usr/lib/libgtsim-opt.so ] ; then
161                 #gtnets
162                 cmake -Denable_lua=on \
163                 -Denable_ruby=on \
164                 -Denable_lib_static=on \
165                 -Denable_graphviz=on \
166                 -Denable_model-checking=off \
167                 -Denable_tracing=on \
168                 -Denable_latency_bound_tracking=on \
169                 -Denable_gtnets=on \
170                 -Denable_java=on \
171                 -Dwith_context=auto \
172                 -Denable_smpi=on .
173                 ctest -D ExperimentalStart
174                 ctest -D ExperimentalConfigure
175                 ctest -D ExperimentalBuild
176                 ctest -D ExperimentalTest
177                 ctest -D ExperimentalSubmit
178                 make clean
179         fi
180         
181         #full_flags
182         cmake -Denable_lua=on \
183         -Denable_ruby=on \
184         -Denable_lib_static=on \
185         -Denable_graphviz=on \
186         -Denable_model-checking=off \
187         -Denable_tracing=on \
188         -Denable_latency_bound_tracking=on \
189         -Denable_gtnets=off \
190         -Denable_java=on \
191         -Dwith_context=auto \
192         -Denable_compile_optimizations=on \
193         -Denable_compile_warnings=on \
194         -Denable_smpi=on .
195         ctest -D ExperimentalStart
196         ctest -D ExperimentalConfigure
197         ctest -D ExperimentalBuild
198         ctest -D ExperimentalTest
199         ctest -D ExperimentalSubmit
200         make clean
201 fi