summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nightly/README.txt15
-rwxr-xr-xnightly/bin/nightly50
-rw-r--r--nightly/conf/nemesis.conf6
-rwxr-xr-xnightly/conf/nemesis.sendmail5
4 files changed, 76 insertions, 0 deletions
diff --git a/nightly/README.txt b/nightly/README.txt
new file mode 100644
index 00000000..a00dc11e
--- /dev/null
+++ b/nightly/README.txt
@@ -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
index 00000000..c9d32411
--- /dev/null
+++ b/nightly/bin/nightly
@@ -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
index 00000000..4aef6c7c
--- /dev/null
+++ b/nightly/conf/nemesis.conf
@@ -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
index 00000000..ca6af71e
--- /dev/null
+++ b/nightly/conf/nemesis.sendmail
@@ -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