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."
25 echo "Copying source from ${BACULA_SOURCE}"
26 cp -rp ${BACULA_SOURCE} build
28 sed -f tmp/sed_tmp scripts/regress-config.in >scripts/regress-config
29 chmod 755 scripts/regress-config
30 cp scripts/regress-config build
32 rm -f Makefile config.cache
33 # Run Bacula configuration, make, install
34 ./regress-config ${cwd}
36 # Cleanup any win32 build in source
43 mkdir -p ../bin/plugins
45 cp src/tools/testls ../bin
53 echo "Running database creation scripts"
54 ./create_bacula_database
57 ./grant_bacula_privileges
59 # Start and stop Bacula to ensure conf files are OK
63 # Save Bacula default conf files for later use
65 cp -f bin/*.conf scripts