]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/errors-test
ebl add 3 others errors
[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 @$out tmp/REMOTE_RUNSCRIPT_ERROR.log
41 run job=REMOTE_RUNSCRIPT_ERROR yes
42 wait
43 messages
44 @$out tmp/LOCAL_RUNSCRIPT_ERROR.log
45 run job=LOCAL_RUNSCRIPT_ERROR yes
46 wait
47 messages
48 @$out tmp/CLIENT_CONNECT_TIMEOUT.log
49 run job=CLIENT_CONNECT_TIMEOUT yes
50 wait
51 messages
52 st dir
53 quit
54 END_OF_DATA
55
56 run_bacula
57 touch tmp/log1.out
58 check_for_zombie_jobs storage=File
59 #stop_bacula
60
61 dstat=0
62 bstat=0
63 rstat=0
64 export dstat
65 export bstat
66 export rstat
67
68
69 #end_test