Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
d0b02b5302e731037fadc1c07b25ade79c1c5e5d
[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 and pthread
25 cmake -Denable_lua=on \
26 -Denable_ruby=on \
27 -Denable_lib_static=on \
28 -Denable_model-checking=off \
29 -Denable_tracing=on \
30 -Denable_latency_bound_tracking=off \
31 -Denable_gtnets=off \
32 -Denable_java=on \
33 -Denable_compile_optimizations=off \
34 -Denable_compile_warnings=off \
35 -Denable_supernovae=off \
36 -Denable_smpi=on .
37 ctest -D ExperimentalStart
38 ctest -D ExperimentalConfigure
39 ctest -D ExperimentalBuild
40 ctest -D ExperimentalTest
41 ctest -D ExperimentalSubmit
42 make clean
43
44 #supernovae
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=on \
51 -Denable_gtnets=off \
52 -Denable_java=on \
53 -Denable_compile_optimizations=off \
54 -Denable_compile_warnings=off \
55 -Denable_supernovae=on \
56 -Denable_smpi=on .
57 ctest -D ExperimentalStart
58 ctest -D ExperimentalConfigure
59 ctest -D ExperimentalBuild
60 ctest -D ExperimentalTest
61 ctest -D ExperimentalSubmit
62 make clean
63
64 #model checking
65 cmake -Denable_lua=on \
66 -Denable_ruby=on \
67 -Denable_lib_static=on \
68 -Denable_model-checking=on \
69 -Denable_tracing=on \
70 -Denable_latency_bound_tracking=on \
71 -Denable_gtnets=off \
72 -Denable_java=on \
73 -Denable_compile_optimizations=off \
74 -Denable_compile_warnings=off \
75 -Denable_supernovae=off \
76 -Denable_smpi=on .
77 ctest -D ExperimentalStart
78 ctest -D ExperimentalConfigure
79 ctest -D ExperimentalBuild
80 ctest -D ExperimentalTest
81 ctest -D ExperimentalCoverage
82 ctest -D ExperimentalSubmit
83 make clean
84
85 if [ $SYSTEM = Linux ] ; then
86         cd ..
87         home_dir=`pwd`
88
89         svn checkout svn://scm.gforge.inria.fr/svn/simgrid/contrib/trunk/GTNetS/ --quiet
90         cd GTNetS
91         unzip gtnets-current.zip > /dev/null
92         tar zxvf gtnets-current-patch.tgz  > /dev/null
93         cd gtnets-current
94         cat ../00*.patch | patch -p1 > /dev/null
95
96         ARCH_32=`uname -m | cut -d'_' -f2`
97
98         if [ x$ARCH_32 = x64 ] ; then #only if 64 bit processor family
99         cat ../AMD64-FATAL-Removed-DUL_SIZE_DIFF-Added-fPIC-compillin.patch | patch -p1 > /dev/null
100         fi
101
102         ln -sf Makefile.linux Makefile
103         make -j 3 depend > /dev/null
104         make -j 3 debug > /dev/null 2>&1
105         make -j 3 opt > /dev/null 2>&1
106         wait
107         cd $home_dir
108         absolute_path=`pwd`
109         userhome=$absolute_path
110
111         if [ -e $userhome/usr/lib ] ; then
112                 echo ""
113         else
114                 mkdir $userhome/usr     
115                 mkdir $userhome/usr/lib
116         fi
117
118         if [ -e $userhome/usr/include ] ; then
119                 echo ""
120         else    
121                 mkdir $userhome/usr/include 
122         fi
123
124         cp -fr $absolute_path/GTNetS/gtnets-current/*.so $userhome/usr/lib/
125         ln -sf $userhome/usr/lib/libgtsim-opt.so $userhome/usr/lib/libgtnets.so
126
127         export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$userhome/usr/lib/
128         mkdir $userhome/usr/include/gtnets
129         cp -fr $absolute_path/GTNetS/gtnets-current/SRC/*.h $userhome/usr/include/gtnets
130         wait
131         cd $home_dir
132         rm -rf $absolute_path/GTNetS
133         cd simgrid-trunk
134         
135         if [ -e $userhome/usr/lib/libgtsim-opt.so ] ; then
136                 #gtnets
137                 cmake -Denable_lua=on \
138                 -Denable_ruby=on \
139                 -Denable_lib_static=on \
140                 -Denable_model-checking=off \
141                 -Denable_tracing=on \
142                 -Denable_latency_bound_tracking=on \
143                 -Denable_gtnets=on \
144                 -Dgtnets_path=$userhome/usr \
145                 -Denable_java=on \
146                 -Denable_smpi=on .
147                 ctest -D ExperimentalStart
148                 ctest -D ExperimentalConfigure
149                 ctest -D ExperimentalBuild
150                 ctest -D ExperimentalTest
151                 ctest -D ExperimentalSubmit
152                 make clean
153         fi
154         
155         #full_flags
156         cmake -Denable_lua=on \
157         -Denable_ruby=on \
158         -Denable_lib_static=on \
159         -Denable_model-checking=off \
160         -Denable_tracing=on \
161         -Denable_latency_bound_tracking=on \
162         -Denable_gtnets=off \
163         -Denable_java=on \
164         -Denable_compile_optimizations=on \
165         -Denable_compile_warnings=on \
166         -Denable_smpi=on .
167         ctest -D ExperimentalStart
168         ctest -D ExperimentalConfigure
169         ctest -D ExperimentalBuild
170         ctest -D ExperimentalTest
171         ctest -D ExperimentalSubmit
172         make clean
173 fi