PageRenderTime 19ms CodeModel.GetById 12ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

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