Logo AND Algorithmique Numérique Distribuée

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