Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
new scripts for Cdash
authornavarrop <navarrop@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 22 Dec 2009 14:56:36 +0000 (14:56 +0000)
committernavarrop <navarrop@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 22 Dec 2009 14:56:36 +0000 (14:56 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@6909 48e7efb5-ca39-0410-a469-dd3cf9ba447f

buildtools/ctest/Cmake/CTestCustom.cmake [new file with mode: 0644]
buildtools/ctest/script_final/DISTRIB.sh [new file with mode: 0644]
buildtools/ctest/script_final/DISTRIB_nightly.sh [new file with mode: 0644]
buildtools/ctest/script_final/WAIT.sh [new file with mode: 0644]
buildtools/ctest/script_final/WAIT_nightly.sh [new file with mode: 0644]
buildtools/ctest/script_final/reserv.sh [new file with mode: 0644]
buildtools/ctest/script_final/testwait.sh [new file with mode: 0644]

diff --git a/buildtools/ctest/Cmake/CTestCustom.cmake b/buildtools/ctest/Cmake/CTestCustom.cmake
new file mode 100644 (file)
index 0000000..587a617
--- /dev/null
@@ -0,0 +1,2 @@
+SET (CTEST_CUSTOM_MAXIMUM_FAILED_TEST_OUTPUT_SIZE "3000000")
+SET (CTEST_CUSTOM_MAXIMUM_PASSED_TEST_OUTPUT_SIZE "3000000")
diff --git a/buildtools/ctest/script_final/DISTRIB.sh b/buildtools/ctest/script_final/DISTRIB.sh
new file mode 100644 (file)
index 0000000..719d0d3
--- /dev/null
@@ -0,0 +1,62 @@
+#!/bin/bash
+
+#GET the OS name
+OS=`uname`
+node=`uname -n`
+
+# OS specific working directory 
+BASEDIR=/pipol
+DIR=$BASEDIR/$OS/$node
+
+# Clean any leftover from previous install
+echo "remove old directory $BASEDIR/$OS/$node"
+rm -rf $BASEDIR/$OS/$node
+
+# create a new directory 
+echo "create new directory $BASEDIR/$OS/$node"
+mkdir  $BASEDIR/$OS
+mkdir  $BASEDIR/$OS/$node
+cd $BASEDIR/$OS/$node
+
+echo "DISTRIB"
+
+# Install dependencies Linux
+echo "get dependencies Linux"
+sudo aptitude install -y libtool automake1.10 autoconf libgcj10-dev gcc g++ bash flex flexml doxygen bibtex bibtool iconv bibtex2html addr2line valgrind
+
+# delete the old distrib
+rm $BASEDIR/simgrid*.tar.gz
+
+# load the simgrid directory from svn
+echo "load simgrid-svn"
+svn checkout svn://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk
+mv trunk/ simgrid
+cd $BASEDIR/$OS/$node/simgrid
+
+# ./bootstrap
+echo "./bootstrap"
+./bootstrap
+
+# ./configure
+echo "./configure --enable-maintainer-mode --disable-compile-optimizations"
+./configure --enable-maintainer-mode --disable-compile-optimizations
+
+# make
+echo "make"
+make
+
+# make dist
+echo "make dist"
+make dist
+
+# copy du Cmake sur BASEDIR
+cp -r buildtools/ctest/Cmake $BASEDIR/
+
+# copie de la distrib sur BASEDIR
+cp simgrid*.tar.gz $BASEDIR/
+
+# suppression des fichiers tmp
+cd ..
+rm -rf simgrid
+
+echo "Done!"
diff --git a/buildtools/ctest/script_final/DISTRIB_nightly.sh b/buildtools/ctest/script_final/DISTRIB_nightly.sh
new file mode 100644 (file)
index 0000000..31bbcc3
--- /dev/null
@@ -0,0 +1,64 @@
+#!/bin/bash
+
+#PIPOL esn i386-linux-ubuntu-karmic.dd.gz none 02:00 --user --silent
+
+#GET the OS name
+OS=`uname`
+node=`uname -n`
+
+# OS specific working directory 
+BASEDIR=/pipol
+DIR=$BASEDIR/$OS/$node
+
+# Clean any leftover from previous install
+echo "remove old directory $BASEDIR/$OS/$node"
+rm -rf $BASEDIR/$OS/$node
+
+# create a new directory 
+echo "create new directory $BASEDIR/$OS/$node"
+mkdir  $BASEDIR/$OS
+mkdir  $BASEDIR/$OS/$node
+cd $BASEDIR/$OS/$node
+
+echo "DISTRIB"
+
+# Install dependencies Linux
+echo "get dependencies Linux"
+sudo aptitude install -y libtool automake1.10 autoconf libgcj10-dev gcc g++ bash flex flexml doxygen bibtex bibtool iconv bibtex2html addr2line valgrind
+
+# delete the old distrib
+rm $BASEDIR/simgrid*.tar.gz
+
+# load the simgrid directory from svn
+echo "load simgrid-svn"
+svn checkout svn://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk
+mv trunk/ simgrid
+cd $BASEDIR/$OS/$node/simgrid
+
+# ./bootstrap
+echo "./bootstrap"
+./bootstrap
+
+# ./configure
+echo "./configure --enable-maintainer-mode --disable-compile-optimizations"
+./configure --enable-maintainer-mode --disable-compile-optimizations
+
+# make
+echo "make"
+make
+
+# make dist
+echo "make dist"
+make dist
+
+# copy du Cmake sur BASEDIR
+cp -r buildtools/ctest/Cmake $BASEDIR/
+
+# copie de la distrib sur BASEDIR
+cp simgrid*.tar.gz $BASEDIR/
+
+# suppression des fichiers tmp
+cd ..
+rm -rf simgrid
+
+echo "Done!"
diff --git a/buildtools/ctest/script_final/WAIT.sh b/buildtools/ctest/script_final/WAIT.sh
new file mode 100644 (file)
index 0000000..effb7b7
--- /dev/null
@@ -0,0 +1,59 @@
+#!/bin/bash
+
+#GET the OS name
+OS=`uname`
+node=`uname -n`
+
+# OS specific working directory 
+BASEDIR=/pipol
+DIR=$BASEDIR/$OS/$node
+
+# Clean any leftover from previous install
+echo "remove old directory $BASEDIR/$OS/$node"
+rm -rf $BASEDIR/$OS/$node
+
+# create a new directory 
+echo "create new directory $BASEDIR/$OS/$node"
+mkdir  $BASEDIR/$OS
+mkdir  $BASEDIR/$OS/$node
+cd $BASEDIR/$OS/$node
+
+echo "WAIT"
+echo "attente de distrib"
+while [ ! -e $BASEDIR/simgrid*.tar.gz ]; 
+do
+       wait 1
+       #nothing to do except waiting
+done
+echo "distrib disponible"
+
+# recuperation de la distrib
+cp $BASEDIR/simgrid*.tar.gz $BASEDIR/$OS/$node/simgrid*.tar.gz
+cd $BASEDIR/$OS/$node
+
+# untar de la distrib
+tar xzvf ./simgrid*.tar.gz
+rm simgrid*.tar.gz
+
+# copie de Cmake
+cp -r $BASEDIR/Cmake $BASEDIR/$OS/$node/simgrid/Cmake
+
+# ./configure
+cd $BASEDIR/$OS/$node/simgrid
+./configure
+
+# make
+echo "make"
+make 
+
+# 1er test
+echo "./checkall"
+./checkall
+
+# 2eme test ctest
+sudo aptitude install -y cmake
+cd $BASEDIR/$OS/$node/simgrid/Cmake
+cmake ./
+ctest -D Experimental CTEST_FULL_OUTPUT
+
+echo "Done!"
diff --git a/buildtools/ctest/script_final/WAIT_nightly.sh b/buildtools/ctest/script_final/WAIT_nightly.sh
new file mode 100644 (file)
index 0000000..5db366b
--- /dev/null
@@ -0,0 +1,77 @@
+#!/bin/bash
+
+#PIPOL esn i386-linux-ubuntu-jaunty.dd.gz none 02:00 --user --silent
+#PIPOL esn i386-linux-ubuntu-karmic.dd.gz none 02:00 --user --silent
+#PIPOL esn amd64-linux-ubuntu-jaunty.dd.gz none 02:00 --user --silent
+#PIPOL esn amd64-linux-ubuntu-karmic.dd.gz none 02:00 --user --silent 
+
+#PIPOL esn i386-linux-debian-etch.dd.gz none 02:00 --user --silent
+#PIPOL esn i386-linux-debian-lenny.dd.gz none 02:00 --user --silent
+#PIPOL esn amd64-linux-debian-etch.dd.gz none 02:00 --user --silent
+#PIPOL esn amd64-linux-debian-lenny.dd.gz none 02:00 --user --silent
+
+#PIPOL esn i386-linux-fedora-core11.dd.gz none 02:00 --user --silent
+#PIPOL esn amd64-linux-fedora-core11.dd.gz none 02:00 --user --silent
+
+#PIPOL esn i386-linux-mandriva-2009_powerpack.dd.gz none 02:00 --user --silent
+#PIPOL esn amd64-linux-mandriva-2009_powerpack.dd.gz none 02:00 --user --silent
+
+#PIPOL esn i386_mac-mac-osx-server-leopard.dd.gz none 02:00 --user --silent
+
+#GET the OS name
+OS=`uname`
+node=`uname -n`
+
+# OS specific working directory 
+BASEDIR=/pipol
+DIR=$BASEDIR/$OS/$node
+
+# Clean any leftover from previous install
+echo "remove old directory $BASEDIR/$OS/$node"
+rm -rf $BASEDIR/$OS/$node
+
+# create a new directory 
+echo "create new directory $BASEDIR/$OS/$node"
+mkdir  $BASEDIR/$OS
+mkdir  $BASEDIR/$OS/$node
+cd $BASEDIR/$OS/$node
+
+echo "WAIT"
+echo "attente de distrib"
+while [ ! -e $BASEDIR/simgrid*.tar.gz ]; 
+do
+       wait 1
+       #nothing to do except waiting
+done
+echo "distrib disponible"
+
+# recuperation de la distrib
+cp $BASEDIR/simgrid*.tar.gz $BASEDIR/$OS/$node/simgrid*.tar.gz
+cd $BASEDIR/$OS/$node
+
+# untar de la distrib
+tar xzvf ./simgrid*.tar.gz
+rm simgrid*.tar.gz
+
+# copie de Cmake
+cp -r $BASEDIR/Cmake $BASEDIR/$OS/$node/simgrid/Cmake
+
+# ./configure
+cd $BASEDIR/$OS/$node/simgrid
+./configure
+
+# make
+echo "make"
+make 
+
+# 1er test
+echo "./checkall"
+./checkall
+
+# 2eme test ctest
+sudo aptitude install -y cmake
+cd $BASEDIR/$OS/$node/simgrid/Cmake
+cmake ./
+ctest -D Experimental CTEST_FULL_OUTPUT
+
+echo "Done!"
diff --git a/buildtools/ctest/script_final/reserv.sh b/buildtools/ctest/script_final/reserv.sh
new file mode 100644 (file)
index 0000000..8f9287a
--- /dev/null
@@ -0,0 +1,6 @@
+#! /bin/sh
+
+ssh pipol pipol-sub esn i386-linux-ubuntu-karmic.dd.gz none 02:00 /home/mescal/navarro/script/DISTRIB.sh
+
+ssh pipol pipol-sub esn i386-linux-ubuntu-jaunty.dd.gz none 02:00 /home/mescal/navarro/script/WAIT.sh
+ssh pipol pipol-sub esn i386-linux-ubuntu-karmic.dd.gz none 02:00 /home/mescal/navarro/script/WAIT.sh
diff --git a/buildtools/ctest/script_final/testwait.sh b/buildtools/ctest/script_final/testwait.sh
new file mode 100644 (file)
index 0000000..8afaddb
--- /dev/null
@@ -0,0 +1,115 @@
+#!/bin/bash
+
+#GET the OS name
+OS=`uname`
+node=`uname -n`
+
+# OS specific working directory 
+BASEDIR=/pipol
+DIR=$BASEDIR/$OS/$node
+
+# Clean any leftover from previous install
+echo "remove old directory $BASEDIR/$OS/$node"
+rm -rf $BASEDIR/$OS/$node
+
+# create a new directory 
+echo "create new directory $BASEDIR/$OS/$node"
+mkdir  $BASEDIR/$OS
+mkdir  $BASEDIR/$OS/$node
+cd $BASEDIR/$OS/$node
+
+if [ ! $# = 0 ]; then
+       if [ $1 = "DISTRIB" ]; then
+
+               echo "DISTRIB"
+
+               # Install dependencies Linux
+               echo "get dependencies Linux"
+               sudo aptitude install -y libtool automake1.10 autoconf libgcj10-dev gcc g++ bash flex flexml doxygen bibtex bibtool iconv bibtex2html addr2line valgrind
+
+               # delete the old distrib
+               rm $BASEDIR/simgrid*.tar.gz
+
+               # load the simgrid directory from svn
+               echo "load simgrid-svn"
+               svn checkout svn://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk
+               mv trunk/ simgrid
+               cd $BASEDIR/$OS/$node/simgrid
+
+               # ./bootstrap
+               echo "./bootstrap"
+               ./bootstrap
+
+               # ./configure
+               echo "./configure --enable-maintainer-mode --disable-compile-optimizations"
+               ./configure --enable-maintainer-mode --disable-compile-optimizations
+
+               # make
+               echo "make"
+               make
+
+               # make dist
+               echo "make dist"
+               make dist
+
+               # copy du Cmake sur BASEDIR
+               cp -r buildtools/ctest/Cmake $BASEDIR/
+
+               # copie de la distrib sur BASEDIR
+               cp simgrid*.tar.gz $BASEDIR/
+
+               # suppression des fichiers tmp
+               cd ..
+               rm -rf simgrid
+
+       else
+       if [ $1 = "WAIT" ]; then
+               echo "WAIT"
+               echo "attente de distrib"
+               while [ ! -e $BASEDIR/simgrid*.tar.gz ]; 
+               do
+                       wait 1
+                       #nothing to do except waiting
+               done
+               echo "distrib disponible"
+
+               # recuperation de la distrib
+               cp $BASEDIR/simgrid*.tar.gz $BASEDIR/$OS/$node/simgrid*.tar.gz
+               cd $BASEDIR/$OS/$node
+
+               # untar de la distrib
+               tar xzvf ./simgrid*.tar.gz
+               rm simgrid*.tar.gz
+
+               # copie de Cmake
+               cp -r $BASEDIR/Cmake $BASEDIR/$OS/$node/simgrid/Cmake
+
+               # ./configure
+               cd $BASEDIR/$OS/$node/simgrid
+               ./configure
+
+               # make
+               echo "make"
+               make 
+
+               # 1er test
+               echo "./checkall"
+               ./checkall
+
+               # 2eme test ctest
+               sudo aptitude install -y cmake
+               cd $BASEDIR/$OS/$node/simgrid/Cmake
+               cmake ./
+               ctest -D Experimental CTEST_FULL_OUTPUT
+
+                       
+       else
+               echo "argument non connu"
+               exit
+       fi
+       fi
+else 
+       echo "pas d'argument"
+fi
+
+echo "Done!"