]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/cleanup
Update tape tests for hardware certification
[bacula/bacula] / regress / scripts / cleanup
1 #!/bin/sh
2 #
3 # Cleanup left over files -- both before and after test run
4 #
5 . scripts/functions
6 cwd=`pwd`
7 rm -rf ${tmp}/FileVolume*
8 rm -rf ${tmp}/TestVolume001 ${tmp}bacula-restores ${tmp}/Small*
9 rm -rf ${tmp}/sed_tmp ${tmp}/file-list
10 rm -rf ${tmp}/*
11 rm -rf ${working}/log ${tmp}/TEST-*
12 rm -rf ${working}/*.bsr
13 rm -rf ${working}/*.trace
14 rm -rf ${tmp}disk-changer
15 find . -name "gigaslam.gif" -exec rm -f {} \;
16
17
18 # bin directory does not always exist
19 if [ -d ${bin} ] ; then
20   ${bin}/bacula stop 2>&1 >/dev/null
21   cd ${scripts}
22   ./drop_bacula_tables      >/dev/null 2>&1
23   ./make_bacula_tables      >/dev/null 2>&1
24   ./grant_bacula_privileges >/dev/null 2>&1
25   cd ${cwd}
26 fi
27
28 if [ x$USE_VTAPE = xyes ]; then
29    rm -rf ${working}/ach
30 fi