Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Now install ruby v1.9.*
[simgrid.git] / buildtools / pipol / Experimental_all_simgrid_gt.sh
index 229320c..5163e18 100644 (file)
@@ -16,26 +16,26 @@ svn checkout svn://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk simgrid-trunk -
 
 sh ./simgrid-trunk/buildtools/pipol/liste_install.sh
 perl ./simgrid-trunk/buildtools/pipol/cmake.pl
+perl ./simgrid-trunk/buildtools/pipol/ruby.pl
 
 cd simgrid-trunk
 
 rm CMakeCache.txt
 
-#ucontext
-cmake -Denable_lua=on \
+#Unix
+cmake \
+-Denable_lua=on \
 -Denable_ruby=on \
--Denable_lib_static=on \
--Denable_graphviz=on \
--Denable_model-checking=off \
+-Denable_java=on \
 -Denable_tracing=on \
+-Denable_smpi=on \
+-Denable_lib_static=off \
+-Denable_model-checking=off \
 -Denable_latency_bound_tracking=off \
 -Denable_gtnets=off \
--Denable_java=on \
--Dwith_context=auto \
 -Denable_compile_optimizations=off \
 -Denable_compile_warnings=off \
--Denable_supernovae=off \
--Denable_smpi=on .
+-Denable_supernovae=off .
 ctest -D ExperimentalStart
 ctest -D ExperimentalConfigure
 ctest -D ExperimentalBuild
@@ -43,18 +43,20 @@ ctest -D ExperimentalTest
 ctest -D ExperimentalSubmit
 make clean
 
-#pthread
-cmake -Denable_lua=on \
+#full_flags
+cmake \
+-Denable_lua=on \
 -Denable_ruby=on \
--Denable_lib_static=on \
--Denable_graphviz=on \
--Denable_model-checking=off \
+-Denable_java=on \
 -Denable_tracing=on \
+-Denable_smpi=on \
+-Denable_compile_optimizations=on \
+-Denable_compile_warnings=on \
+-Denable_lib_static=off \
+-Denable_model-checking=off \
 -Denable_latency_bound_tracking=off \
 -Denable_gtnets=off \
--Denable_java=on \
--Dwith_context=pthread \
--Denable_smpi=on .
+-Denable_supernovae=off .
 ctest -D ExperimentalStart
 ctest -D ExperimentalConfigure
 ctest -D ExperimentalBuild
@@ -63,21 +65,19 @@ ctest -D ExperimentalSubmit
 make clean
 
 #supernovae
-cmake -Denable_lua=on \
+cmake \
+-Denable_lua=on \
 -Denable_ruby=on \
--Denable_lib_static=on \
--Denable_graphviz=on \
--Denable_model-checking=off \
--Denable_tracing=on \
--Denable_latency_bound_tracking=on \
--Denable_gtnets=off \
--Dgtnets_path=/usr \
 -Denable_java=on \
--Dwith_context=auto \
+-Denable_tracing=on \
+-Denable_smpi=on \
+-Denable_supernovae=on \
 -Denable_compile_optimizations=off \
 -Denable_compile_warnings=off \
--Denable_supernovae=on \
--Denable_smpi=on .
+-Denable_lib_static=off \
+-Denable_model-checking=off \
+-Denable_latency_bound_tracking=off \
+-Denable_gtnets=off .
 ctest -D ExperimentalStart
 ctest -D ExperimentalConfigure
 ctest -D ExperimentalBuild
@@ -86,20 +86,19 @@ ctest -D ExperimentalSubmit
 make clean
 
 #model checking
-cmake -Denable_lua=on \
+cmake \
+-Denable_coverage=on \
+-Denable_lua=on \
 -Denable_ruby=on \
--Denable_lib_static=on \
--Denable_graphviz=on \
+-Denable_java=on \
 -Denable_model-checking=on \
 -Denable_tracing=on \
 -Denable_latency_bound_tracking=on \
--Denable_gtnets=on \
--Dgtnets_path=/usr \
--Denable_java=on \
--Dwith_context=auto \
+-Denable_gtnets=off \
 -Denable_compile_optimizations=off \
 -Denable_compile_warnings=off \
 -Denable_supernovae=off \
+-Denable_lib_static=off \
 -Denable_smpi=on .
 ctest -D ExperimentalStart
 ctest -D ExperimentalConfigure
@@ -110,68 +109,22 @@ ctest -D ExperimentalSubmit
 make clean
 
 if [ $SYSTEM = Linux ] ; then
-       cd ..
-       home_dir=`pwd`
-
-       svn checkout svn://scm.gforge.inria.fr/svn/simgrid/contrib/trunk/GTNetS/ --quiet
-       cd GTNetS
-       unzip gtnets-current.zip > /dev/null
-       tar zxvf gtnets-current-patch.tgz  > /dev/null
-       cd gtnets-current
-       cat ../00*.patch | patch -p1 > /dev/null
-
-       ARCH_32=`uname -m | cut -d'_' -f2`
-
-       if [ x$ARCH_32 = x64 ] ; then #only if 64 bit processor family
-       cat ../AMD64-FATAL-Removed-DUL_SIZE_DIFF-Added-fPIC-compillin.patch | patch -p1 > /dev/null
-       fi
-
-       ln -sf Makefile.linux Makefile
-       make -j 3 depend > /dev/null
-       make -j 3 debug > /dev/null 2>&1
-       make -j 3 opt > /dev/null 2>&1
-       wait
-       cd $home_dir
-       absolute_path=`pwd`
-       userhome=$absolute_path
 
-       if [ -e $userhome/usr/lib ] ; then
-               echo ""
-       else
-               mkdir $userhome/usr     
-               mkdir $userhome/usr/lib
-       fi
-
-       if [ -e $userhome/usr/include ] ; then
-               echo ""
-       else    
-               mkdir $userhome/usr/include 
-       fi
-
-       cp -fr $absolute_path/GTNetS/gtnets-current/*.so $userhome/usr/lib/
-       ln -sf $userhome/usr/lib/libgtsim-opt.so $userhome/usr/lib/libgtnets.so
-
-       export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$userhome/usr/lib/
-       mkdir $userhome/usr/include/gtnets
-       cp -fr $absolute_path/GTNetS/gtnets-current/SRC/*.h $userhome/usr/include/gtnets
-       wait
-       cd $home_dir
-       rm -rf $absolute_path/GTNetS
-       cd simgrid-trunk
+       sh ./buildtools/pipol/install_gtnets.sh ./gtnets_install
        
-       if [ -e $userhome/usr/lib/libgtsim-opt.so ] ; then
+       if [ -e ./gtnets_install/lib/libgtsim-opt.so ] ; then
                #gtnets
-               cmake -Denable_lua=on \
+               cmake \
+               -Denable_lua=on \
                -Denable_ruby=on \
                -Denable_lib_static=on \
-               -Denable_graphviz=on \
                -Denable_model-checking=off \
                -Denable_tracing=on \
                -Denable_latency_bound_tracking=on \
                -Denable_gtnets=on \
-               -Dgtnets_path=/usr \
                -Denable_java=on \
-               -Dwith_context=auto \
+               -Dgtnets_path=$userhome/usr \
+               -Denable_coverage=off \
                -Denable_smpi=on .
                ctest -D ExperimentalStart
                ctest -D ExperimentalConfigure
@@ -180,26 +133,23 @@ if [ $SYSTEM = Linux ] ; then
                ctest -D ExperimentalSubmit
                make clean
        fi
-       
-       #full_flags
-       cmake -Denable_lua=on \
-       -Denable_ruby=on \
-       -Denable_lib_static=on \
-       -Denable_graphviz=on \
+
+       #Make the memcheck mode
+       cmake \
+       -Denable_lua=off \
+       -Denable_ruby=off \
+       -Denable_lib_static=off \
        -Denable_model-checking=off \
-       -Denable_tracing=on \
-       -Denable_latency_bound_tracking=on \
+       -Denable_tracing=off \
+       -Denable_latency_bound_tracking=off \
+       -Denable_coverage=off \
        -Denable_gtnets=off \
-       -Dgtnets_path=/usr \
-       -Denable_java=on \
-       -Dwith_context=auto \
-       -Denable_compile_optimizations=on \
-       -Denable_compile_warnings=on \
-       -Denable_smpi=on .
+       -Denable_java=off \
+       -Denable_memcheck=on ./
        ctest -D ExperimentalStart
        ctest -D ExperimentalConfigure
        ctest -D ExperimentalBuild
-       ctest -D ExperimentalTest
+       ctest -D ExperimentalMemCheck
        ctest -D ExperimentalSubmit
        make clean
 fi
\ No newline at end of file