Logo AND Algorithmique Numérique Distribuée

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