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 89eb9f0..5163e18 100644 (file)
@@ -12,63 +12,94 @@ else
 fi
 cd ./pipol/$PIPOL_HOST
 
-sh /home/mescal/navarro/liste_install.sh
-
 svn checkout svn://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk simgrid-trunk --quiet
-cd simgrid-trunk
 
-#Make the ucontext mode
-cmake -Dwith_context=ucontext -Denable_coverage=on ./
-ctest -D ExperimentalStart
-ctest -D ExperimentalConfigure
-ctest -D ExperimentalBuild
-ctest -D ExperimentalTest
-ctest -D ExperimentalCoverage
-ctest -D ExperimentalSubmit
-make clean
+sh ./simgrid-trunk/buildtools/pipol/liste_install.sh
+perl ./simgrid-trunk/buildtools/pipol/cmake.pl
+perl ./simgrid-trunk/buildtools/pipol/ruby.pl
 
-#Make the pthread mode
-cmake -Dwith_context=pthread ./
-ctest -D ExperimentalStart
-ctest -D ExperimentalConfigure
-ctest -D ExperimentalBuild
-ctest -D ExperimentalTest
-ctest -D ExperimentalCoverage
-ctest -D ExperimentalSubmit
-make clean
+cd simgrid-trunk
 
-#Make the tracing mode
-cmake -Dwith_context=auto -Denable_tracing=on ./
+rm CMakeCache.txt
+
+#Unix
+cmake \
+-Denable_lua=on \
+-Denable_ruby=on \
+-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_compile_optimizations=off \
+-Denable_compile_warnings=off \
+-Denable_supernovae=off .
 ctest -D ExperimentalStart
 ctest -D ExperimentalConfigure
 ctest -D ExperimentalBuild
 ctest -D ExperimentalTest
-ctest -D ExperimentalCoverage
 ctest -D ExperimentalSubmit
 make clean
 
-#Make the model-checking mode
-cmake -Denable_model-checking=on ./
+#full_flags
+cmake \
+-Denable_lua=on \
+-Denable_ruby=on \
+-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_supernovae=off .
 ctest -D ExperimentalStart
 ctest -D ExperimentalConfigure
 ctest -D ExperimentalBuild
 ctest -D ExperimentalTest
-ctest -D ExperimentalCoverage
 ctest -D ExperimentalSubmit
 make clean
 
-#Make the full flags mode
-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 ./
+#supernovae
+cmake \
+-Denable_lua=on \
+-Denable_ruby=on \
+-Denable_java=on \
+-Denable_tracing=on \
+-Denable_smpi=on \
+-Denable_supernovae=on \
+-Denable_compile_optimizations=off \
+-Denable_compile_warnings=off \
+-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
 ctest -D ExperimentalTest
-ctest -D ExperimentalCoverage
 ctest -D ExperimentalSubmit
 make clean
 
-#Make the supernovae mode
-cmake -Dsupernovae=on ./
+#model checking
+cmake \
+-Denable_coverage=on \
+-Denable_lua=on \
+-Denable_ruby=on \
+-Denable_java=on \
+-Denable_model-checking=on \
+-Denable_tracing=on \
+-Denable_latency_bound_tracking=on \
+-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
 ctest -D ExperimentalBuild
@@ -78,73 +109,47 @@ 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
-               #Make gtnets
-               cmake -Dsupernovae=off -Denable_compile_warnings=off -Denable_compile_optimizations=off -Dgtnets_path=$absolute_path/usr ./
+       if [ -e ./gtnets_install/lib/libgtsim-opt.so ] ; then
+               #gtnets
+               cmake \
+               -Denable_lua=on \
+               -Denable_ruby=on \
+               -Denable_lib_static=on \
+               -Denable_model-checking=off \
+               -Denable_tracing=on \
+               -Denable_latency_bound_tracking=on \
+               -Denable_gtnets=on \
+               -Denable_java=on \
+               -Dgtnets_path=$userhome/usr \
+               -Denable_coverage=off \
+               -Denable_smpi=on .
                ctest -D ExperimentalStart
                ctest -D ExperimentalConfigure
                ctest -D ExperimentalBuild
                ctest -D ExperimentalTest
-               ctest -D ExperimentalCoverage
                ctest -D ExperimentalSubmit
                make clean
        fi
-fi
 
-#Make the memcheck mode
-cmake -Denable_gtnets=off ./
-ctest -D ExperimentalStart
-ctest -D ExperimentalConfigure
-ctest -D ExperimentalBuild
-ctest -D ExperimentalMemCheck
-ctest -D ExperimentalSubmit
-make clean
\ No newline at end of file
+       #Make the memcheck mode
+       cmake \
+       -Denable_lua=off \
+       -Denable_ruby=off \
+       -Denable_lib_static=off \
+       -Denable_model-checking=off \
+       -Denable_tracing=off \
+       -Denable_latency_bound_tracking=off \
+       -Denable_coverage=off \
+       -Denable_gtnets=off \
+       -Denable_java=off \
+       -Denable_memcheck=on ./
+       ctest -D ExperimentalStart
+       ctest -D ExperimentalConfigure
+       ctest -D ExperimentalBuild
+       ctest -D ExperimentalMemCheck
+       ctest -D ExperimentalSubmit
+       make clean
+fi
\ No newline at end of file