]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Add the nightly build scripts.
authorJulian Seward <jseward@acm.org>
Wed, 25 Feb 2004 13:14:39 +0000 (13:14 +0000)
committerJulian Seward <jseward@acm.org>
Wed, 25 Feb 2004 13:14:39 +0000 (13:14 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2270

nightly/README.txt [new file with mode: 0644]
nightly/bin/nightly [new file with mode: 0755]
nightly/conf/nemesis.conf [new file with mode: 0644]
nightly/conf/nemesis.sendmail [new file with mode: 0755]

diff --git a/nightly/README.txt b/nightly/README.txt
new file mode 100644 (file)
index 0000000..a00dc11
--- /dev/null
@@ -0,0 +1,15 @@
+
+This directory (nightly/) contains a simple, automatic build-and-test
+system for Valgrind, intended to be run by cron.
+
+Note (importantly) it doesn't test the sources in the tree of which
+this directory is a part (viz, nightly/..).  Instead it checks out
+a complete new tree, builds and tests that independently of the
+existing tree.
+
+To use, choose a tag, probably a machine name, and run
+
+   bin/nightly  /path/to/valgrind/nightly  tag
+
+and supply conf/tag.conf and conf/tag.sendmail.
+
diff --git a/nightly/bin/nightly b/nightly/bin/nightly
new file mode 100755 (executable)
index 0000000..c9d3241
--- /dev/null
@@ -0,0 +1,50 @@
+#!/bin/sh
+
+# Automated build and test for Valgrind.  
+#   Use: two args, first is path to top of ValgrindABT tree
+#        second is name of machine
+
+ABT_TOP=$1
+ABT_MACHINE=$2
+
+ABT_START=`date "+%F %H:%M:%S %Z"`
+
+cd $ABT_TOP
+
+source $ABT_TOP/conf/$ABT_MACHINE.conf
+
+rm -rf log.verbose log.short valgrind
+
+echo > log.short
+echo > log.verbose
+
+echo "Nightly build on" $ABT_MACHINE "(" $ABT_DETAILS ") started at" $ABT_START >> log.short
+echo >> log.short
+
+echo "Nightly build on" $ABT_MACHINE "(" $ABT_DETAILS ") started at" $ABT_START >> log.verbose
+echo >> log.verbose
+
+echo -n "   Checking out source tree  ... " >> log.short
+cvs co valgrind 2>&1 >> log.verbose
+echo "done" >> log.short
+
+echo -n "   Configuring               ... " >> log.short
+(cd valgrind && ./autogen.sh 2>&1  && ./configure --prefix=`pwd`/Inst  2>&1 ) >> log.verbose
+echo "done" >> log.short
+
+echo -n "   Building                  ... " >> log.short
+(cd valgrind && make install 2>&1 ) >> log.verbose
+echo "done" >> log.short
+
+echo -n "   Running regression tests  ... " >> log.short
+(cd valgrind && make regtest 2>&1 ) >> log.verbose
+echo "done" >> log.short
+
+echo >> log.short
+echo "Last 20 lines of log.verbose follow" >> log.short
+echo >> log.short
+tail -20 log.verbose >> log.short
+
+$ABT_TOP/conf/$ABT_MACHINE.sendmail "$ABT_START nightly build ($ABT_MACHINE, $ABT_DETAILS)" \
+       $ABT_TOP/log.short
+
diff --git a/nightly/conf/nemesis.conf b/nightly/conf/nemesis.conf
new file mode 100644 (file)
index 0000000..4aef6c7
--- /dev/null
@@ -0,0 +1,6 @@
+
+# Specifics for nemesis (SuSE 9.0, VIA Nehemiah)
+
+export ABT_DETAILS="SuSE 9.0"
+export CVSROOT=":ext:jseward@cvs.kde.org:/home/kde"
+export CVS_RSH=ssh
diff --git a/nightly/conf/nemesis.sendmail b/nightly/conf/nemesis.sendmail
new file mode 100755 (executable)
index 0000000..ca6af71
--- /dev/null
@@ -0,0 +1,5 @@
+
+#use: subject file-to-mail
+
+/usr/bin/mail -s "$1" -R jseward@acm.org -r jseward@acm.org valgrind-developers@lists.sourceforge.net < $2
\ No newline at end of file