3 # Copyright (C) 2000-2015 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
7 # Cleanup left over files -- both before and after test run
11 rm -rf ${tmp}/FileVolume*
12 rm -rf ${tmp}/TestVolume001 ${tmp}bacula-restores ${tmp}/Small*
13 rm -rf ${tmp}/sed_tmp ${tmp}/file-list
15 rm -rf ${working}/log ${tmp}/TEST-*
16 rm -rf ${working}/log ${tmp}/Backup-*
17 rm -rf ${working}/*.bsr ${working}/log*.sd
18 rm -rf ${working}/*.trace ${working}/*.traceback ${working}/*.lockdump
20 rm -rf ${tmp}disk-changer
21 rm -f ${cwd}/bin/plugins/test-plugin-fd.so
22 find . -name "gigaslam.gif" -exec rm -f {} \;
25 # bin directory does not always exist
26 if [ -d ${bin} ] ; then
27 if [ -f ${bin}/bacula ] ; then
28 ${bin}/bacula stop -KILL 2>&1 >/dev/null
31 ./drop_bacula_tables >/dev/null 2>&1
32 ./make_bacula_tables >/dev/null 2>&1
33 ./grant_bacula_privileges >/dev/null 2>&1
37 if [ x$USE_VTAPE = xyes ]; then