3 # Script to setup running Bacula regression tests
9 echo "Bad exit code giving up"
17 if [ ! -d ${BACULA_SOURCE} ] ; then
18 echo "The BACULA_SOURCE environment variable must be a Bacula release directory, but is not."
23 # we build and setup binaries to the $cwd/bin directory not $bin
26 echo "Copying source from ${BACULA_SOURCE}"
27 cp -rp ${BACULA_SOURCE} build
29 rm -rf txt src/testprogs
33 sed -f tmp/sed_tmp scripts/regress-config.in >scripts/regress-config
34 chmod 755 scripts/regress-config
35 cp scripts/regress-config build
37 rm -f Makefile config.cache
38 # Run Bacula configuration, make, install
39 ./regress-config ${cwd}
41 # Cleanup any build in source
47 cp src/tools/testls ../bin
55 echo "Running database creation scripts"
56 ./create_bacula_database
59 ./grant_bacula_privileges
61 # Start and stop Bacula to ensure conf files are OK
65 # Save Bacula default conf files for later use
67 cp -f bin/*.conf scripts