3 # Script to setup running Bacula regression tests
9 echo "Bad exit code giving up"
16 echo "Incorrect number of arguments. Got $#. Need:"
17 echo "setup bacula-src email-address --with-DBNAME --with-tcp-wrappers"
22 echo "Arg 1 must be a Bacula release directory."
28 echo "Copying source from $1"
30 cp scripts/regress-config build
32 rm -f Makefile config.cache
33 # Run Bacula configuration, make, install
34 ./regress-config ${cwd} $2 $3 $4 $5 $6
36 # Cleanup any win32 build in source
44 cp src/tools/testls ../bin
52 echo "Running database creation scripts"
53 ./create_bacula_database bacula
54 ./drop_bacula_tables bacula
56 ./grant_bacula_privileges bacula
58 # Start and stop Bacula to ensure conf files are OK
62 # Save Bacula default conf files for later use
64 cp -f bin/*.conf scripts