]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Added new nightly build configuration variable: ABT_EVAL.
authorBart Van Assche <bvanassche@acm.org>
Mon, 12 Jan 2009 08:23:15 +0000 (08:23 +0000)
committerBart Van Assche <bvanassche@acm.org>
Mon, 12 Jan 2009 08:23:15 +0000 (08:23 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8937

nightly/README.txt
nightly/bin/nightly

index b3817fe38edfc414ec8d731a793a19698c884122..d1d8eacf8a2a9ffb57a892aca0456e007f26543c 100644 (file)
@@ -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
index 443582c2ed375d7e10cf2e6cbbf566c6e8159c97..d47525a1e06873ba1e554bc2987d23f0db1c18e1 100755 (executable)
@@ -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