Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add script to execute cmake manually or with pipol.
[simgrid.git] / buildtools / pipol / Experimental_all_simgrid_gt.sh
1 #!/bin/bash
2
3 SYSTEM=`uname`
4
5 sh /home/mescal/navarro/liste_install.sh
6
7 if [ -e ./pipol ] ; then
8         rm -rf ./pipol/$PIPOL_HOST
9         mkdir ./pipol/$PIPOL_HOST
10 else
11         mkdir ./pipol
12         rm -rf ./pipol/$PIPOL_HOST
13         mkdir ./pipol/$PIPOL_HOST
14 fi
15
16 cd ./pipol/$PIPOL_HOST
17
18 svn checkout svn://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk simgrid-trunk --quiet
19 cd simgrid-trunk
20
21 #Make the ucontext mode
22 cmake -Dwith_context=ucontext -Denable_coverage=on ./
23 ctest -D ExperimentalStart
24 ctest -D ExperimentalConfigure
25 ctest -D ExperimentalBuild
26 ctest -D ExperimentalTest
27 ctest -D ExperimentalCoverage
28 ctest -D ExperimentalSubmit
29 make clean
30
31 #Make the pthread mode
32 cmake -Dwith_context=pthread ./
33 ctest -D ExperimentalStart
34 ctest -D ExperimentalConfigure
35 ctest -D ExperimentalBuild
36 ctest -D ExperimentalTest
37 ctest -D ExperimentalCoverage
38 ctest -D ExperimentalSubmit
39 make clean
40
41 #Make the tracing mode
42 cmake -Dwith_context=auto -Denable_tracing=on ./
43 ctest -D ExperimentalStart
44 ctest -D ExperimentalConfigure
45 ctest -D ExperimentalBuild
46 ctest -D ExperimentalTest
47 ctest -D ExperimentalCoverage
48 ctest -D ExperimentalSubmit
49 make clean
50
51 #Make the full flags mode
52 cmake -Denable_tracing=off -Denable_compile_warnings=on -Denable_compile_optimizations=on -Ddisable_lua=on -Ddisable_java=on -Ddisable_ruby=on ./
53 ctest -D ExperimentalStart
54 ctest -D ExperimentalConfigure
55 ctest -D ExperimentalBuild
56 ctest -D ExperimentalTest
57 ctest -D ExperimentalCoverage
58 ctest -D ExperimentalSubmit
59 make clean
60
61 #Make the supernovae mode
62 cmake -Dsupernovae=on ./
63 ctest -D ExperimentalStart
64 ctest -D ExperimentalConfigure
65 ctest -D ExperimentalBuild
66 ctest -D ExperimentalTest
67 ctest -D ExperimentalCoverage
68 ctest -D ExperimentalSubmit
69 make clean
70
71 if [ $SYSTEM = Linux ] ; then
72         cd ..
73         home_dir=`pwd`
74
75         svn checkout svn://scm.gforge.inria.fr/svn/simgrid/contrib/trunk/GTNetS/ --quiet
76         cd GTNetS
77         unzip gtnets-current.zip > /dev/null
78         tar zxvf gtnets-current-patch.tgz  > /dev/null
79         cd gtnets-current
80         cat ../00*.patch | patch -p1 > /dev/null
81
82         ARCH_32=`uname -m | cut -d'_' -f2`
83
84         if [ x$ARCH_32 = x64 ] ; then #only if 64 bit processor family
85         cat ../AMD64-FATAL-Removed-DUL_SIZE_DIFF-Added-fPIC-compillin.patch | patch -p1 > /dev/null
86         fi
87
88         ln -sf Makefile.linux Makefile
89         make -j 3 depend > /dev/null
90         make -j 3 debug > /dev/null 2>&1
91         make -j 3 opt > /dev/null 2>&1
92         wait
93         cd $home_dir
94         absolute_path=`pwd`
95         userhome=$absolute_path
96
97         if [ -e $userhome/usr/lib ] ; then
98                 echo ""
99         else
100                 mkdir $userhome/usr     
101                 mkdir $userhome/usr/lib
102         fi
103
104         if [ -e $userhome/usr/include ] ; then
105                 echo ""
106         else    
107                 mkdir $userhome/usr/include 
108         fi
109
110         cp -fr $absolute_path/GTNetS/gtnets-current/*.so $userhome/usr/lib/
111         ln -sf $userhome/usr/lib/libgtsim-opt.so $userhome/usr/lib/libgtnets.so
112
113         export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$userhome/usr/lib/
114         mkdir $userhome/usr/include/gtnets
115         cp -fr $absolute_path/GTNetS/gtnets-current/SRC/*.h $userhome/usr/include/gtnets
116         wait
117         cd $home_dir
118         rm -rf $absolute_path/GTNetS
119         cd simgrid-trunk
120         
121         if [ -e $userhome/usr/lib/libgtsim-opt.so ] ; then
122                 #Make gtnets
123                 cmake -Dsupernovae=off -Denable_compile_warnings=off -Denable_compile_optimizations=off -Dgtnets_path=$absolute_path/usr ./
124                 ctest -D ExperimentalStart
125                 ctest -D ExperimentalConfigure
126                 ctest -D ExperimentalBuild
127                 ctest -D ExperimentalTest
128                 ctest -D ExperimentalCoverage
129                 ctest -D ExperimentalSubmit
130                 make clean
131         fi
132 fi
133 #Make the memcheck
134 cmake -Denable_memcheck=on ./
135 ctest -D ExperimentalStart
136 ctest -D ExperimentalConfigure
137 ctest -D ExperimentalBuild
138 ctest -D ExperimentalCoverage
139 ctest -D ExperimentalMemCheck
140 ctest -D ExperimentalSubmit