Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update script pipol
[simgrid.git] / buildtools / pipol / Experimental.sh
1 #!/bin/bash
2
3 if [ -e ./pipol ] ; then
4         rm -rf ./pipol/$PIPOL_HOST
5         mkdir ./pipol/$PIPOL_HOST
6 else
7         mkdir ./pipol
8         rm -rf ./pipol/$PIPOL_HOST
9         mkdir ./pipol/$PIPOL_HOST
10 fi
11 cd ./pipol/$PIPOL_HOST
12
13 git clone git://scm.gforge.inria.fr/simgrid/simgrid.git simgrid --quiet
14 cd simgrid
15
16 if [ x$PIPOL_IMAGE == "xamd64-windows-server-2008-64bits.dd.gz" ] ; then
17
18         export PATH=/cygdrive/c/:/cygdrive/c/GnuWin32/bin/:/cygdrive/c/Windows/system32:/cygdrive/c/Windows
19         export PATH=$PATH:/cygdrive/c/strawberry/c/bin:/cygdrive/c/strawberry/perl/site/bin:/cygdrive/c/strawberry/perl/bin
20         
21         cmake \
22         -G"Unix Makefiles" \
23         -Denable_lua=off \
24         -Denable_tracing=off \
25         -Denable_smpi=off \
26         -Denable_supernovae=off \
27         -Denable_compile_optimizations=off \
28         -Denable_compile_warnings=off \
29         -Denable_lib_static=off \
30         -Denable_model-checking=off \
31         -Denable_latency_bound_tracking=off \
32         -Denable_gtnets=off .
33         ctest -D ExperimentalStart
34         ctest -D ExperimentalConfigure
35         ctest -D ExperimentalBuild
36         ctest -D ExperimentalSubmit
37 else
38         perl ./buildtools/pipol/cmake.pl
39         perl ./buildtools/pipol/ruby.pl
40         
41         
42         if [ x$PIPOL_IMAGE == "xamd64_2010-linux-ubuntu-maverick.dd.gz" ] ; then
43                 #mem-check
44                 cmake \
45                 -Denable_lua=off \
46                 -Denable_tracing=off \
47                 -Denable_smpi=off \
48                 -Denable_supernovae=off \
49                 -Denable_compile_optimizations=off \
50                 -Denable_compile_warnings=on \
51                 -Denable_lib_static=off \
52                 -Denable_model-checking=off \
53                 -Denable_latency_bound_tracking=off \
54                 -Denable_gtnets=off \
55                 -Denable_jedule=off \
56                 -Denable_memcheck=on ./
57                 ctest -D ExperimentalStart
58                 ctest -D ExperimentalConfigure
59                 ctest -D ExperimentalBuild
60                 ctest -D ExperimentalMemCheck
61                 ctest -D ExperimentalSubmit
62         else
63                 sh ./buildtools/pipol/install_gtnets.sh ./gtnets_install
64                 SIMGRID_ROOT=`pwd`
65                 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$SIMGRID_ROOT/gtnets_install/lib
66
67                 #supernovae
68                 cmake \
69                 -Denable_lua=on \
70                 -Denable_ruby=on \
71                 -Denable_java=on \
72                 -Denable_tracing=on \
73                 -Denable_smpi=on \
74                 -Denable_supernovae=on \
75                 -Denable_compile_optimizations=on \
76                 -Denable_compile_warnings=on \
77                 -Denable_lib_static=off \
78                 -Denable_model-checking=off \
79                 -Denable_latency_bound_tracking=off \
80                 -Denable_gtnets=off .
81                 ctest -D ExperimentalStart
82                 ctest -D ExperimentalConfigure
83                 ctest -D ExperimentalBuild
84                 ctest -D ExperimentalTest
85                 ctest -D ExperimentalSubmit
86                 make clean
87                 
88                 #MC
89                 cmake \
90                 -Denable_latency_bound_tracking=on \
91                 -Denable_gtnets=on \
92                 -Dgtnets_path=./gtnets_install \
93                 -Denable_coverage=on \
94                 -Denable_model-checking=on \
95                 -Denable_compile_optimizations=off \
96                 -Denable_auto_install=on \
97                 -DCMAKE_INSTALL_PREFIX=./simgrid_install \
98                 -Denable_supernovae=off .
99                 ctest -D ExperimentalStart
100                 ctest -D ExperimentalConfigure
101                 ctest -D ExperimentalBuild
102                 ctest -D ExperimentalTest
103                 ctest -D ExperimentalCoverage
104                 ctest -D ExperimentalSubmit
105                 make clean
106         fi
107 fi