Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Don't include generated headers into distrib.
[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/CMake\ 2.8/bin/:/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         -Drelease=on \
33         -Denable_gtnets=off .
34         ctest -D ExperimentalStart
35         ctest -D ExperimentalConfigure
36         ctest -D ExperimentalBuild
37         ctest -D ExperimentalSubmit
38 else
39
40         perl ./buildtools/pipol/cmake.pl
41         perl ./buildtools/pipol/ruby.pl
42                 
43         if [ x$PIPOL_IMAGE == "xamd64_2010-linux-ubuntu-maverick.dd.gz" ] ; then
44                 #mem-check
45                 cmake \
46                 -Denable_lua=off \
47                 -Denable_tracing=off \
48                 -Denable_smpi=off \
49                 -Denable_supernovae=off \
50                 -Denable_compile_optimizations=off \
51                 -Denable_compile_warnings=on \
52                 -Denable_lib_static=off \
53                 -Denable_model-checking=off \
54                 -Denable_latency_bound_tracking=off \
55                 -Denable_gtnets=off \
56                 -Denable_jedule=off \
57                 -Drelease=on \
58                 -Denable_memcheck=on ./
59                 ctest -D ExperimentalStart
60                 ctest -D ExperimentalConfigure
61                 ctest -D ExperimentalBuild
62                 ctest -D ExperimentalMemCheck
63                 ctest -D ExperimentalSubmit
64         else
65                 sh ./buildtools/pipol/install_gtnets.sh ./gtnets_install
66                 SIMGRID_ROOT=`pwd`
67                 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$SIMGRID_ROOT/gtnets_install/lib
68
69                 #supernovae
70                 cmake \
71                 -Denable_lua=on \
72                 -Denable_ruby=on \
73                 -Denable_java=on \
74                 -Denable_tracing=on \
75                 -Denable_smpi=on \
76                 -Denable_supernovae=on \
77                 -Denable_compile_optimizations=on \
78                 -Denable_compile_warnings=on \
79                 -Denable_lib_static=off \
80                 -Denable_model-checking=off \
81                 -Denable_latency_bound_tracking=off \
82                 -Drelease=on \
83                 -Denable_gtnets=off .
84                 ctest -D ExperimentalStart
85                 ctest -D ExperimentalConfigure
86                 ctest -D ExperimentalBuild
87                 ctest -D ExperimentalTest
88                 ctest -D ExperimentalSubmit
89                 make clean
90                 
91                 #MC
92                 cmake \
93                 -Denable_latency_bound_tracking=on \
94                 -Denable_gtnets=on \
95                 -Dgtnets_path=./gtnets_install \
96                 -Denable_coverage=on \
97                 -Denable_model-checking=on \
98                 -Denable_compile_optimizations=off \
99                 -Denable_auto_install=on \
100                 -DCMAKE_INSTALL_PREFIX=./simgrid_install \
101                 -Drelease=on \
102                 -Denable_supernovae=off .
103                 ctest -D ExperimentalStart
104                 ctest -D ExperimentalConfigure
105                 ctest -D ExperimentalBuild
106                 ctest -D ExperimentalTest
107                 ctest -D ExperimentalCoverage
108                 ctest -D ExperimentalSubmit
109                 make clean
110         fi
111 fi