From: Kern Sibbald Date: Sun, 18 Dec 2011 16:46:18 +0000 (+0100) Subject: Fix slow regress setups X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=da8add199e825b9dcfe78f22f80766435ff529d7;p=bacula%2Fbacula Fix slow regress setups --- diff --git a/regress/prototype.conf b/regress/prototype.conf index f6d659d504..418ac8efc3 100644 --- a/regress/prototype.conf +++ b/regress/prototype.conf @@ -1,3 +1,6 @@ +# Set this to the make option (usually -j3 or higher) +MAKEOPT= + # Where to get the source to be tested BACULA_SOURCE="${HOME}/bacula/bacula" diff --git a/regress/scripts/setup b/regress/scripts/setup index 3954298fa0..7d66033e8a 100755 --- a/regress/scripts/setup +++ b/regress/scripts/setup @@ -20,6 +20,9 @@ if [ ! -d ${BACULA_SOURCE} ] ; then exit 1 fi +MAKEOPTS=${MAKEOPT:-"-j3"} + + # we build and setup binaries to the $cwd/bin directory not $bin rm -rf build bin # Copy new source @@ -50,10 +53,10 @@ rm -f Makefile config.* check_exit_code # Cleanup any build in source make clean -make $MAKEOPT +make ${MAKEOPT} check_exit_code make install -if [ a$KEEP_SOURCE = a ]; then +if [ a${KEEP_SOURCE} = a ]; then rm -rf examples patches check_exit_code # eliminate non-essential directories to reduce