Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Our usage of mmap (MMAP_ANONYMOUS) is Linux-specific
[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
39         sh ./buildtools/pipol/install_gtnets.sh ./gtnets_install
40         SIMGRID_ROOT=`pwd`
41         export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$SIMGRID_ROOT/gtnets_install/lib
42         perl ./buildtools/pipol/cmake.pl
43         perl ./buildtools/pipol/ruby.pl
44         
45         #supernovae
46         cmake \
47         -Denable_lua=on \
48         -Denable_ruby=on \
49         -Denable_java=on \
50         -Denable_tracing=on \
51         -Denable_smpi=on \
52         -Denable_supernovae=on \
53         -Denable_compile_optimizations=on \
54         -Denable_compile_warnings=on \
55         -Denable_lib_static=off \
56         -Denable_model-checking=off \
57         -Denable_latency_bound_tracking=off \
58         -Denable_gtnets=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         #MC
67         cmake \
68         -Denable_latency_bound_tracking=on \
69         -Denable_gtnets=on \
70         -Dgtnets_path=./gtnets_install \
71         -Denable_coverage=on \
72         -Denable_model-checking=on \
73         -Denable_compile_optimizations=off \
74         -Denable_auto_install=on \
75         -DCMAKE_INSTALL_PREFIX=./simgrid_install \
76         -Denable_supernovae=off .
77         ctest -D ExperimentalStart
78         ctest -D ExperimentalConfigure
79         ctest -D ExperimentalBuild
80         ctest -D ExperimentalTest
81         ctest -D ExperimentalCoverage
82         ctest -D ExperimentalSubmit
83         make clean
84 fi