File: t20-hooks-bug235.sh

package info (click to toggle)
backup-manager 0.7.9-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,400 kB
  • ctags: 209
  • sloc: sh: 3,584; perl: 1,002; makefile: 210
file content (26 lines) | stat: -rw-r--r-- 638 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash

set -e

export BM_TEST_EXIT_CODE_EXPECTED=10

# Each test script should include testlib.sh
source testlib.sh
# When the test is ready, set this to false for nice outputs.
# if you want to see what happens, use those flags
# verbose="true"
# warnings="true"

# The conffile part of the test, see confs/* for details.
source confs/base.conf
export BM_PRE_BACKUP_COMMAND="/NON_EXISTANT_FILE.pre.sh"
export BM_POST_BACKUP_COMMAND="NON_EXISTANT_FILE.post.sh"
source $locallib/sanitize.sh

# The test actions
bm_init_env
bm_init_today
exec_pre_command
# FIXME: try to catch the exit 10 that will be thrown
exec_post_command
exit 0