]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/scripts/cleanup
Fix TCP Heartbeat code
[bacula/bacula] / regress / scripts / cleanup
index 79c0ec2f2da067ccf82de59d206070b137b60b9b..c501428061b7495b673262785fb8287c57de5ad5 100755 (executable)
@@ -2,23 +2,33 @@
 #
 # Cleanup left over files -- both before and after test run
 #
-rm -rf /tmp/FileVolume* tmp/FileVolume*  
-rm -rf /tmp/TestVolume001 /tmp/bacula-restores /tmp/Small*
-rm -rf /tmp/sed_tmp /tmp/file-list
-rm -rf tmp/*
-rm -rf working/log tmp/TEST-*
-rm -rf working/*.bsr
-rm -rf /tmp/disk-changer
+. scripts/functions
+cwd=`pwd`
+rm -rf ${tmp}/FileVolume*
+rm -rf ${tmp}/TestVolume001 ${tmp}bacula-restores ${tmp}/Small*
+rm -rf ${tmp}/sed_tmp ${tmp}/file-list
+rm -rf ${tmp}/*
+rm -rf ${working}/log ${tmp}/TEST-*
+rm -rf ${working}/log ${tmp}/Backup-*
+rm -rf ${working}/*.bsr ${working}/log*.sd
+rm -rf ${working}/*.trace ${working}/*.traceback ${working}/*.bactrace 
+rm -rf ${tmp}disk-changer
+rm -f ${cwd}/bin/plugins/test-plugin-fd.so
 find . -name "gigaslam.gif" -exec rm -f {} \;
 
 
 # bin directory does not always exist
-if [ -d bin ]
-then
-  bin/bacula stop 2>&1 >/dev/null
-  cd bin
+if [ -d ${bin} ] ; then
+  if [ -f ${bin}/bacula ] ; then
+     ${bin}/bacula stop 2>&1 >/dev/null
+  fi
+  cd ${scripts}
   ./drop_bacula_tables      >/dev/null 2>&1
   ./make_bacula_tables      >/dev/null 2>&1
   ./grant_bacula_privileges >/dev/null 2>&1
-  cd ..
-fi
\ No newline at end of file
+  cd ${cwd}
+fi
+
+if [ x$USE_VTAPE = xyes ]; then
+   rm -rf ${working}/ach
+fi