summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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