]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/scripts/setup
Force DEVELOPER on during regression setup
[bacula/bacula] / regress / scripts / setup
index 7ca614c098d031f42488cf2586876e09d6c8e03e..2f7a75d9ba6955b8e771a883939ca53e05ff2f50 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
@@ -37,6 +40,12 @@ scripts/create_sed
 echo "s%File = @sbindir@%File = @BUILD_DIR@%g" >tmp/t$$
 sed -f tmp/t$$ build/src/dird/bacula-dir.conf.in >tmp/o$$
 cp tmp/o$$ build/src/dird/bacula-dir.conf.in
+
+# Now turn on DEVELOPER for regression testing
+echo "s%^.*define DEVELOPER 1.*$%#define DEVELOPER 1%g" >tmp/t$$
+sed -f tmp/t$$ build/src/version.h >tmp/o$$
+cp tmp/o$$ build/src/version.h
+
 rm -f tmp/t$$ tmp/o$$
 # remove unneeded directories
 rm -rf build/txt build/src/testprogs
@@ -50,10 +59,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