]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/scripts/setup
ebl Test postgresql encoding at the start of the test
[bacula/bacula] / regress / scripts / setup
index 4a6e81b2c9c37b7677cd01d9074612d19e7696ad..62b592eb2bd70e0430bc0ba66e31dafd7b406969 100755 (executable)
@@ -20,10 +20,15 @@ if [ ! -d ${BACULA_SOURCE} ] ; then
    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
@@ -33,14 +38,15 @@ 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