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."
24 echo "Copying source from ${BACULA_SOURCE}"
25 cp -rp ${BACULA_SOURCE} build
26 cp scripts/regress-config build
28 rm -f Makefile config.cache
29 # Run Bacula configuration, make, install
30 ./regress-config ${cwd}
32 # Cleanup any win32 build in source
40 cp src/tools/testls ../bin
48 echo "Running database creation scripts"
49 ./create_bacula_database
52 ./grant_bacula_privileges
54 # Start and stop Bacula to ensure conf files are OK
58 # Save Bacula default conf files for later use
60 cp -f bin/*.conf scripts