PageRenderTime 158ms CodeModel.GetById 33ms app.highlight 2ms RepoModel.GetById 41ms app.codeStats 0ms

/t/t20-hooks-bug235.sh

http://github.com/sukria/Backup-Manager
Shell | 31 lines | 28 code | 2 blank | 1 comment | 0 complexity | ad676cc574e7a512347b59f9bd1b3df5 MD5 | raw file
Possible License(s): GPL-2.0
 1#! /usr/bin/env bash
 2
 3set -e
 4
 5echo "Test $0 disabled. I don't think this ever passed, and the bug tracker entry for it is gone"
 6exit 0
 7
 8
 9
10export BM_TEST_EXIT_CODE_EXPECTED=10
11
12# Each test script should include testlib.sh
13source testlib.sh
14# When the test is ready, set this to false for nice outputs.
15# if you want to see what happens, use those flags
16# verbose="true"
17# warnings="true"
18
19# The conffile part of the test, see confs/* for details.
20source confs/base.conf
21export BM_PRE_BACKUP_COMMAND="/NON_EXISTANT_FILE.pre.sh"
22export BM_POST_BACKUP_COMMAND="NON_EXISTANT_FILE.post.sh"
23source $locallib/sanitize.sh
24
25# The test actions
26bm_init_env
27bm_init_today
28exec_pre_command
29# FIXME: try to catch the exit 10 that will be thrown
30exec_post_command
31exit 0