Logo AND Algorithmique Numérique Distribuée

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