]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix slow regress setups
authorKern Sibbald <kern@sibbald.com>
Sun, 18 Dec 2011 16:46:18 +0000 (17:46 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:50:20 +0000 (14:50 +0200)
regress/prototype.conf
regress/scripts/setup

index f6d659d504802424a2552ebe4e44f8f5b7ef5d9b..418ac8efc36b3738f4e5d4529d81b8ecd33da461 100644 (file)
@@ -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"
 
index 3954298fa081bb1a47d6b41f2994557b22c2a2b8..7d66033e8ae82707a2e1012f8400a6bab6b96b2b 100755 (executable)
@@ -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