]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/scripts/setup
Add new maxruntime test -- not yet working
[bacula/bacula] / regress / scripts / setup
index d9dc1533ec150f1ed22549d7b03f6ab9853beca1..62b592eb2bd70e0430bc0ba66e31dafd7b406969 100755 (executable)
@@ -19,24 +19,34 @@ if [ ! -d ${BACULA_SOURCE} ] ; then
    echo " "
    exit 1
 fi
+
+# we build and setup binaries to the $cwd/bin directory not $bin
 rm -rf build bin
 # Copy new source
 echo "Copying source from ${BACULA_SOURCE}"
 cp -rp ${BACULA_SOURCE} build
+cd build
+rm -rf txt src/testprogs
+cd ..
+check_exit_code
+scripts/create_sed
+sed -f tmp/sed_tmp scripts/regress-config.in >scripts/regress-config
+chmod 755 scripts/regress-config
 cp scripts/regress-config build
 cd build
 rm -f Makefile config.cache
 # Run Bacula configuration, make, install
 ./regress-config ${cwd}
 check_exit_code
-# Cleanup any win32 build in source
-cd src/win32
+# Cleanup any build in source
 make clean
-cd ../..
 make -j3
 check_exit_code
 make install
 check_exit_code
+# eliminate non-essential directories to reduce
+#   size.  Otherwise regress run too long
+rm -rf src/win32 examples patches
 cp src/tools/testls ../bin
 check_exit_code