Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Modify pipol scripts.
[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 #Unix
25 cmake \
26 -Denable_lua=on \
27 -Denable_ruby=on \
28 -Denable_java=on \
29 -Denable_tracing=on \
30 -Denable_smpi=on \
31 -Denable_lib_static=off \
32 -Denable_model-checking=off \
33 -Denable_latency_bound_tracking=off \
34 -Denable_gtnets=off \
35 -Denable_compile_optimizations=off \
36 -Denable_compile_warnings=off \
37 -Denable_supernovae=off .
38 ctest -D ExperimentalStart
39 ctest -D ExperimentalConfigure
40 ctest -D ExperimentalBuild
41 ctest -D ExperimentalTest
42 ctest -D ExperimentalSubmit
43 make clean
44
45 #full_flags
46 cmake \
47 -Denable_lua=on \
48 -Denable_ruby=on \
49 -Denable_java=on \
50 -Denable_tracing=on \
51 -Denable_smpi=on \
52 -Denable_compile_optimizations=on \
53 -Denable_compile_warnings=on \
54 -Denable_lib_static=off \
55 -Denable_model-checking=off \
56 -Denable_latency_bound_tracking=off \
57 -Denable_gtnets=off \
58 -Denable_supernovae=off .
59 ctest -D ExperimentalStart
60 ctest -D ExperimentalConfigure
61 ctest -D ExperimentalBuild
62 ctest -D ExperimentalTest
63 ctest -D ExperimentalSubmit
64 make clean
65
66 #supernovae
67 cmake \
68 -Denable_lua=on \
69 -Denable_ruby=on \
70 -Denable_java=on \
71 -Denable_tracing=on \
72 -Denable_smpi=on \
73 -Denable_supernovae=on \
74 -Denable_compile_optimizations=off \
75 -Denable_compile_warnings=off \
76 -Denable_lib_static=off \
77 -Denable_model-checking=off \
78 -Denable_latency_bound_tracking=off \
79 -Denable_gtnets=off .
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 \
89 -Denable_coverage=on \
90 -Denable_lua=on \
91 -Denable_ruby=on \
92 -Denable_java=on \
93 -Denable_model-checking=on \
94 -Denable_tracing=on \
95 -Denable_latency_bound_tracking=on \
96 -Denable_gtnets=off \
97 -Denable_compile_optimizations=off \
98 -Denable_compile_warnings=off \
99 -Denable_supernovae=off \
100 -Denable_lib_static=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
112         sh ./buildtools/pipol/install_gtnets.sh ./gtnets_install
113         
114         if [ -e ./gtnets_install/lib/libgtsim-opt.so ] ; then
115                 #gtnets
116                 cmake \
117                 -Denable_lua=on \
118                 -Denable_ruby=on \
119                 -Denable_lib_static=on \
120                 -Denable_model-checking=off \
121                 -Denable_tracing=on \
122                 -Denable_latency_bound_tracking=on \
123                 -Denable_gtnets=on \
124                 -Denable_java=on \
125                 -Dgtnets_path=$userhome/usr \
126                 -Denable_coverage=off \
127                 -Denable_smpi=on .
128                 ctest -D ExperimentalStart
129                 ctest -D ExperimentalConfigure
130                 ctest -D ExperimentalBuild
131                 ctest -D ExperimentalTest
132                 ctest -D ExperimentalSubmit
133                 make clean
134         fi
135
136         #Make the memcheck mode
137         cmake \
138         -Denable_lua=off \
139         -Denable_ruby=off \
140         -Denable_lib_static=off \
141         -Denable_model-checking=off \
142         -Denable_tracing=off \
143         -Denable_latency_bound_tracking=off \
144         -Denable_coverage=off \
145         -Denable_gtnets=off \
146         -Denable_java=off \
147         -Denable_memcheck=on ./
148         ctest -D ExperimentalStart
149         ctest -D ExperimentalConfigure
150         ctest -D ExperimentalBuild
151         ctest -D ExperimentalMemCheck
152         ctest -D ExperimentalSubmit
153         make clean
154 fi