/t/t05-hooks.sh

http://github.com/sukria/Backup-Manager · Shell · 24 lines · 13 code · 5 blank · 6 comment · 0 complexity · 043d6af052700d92ccc909ae72fb5d72 MD5 · raw file

  1. #! /usr/bin/env bash
  2. set -e
  3. # Each test script should include testlib.sh
  4. source testlib.sh
  5. # When the test is ready, set this to false for nice outputs.
  6. # if you want to see what happens, use those flags
  7. verbose="true"
  8. warnings="true"
  9. # The conffile part of the test, see confs/* for details.
  10. source confs/base.conf
  11. export BM_PRE_BACKUP_COMMAND="/bin/true"
  12. export BM_POST_BACKUP_COMMAND="echo true"
  13. source $locallib/sanitize.sh
  14. # The test actions
  15. bm_init_env
  16. bm_init_today
  17. exec_pre_command
  18. exec_post_command
  19. exit 0