summaryrefslogtreecommitdiff
path: root/nightly
diff options
context:
space:
mode:
authorbart <bart@a5019735-40e9-0310-863c-91ae7b9d1cf9>2009-01-12 08:23:15 +0000
committerbart <bart@a5019735-40e9-0310-863c-91ae7b9d1cf9>2009-01-12 08:23:15 +0000
commitfd97ceca19cfdce36daceb3d225894cfedaf8c51 (patch)
treecff86fc25d20d8c4c2f2f3bd1b30db3b05325621 /nightly
parent2261edb65ab3e71b248a1d05ee38c061cd67d26b (diff)
Added new nightly build configuration variable: ABT_EVAL.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8937 a5019735-40e9-0310-863c-91ae7b9d1cf9
Diffstat (limited to 'nightly')
-rw-r--r--nightly/README.txt7
-rwxr-xr-xnightly/bin/nightly7
2 files changed, 12 insertions, 2 deletions
diff --git a/nightly/README.txt b/nightly/README.txt
index b3817fe3..d1d8eacf 100644
--- a/nightly/README.txt
+++ b/nightly/README.txt
@@ -19,6 +19,13 @@ and supply the following two config files:
ABT_DETAILS: describes the machine in more detail, eg. the OS. The default
is empty.
ABT_CONFIGURE_OPTIONS: gives extra configure options. The default is empty.
+ ABT_EVAL: if provided, it must be the name of a shell script that executes
+ the shell command $1 with arguments $2 .. ${$#}. Allows to compile and
+ run the Valgrind regression tests on another system than the system the
+ 'nightly' script runs on. It is assumed that the remote system shares the
+ local filesystem tree through e.g. NFS. It is the responsibility of the
+ shell script to set the remote working directory such that it matches the
+ local current directory ($PWD).
ABT_RUN_REGTEST: if provided, it must be the name of an argumentless shell
function (also specified in the tag.conf file) it's an argumentless bash
function that will be used to run the tests. If not specified, the usual
diff --git a/nightly/bin/nightly b/nightly/bin/nightly
index 443582c2..d47525a1 100755
--- a/nightly/bin/nightly
+++ b/nightly/bin/nightly
@@ -22,7 +22,7 @@ runcmd () {
echo "$*" >> $logfile.verbose
# Run the command
- (eval "$*") >> $logfile.verbose 2>&1
+ ("${ABT_EVAL}" "$*") >> $logfile.verbose 2>&1
res=$?
# Write result to the short logfile
@@ -39,7 +39,7 @@ runcmd () {
#----------------------------------------------------------------------------
# Startup
#----------------------------------------------------------------------------
-# Must have at two arguments
+# Must have exactly two arguments
if [ $# -ne 2 ] ; then
echo "usage: bin/night /path/to/valgrind/nightly <tag>"
exit 1
@@ -62,6 +62,9 @@ cd $ABT_TOP
if [ "${ABT_JOBS}" = "" ]; then
ABT_JOBS=1
fi
+if [ "${ABT_EVAL}" = "" ]; then
+ ABT_EVAL="eval"
+fi
if [ "${ABT_RUN_REGTEST}" = "" ]; then
ABT_RUN_REGTEST="cd valgrind && perl tests/vg_regtest --all"
fi