From 1cc4b141215ee5de85646a00989478ce9054bebe Mon Sep 17 00:00:00 2001 From: navarrop Date: Thu, 8 Apr 2010 13:28:28 +0000 Subject: [PATCH] Add script to execute cmake manually or with pipol. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7477 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- .../pipol/Experimental_all_simgrid_gt.sh | 140 +++++++++++++++ buildtools/pipol/Nightly_simgrid.sh | 161 ++++++++++++++++++ buildtools/pipol/README | 13 ++ buildtools/pipol/deploy.sh | 18 ++ buildtools/pipol/liste_install.sh | 140 +++++++++++++++ buildtools/pipol/pre-simgrid.sh | 37 ++++ 6 files changed, 509 insertions(+) create mode 100644 buildtools/pipol/Experimental_all_simgrid_gt.sh create mode 100644 buildtools/pipol/Nightly_simgrid.sh create mode 100644 buildtools/pipol/README create mode 100644 buildtools/pipol/deploy.sh create mode 100644 buildtools/pipol/liste_install.sh create mode 100644 buildtools/pipol/pre-simgrid.sh diff --git a/buildtools/pipol/Experimental_all_simgrid_gt.sh b/buildtools/pipol/Experimental_all_simgrid_gt.sh new file mode 100644 index 0000000000..01ed1a1a7d --- /dev/null +++ b/buildtools/pipol/Experimental_all_simgrid_gt.sh @@ -0,0 +1,140 @@ +#!/bin/bash + +SYSTEM=`uname` + +sh /home/mescal/navarro/liste_install.sh + +if [ -e ./pipol ] ; then + rm -rf ./pipol/$PIPOL_HOST + mkdir ./pipol/$PIPOL_HOST +else + mkdir ./pipol + rm -rf ./pipol/$PIPOL_HOST + mkdir ./pipol/$PIPOL_HOST +fi + +cd ./pipol/$PIPOL_HOST + +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 + +#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 + +#Make the tracing mode +cmake -Dwith_context=auto -Denable_tracing=on ./ +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_tracing=off -Denable_compile_warnings=on -Denable_compile_optimizations=on -Ddisable_lua=on -Ddisable_java=on -Ddisable_ruby=on ./ +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 ./ +ctest -D ExperimentalStart +ctest -D ExperimentalConfigure +ctest -D ExperimentalBuild +ctest -D ExperimentalTest +ctest -D ExperimentalCoverage +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 + + 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 ./ + 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 +cmake -Denable_memcheck=on ./ +ctest -D ExperimentalStart +ctest -D ExperimentalConfigure +ctest -D ExperimentalBuild +ctest -D ExperimentalCoverage +ctest -D ExperimentalMemCheck +ctest -D ExperimentalSubmit diff --git a/buildtools/pipol/Nightly_simgrid.sh b/buildtools/pipol/Nightly_simgrid.sh new file mode 100644 index 0000000000..78c805c754 --- /dev/null +++ b/buildtools/pipol/Nightly_simgrid.sh @@ -0,0 +1,161 @@ +#!/bin/bash + +#PRE-PIPOL /home/mescal/navarro/pre-simgrid.sh + +#PIPOL esn i386-linux-ubuntu-intrepid.dd.gz none 02:00 --user --quiet + +#PIPOL esn i386-linux-ubuntu-jaunty.dd.gz none 02:00 --user --quiet + +#PIPOL esn i386-linux-ubuntu-karmic.dd.gz none 02:00 --user --quiet +#PIPOL esn amd64-linux-ubuntu-karmic.dd.gz none 02:00 --user --quiet + +#PIPOL esn i386-linux-debian-lenny.dd.gz none 02:00 --user --quiet +#PIPOL esn amd64-linux-debian-lenny.dd.gz none 02:00 --user --quiet + +#PIPOL esn i386-linux-debian-testing.dd none 02:00 --user --quiet + +#PIPOL esn i386-linux-fedora-core11.dd.gz none 02:00 --user --quiet + +#PIPOL esn i386-linux-fedora-core12.dd.gz none 02:00 --user --quiet +#PIPOL esn amd64-linux-fedora-core12.dd.gz none 02:00 --user --quiet + +SYSTEM=`uname` + +sh /home/mescal/navarro/liste_install.sh + + +if [ -e ./pipol ] ; then + rm -r ./pipol/$PIPOL_HOST + mkdir ./pipol/$PIPOL_HOST +else + mkdir ./pipol + rm -r ./pipol/$PIPOL_HOST + mkdir ./pipol/$PIPOL_HOST +fi + +cd ./pipol/$PIPOL_HOST + +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 NightlyStart +ctest -D NightlyConfigure +ctest -D NightlyBuild +ctest -D NightlyTest +ctest -D NightlyCoverage +ctest -D NightlySubmit +make clean + +#Make the pthread mode +cmake -Dwith_context=pthread ./ +ctest -D NightlyStart +ctest -D NightlyConfigure +ctest -D NightlyBuild +ctest -D NightlyTest +ctest -D NightlyCoverage +ctest -D NightlySubmit +make clean + +#Make the tracing mode +cmake -Dwith_context=auto -Denable_tracing=on ./ +ctest -D NightlyStart +ctest -D NightlyConfigure +ctest -D NightlyBuild +ctest -D NightlyTest +ctest -D NightlyCoverage +ctest -D NightlySubmit +make clean + +#Make the full flags mode +cmake -Denable_tracing=off -Denable_compile_warnings=on -Denable_compile_optimizations=on -Ddisable_lua=on -Ddisable_java=on -Ddisable_ruby=on ./ +ctest -D NightlyStart +ctest -D NightlyConfigure +ctest -D NightlyBuild +ctest -D NightlyTest +ctest -D NightlyCoverage +ctest -D NightlySubmit +make clean + +#Make the supernovae mode +cmake -Dsupernovae=on ./ +ctest -D NightlyStart +ctest -D NightlyConfigure +ctest -D NightlyBuild +ctest -D NightlyTest +ctest -D NightlyCoverage +ctest -D NightlySubmit +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 + + 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 ./ + ctest -D NightlyStart + ctest -D NightlyConfigure + ctest -D NightlyBuild + ctest -D NightlyTest + ctest -D NightlyCoverage + ctest -D NightlySubmit + make clean + fi +fi + +#Make the memcheck +cmake -Denable_memcheck=on ./ +ctest -D NightlyStart +ctest -D NightlyConfigure +ctest -D NightlyBuild +ctest -D NightlyCoverage +ctest -D NightlyMemCheck +ctest -D NightlySubmit diff --git a/buildtools/pipol/README b/buildtools/pipol/README new file mode 100644 index 0000000000..df5fa0e460 --- /dev/null +++ b/buildtools/pipol/README @@ -0,0 +1,13 @@ +On your local host launch deploy.sh for make experimental deployments on pipol + +deploy.sh <-- put it in your own home +Experimental_all_simgrid_gt.sh <-- put it in pipol_home or in your own home + +For nighlty use only, put files into PIPOL + +pre-simgrid.sh <-- put it in pipol_home +liste_install.sh <-- put it in pipol_home +Nightly_simgrid.sh <-- put it in pipol_home/.pipol/nightly/ + +You can also use Experimental_all_simgrid_gt.sh on your home. This create a pipol directory and compile in. + diff --git a/buildtools/pipol/deploy.sh b/buildtools/pipol/deploy.sh new file mode 100644 index 0000000000..95bf30b771 --- /dev/null +++ b/buildtools/pipol/deploy.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +ssh pipol pipol-sub esn i386_mac-mac-osx-server-leopard.dd.gz none 02:00 ~/Experimental_all_simgrid_gt.sh + +ssh pipol pipol-sub esn i386-linux-ubuntu-intrepid.dd.gz none 02:00 ~/Experimental_all_simgrid_gt.sh +ssh pipol pipol-sub esn amd64-linux-ubuntu-intrepid.dd.gz none 02:00 ~/Experimental_all_simgrid_gt.sh + +ssh pipol pipol-sub esn i386-linux-ubuntu-jaunty.dd.gz none 02:00 ~/Experimental_all_simgrid_gt.sh +ssh pipol pipol-sub esn amd64-linux-ubuntu-jaunty.dd.gz none 02:00 ~/Experimental_all_simgrid_gt.sh + +ssh pipol pipol-sub esn i386-linux-ubuntu-karmic.dd.gz none 02:00 ~/Experimental_all_simgrid_gt.sh +ssh pipol pipol-sub esn amd64-linux-ubuntu-karmic.dd.gz none 02:00 ~/Experimental_all_simgrid_gt.sh + +ssh pipol pipol-sub esn i386-linux-debian-lenny.dd none 02:00 ~/Experimental_all_simgrid_gt.sh +ssh pipol pipol-sub esn amd64-linux-debian-lenny.dd none 02:00 ~/Experimental_all_simgrid_gt.sh + +ssh pipol pipol-sub esn i386-linux-fedora-core11.dd.gz none 02:00 ~/Experimental_all_simgrid_gt.sh +ssh pipol pipol-sub esn amd64-linux-fedora-core11.dd.gz none 02:00 ~/Experimental_all_simgrid_gt.sh diff --git a/buildtools/pipol/liste_install.sh b/buildtools/pipol/liste_install.sh new file mode 100644 index 0000000000..82c0dfd6ca --- /dev/null +++ b/buildtools/pipol/liste_install.sh @@ -0,0 +1,140 @@ +#!/bin/bash + +arch=`uname` + +if [ -e /usr/bin/yum ] ; then + sudo yum -y update +fi + +which_cmake=`which cmake` #cmake necessary +echo $which_cmake +if [ x$which_cmake = x ] ; then + echo "Try to install cmake" + if [ -e /usr/bin/apt-get ] ; then + sudo apt-get -y install cmake + fi + if [ -e /usr/bin/yum ] ; then + sudo yum -y install cmake + fi + if [ x$arch = xDarwin ] ; then + sudo fink -y install cmake + fi +fi + +which_svn=`which svn` #svn necessary +echo $which_svn +if [ x$which_svn = x ] ; then + echo "Try to install svn" + if [ -e /usr/bin/apt-get ] ; then + sudo apt-get -y install subversion + fi + if [ -e /usr/bin/yum ] ; then + sudo yum -y install subversion + fi + if [ x$arch = xDarwin ] ; then + sudo fink -y install svn + fi +fi + +which_gcc=`which gcc` #gcc gcc necessary +which_gpp=`which g++` #gcc g++ necessary +echo $which_gcc +echo $which_gpp +if [ x$which_gcc = x ] ; then + echo "Try to install gcc" + if [ -e /usr/bin/apt-get ] ; then + sudo apt-get -y install gcc g++ + fi + if [ -e /usr/bin/yum ] ; then + sudo yum -y install gcc + fi + if [ x$arch = xDarwin ] ; then + sudo fink -y install gcc42 + fi +fi + +which_make=`which make` #make necessary +echo $which_make +if [ x$which_make = x ] ; then + echo "Try to install make" + if [ -e /usr/bin/apt-get ] ; then + sudo apt-get -y install make + fi + if [ -e /usr/bin/yum ] ; then + sudo yum -y install make + fi + if [ x$arch = xDarwin ] ; then + sudo fink -y install make + fi +fi + +which_java=`which java` #java optional +echo $which_java +if [ x$which_java = x ] ; then + echo "Try to install java" + if [ -e /usr/bin/apt-get ] ; then + sudo apt-get -y install openjdk-6-jdk + fi + if [ -e /usr/bin/yum ] ; then + sudo yum -y install java-1.6.0-openjdk + fi + if [ x$arch = xDarwin ] ; then + sudo fink -y install java-1.6.0-openjdk + fi +fi + +if [ x$arch = xDarwin ] ; then + which_lua=`find /sw/include -name lualib.h` #lualib.h optional +else + which_lua=`find /usr/include/ -name lualib.h` #lualib.h optional +fi + +echo $which_lua +if [ x$which_lua = x ] ; then + echo "Try to install lua" + if [ -e /usr/bin/apt-get ] ; then + sudo apt-get -y install liblua5.1-0-dev + fi + if [ -e /usr/bin/yum ] ; then + sudo yum -y install lua-devel + fi + if [ x$arch = xDarwin ] ; then + sudo fink -y install lua51-dev + fi +fi + +if [ x$arch = xDarwin ] ; then + which_ruby=`find /sw/lib/ruby/ -name ruby.h` #lualib.h optional +else + which_ruby=`find /usr/lib/ruby/ -name ruby.h` #ruby.h optional +fi + +echo $which_ruby +if [ x$which_ruby = x ] ; then + echo "Try to install ruby" + if [ -e /usr/bin/apt-get ] ; then + sudo apt-get -y install ruby1.8-dev ruby1.8 + fi + if [ -e /usr/bin/yum ] ; then + sudo yum -y install ruby-devel + fi + if [ x$arch = xDarwin ] ; then + sudo fink -y install ruby18-dev + fi +fi + + which_unzip=`which unzip` #unzip for gtnets + +echo $which_unzip +if [ x$which_unzip = x ] ; then + echo "Try to install unzip" + if [ -e /usr/bin/apt-get ] ; then + sudo apt-get -y install unzip + fi + if [ -e /usr/bin/yum ] ; then + sudo yum -y install unzip + fi + if [ x$arch = xDarwin ] ; then + sudo fink -y install unzip + fi +fi diff --git a/buildtools/pipol/pre-simgrid.sh b/buildtools/pipol/pre-simgrid.sh new file mode 100644 index 0000000000..8c22341980 --- /dev/null +++ b/buildtools/pipol/pre-simgrid.sh @@ -0,0 +1,37 @@ +#! /bin/sh + +set -e + +if [ -e /home/mescal/navarro/version/bckup_version ] ; then + svn cleanup version/ + cd /home/mescal/navarro/version + svn up README --quiet +else + if [ -e /home/mescal/navarro/version ] ; then + svn cleanup version/ + echo "0000P" > /home/mescal/navarro/version/bckup_version + else + mkdir /home/mescal/navarro/version + echo "0000P" > /home/mescal/navarro/version/bckup_version + fi + cd /home/mescal/navarro + svn checkout svn://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk /home/mescal/navarro/version --depth empty --quiet + + cd /home/mescal/navarro/version + svn up README --quiet +fi + +old_version=`cat bckup_version` +new_version=`svnversion` + +echo version old : $old_version +echo version svn : $new_version +echo `svnversion` > bckup_version + +if [ "$old_version" = "$new_version" ] ; then + echo "matches" + exit 1 +else + echo "not matches" + exit 0 +fi -- 2.20.1