Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
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 cmake \
25 -Denable_lua=on \
26 -Denable_ruby=on \
27 -Denable_java=on \
28 -Denable_tracing=on \
29 -Denable_smpi=on \
30 -Denable_lib_static=off \
31 -Denable_model-checking=off \
32 -Denable_latency_bound_tracking=off \
33 -Denable_gtnets=off \
34 -Denable_compile_optimizations=off \
35 -Denable_compile_warnings=off \
36 -Denable_supernovae=off .
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 #full_flags
45 cmake \
46 -Denable_lua=on \
47 -Denable_ruby=on \
48 -Denable_java=on \
49 -Denable_tracing=on \
50 -Denable_smpi=on \
51 -Denable_compile_optimizations=on \
52 -Denable_compile_warnings=on \
53 -Denable_lib_static=off \
54 -Denable_model-checking=off \
55 -Denable_latency_bound_tracking=off \
56 -Denable_gtnets=off \
57 -Denable_supernovae=off .
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 \
67 -Denable_lua=on \
68 -Denable_ruby=on \
69 -Denable_java=on \
70 -Denable_tracing=on \
71 -Denable_smpi=on \
72 -Denable_supernovae=on \
73 -Denable_compile_optimizations=off \
74 -Denable_compile_warnings=off \
75 -Denable_lib_static=off \
76 -Denable_model-checking=off \
77 -Denable_latency_bound_tracking=off \
78 -Denable_gtnets=off .
79 ctest -D ExperimentalStart
80 ctest -D ExperimentalConfigure
81 ctest -D ExperimentalBuild
82 ctest -D ExperimentalTest
83 ctest -D ExperimentalSubmit
84 make clean
85
86 #model checking
87 cmake \
88 -Denable_coverage=on \
89 -Denable_lua=on \
90 -Denable_ruby=on \
91 -Denable_java=on \
92 -Denable_model-checking=on \
93 -Denable_tracing=on \
94 -Denable_latency_bound_tracking=on \
95 -Denable_gtnets=off \
96 -Denable_compile_optimizations=off \
97 -Denable_compile_warnings=off \
98 -Denable_supernovae=off \
99 -Denable_lib_static=off \
100 -Denable_smpi=on .
101 ctest -D ExperimentalStart
102 ctest -D ExperimentalConfigure
103 ctest -D ExperimentalBuild
104 ctest -D ExperimentalTest
105 ctest -D ExperimentalCoverage
106 ctest -D ExperimentalSubmit
107 make clean
108
109 if [ $SYSTEM = Linux ] ; then
110
111         sh ./buildtools/pipol/install_gtnets.sh ./gtnets_install
112         
113         if [ -e ./gtnets_install/lib/libgtsim-opt.so ] ; then
114                 #gtnets
115                 cmake \
116                 -Denable_lua=on \
117                 -Denable_ruby=on \
118                 -Denable_lib_static=on \
119                 -Denable_model-checking=off \
120                 -Denable_tracing=on \
121                 -Denable_latency_bound_tracking=on \
122                 -Denable_gtnets=on \
123                 -Denable_java=on \
124                 -Dgtnets_path=$userhome/usr \
125                 -Denable_coverage=off \
126                 -Denable_smpi=on .
127                 ctest -D ExperimentalStart
128                 ctest -D ExperimentalConfigure
129                 ctest -D ExperimentalBuild
130                 ctest -D ExperimentalTest
131                 ctest -D ExperimentalSubmit
132                 make clean
133         fi
134 fi
135
136 if[ x$PIPOL_IMAGE = xi386-linux-ubuntu-karmic.dd.gz ]
137         #Make the memcheck mode
138         cmake \
139         -Denable_lua=off \
140         -Denable_ruby=off \
141         -Denable_lib_static=off \
142         -Denable_model-checking=off \
143         -Denable_tracing=off \
144         -Denable_latency_bound_tracking=off \
145         -Denable_coverage=off \
146         -Denable_gtnets=off \
147         -Denable_java=off \
148         -Denable_memcheck=on ./
149         ctest -D ExperimentalStart
150         ctest -D ExperimentalConfigure
151         ctest -D ExperimentalBuild
152         ctest -D ExperimentalMemCheck
153         ctest -D ExperimentalSubmit
154         make clean
155 fi