Logo AND Algorithmique Numérique Distribuée

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