3 # Script to setup running Bacula regression tests
7 echo "Incorrect number of arguments. Got $#. Need:"
8 echo "setup bacula-src email-address --with-DBNAME --with-tcp-wrappers"
13 echo "Arg 1 must be a Bacula release directory."
19 echo "Copying source from $1"
21 cp scripts/regress-config build
23 rm -f Makefile config.cache
24 # Remove files that may be too big
28 # Run Bacula configuration, make, install
29 ./regress-config ${cwd} $2 $3 $4
32 cp src/tools/testls ../bin
37 ./create_bacula_database
40 ./grant_bacula_privileges
42 # Start and stop Bacula to ensure conf files are OK
46 # Save Bacula default conf files for later use
48 cp -f bin/*.conf scripts