]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/errors-test
218da0237b9c6341788625895195a0094f7a682b
[bacula/bacula] / regress / tests / errors-test
1 #!/bin/sh
2 #
3 #  Test errors
4 #
5
6 TestName="errors-test"
7 JobName=backup
8
9 . scripts/functions
10 copy_test_confs
11 set_debug 0
12
13 rm -f tmp/*.log
14 /bin/cp -f scripts/bacula-dir.conf.errors bin/bacula-dir.conf
15
16 echo "${cwd}/build/po" >/tmp/file-list
17
18 start_test
19
20 cat <<END_OF_DATA >tmp/bconcmds
21 @output /dev/null
22 messages
23 label volume=TestVolume001
24 @output tmp/LOCAL_INC_ERROR.log
25 run job=LOCAL_INC_ERROR yes
26 wait
27 messages
28 @output tmp/REMOTE_INC_ERROR.log
29 run job=REMOTE_INC_ERROR yes
30 wait
31 messages
32 @output tmp/LOCAL_EXCL_ERROR.log
33 run job=LOCAL_EXCL_ERROR yes
34 wait
35 messages
36 @$out tmp/REMOTE_EXCL_ERROR.log
37 run job=REMOTE_EXCL_ERROR yes
38 wait
39 messages
40 st dir
41 quit
42 END_OF_DATA
43
44 run_bacula
45 touch tmp/log1.out
46 check_for_zombie_jobs storage=File
47 #stop_bacula
48
49 dstat=0
50 bstat=0
51 rstat=0
52 export dstat
53 export bstat
54 export rstat
55
56
57 #end_test