]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/errors-test
Backport from Bacula Enterprise
[bacula/bacula] / regress / tests / errors-test
1 #!/bin/sh
2 #
3 # Copyright (C) 2000-2015 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
5 #
6
7 #
8 #  Test errors
9 #
10
11 TestName="errors-test"
12 JobName=backup
13
14 . scripts/functions
15
16 scripts/cleanup
17 copy_test_confs
18
19 rm -f ${cwd}/tmp/*.log
20 /bin/cp -f scripts/bacula-dir.conf.errors bin/bacula-dir.conf
21 echo "${cwd}/build/po" >${cwd}/tmp/file-list
22
23 start_test
24
25 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
26 @output /dev/null
27 messages
28 @$out ${cwd}/tmp/LOCAL_INC_ERR.log
29 label storage=File volume=TestVolume001
30 add storage=File2
31 1
32 File2
33 1
34 run job=LOCAL_INC_ERR yes
35 wait
36 messages
37 @$out ${cwd}/tmp/REMOTE_INC_ERR.log
38 run job=REMOTE_INC_ERR yes
39 wait
40 messages
41 @$out ${cwd}/tmp/LOCAL_EXCL_ERR.log
42 run job=LOCAL_EXCL_ERR yes
43 wait
44 messages
45 @$out ${cwd}/tmp/REMOTE_EXCL_ERR.log
46 run job=REMOTE_EXCL_ERR yes
47 wait
48 messages
49 @$out ${cwd}/tmp/REMOTE_RUNSCRIPT_ERR.log
50 run job=REMOTE_RUNSCRIPT_ERR yes
51 wait
52 messages
53 @$out ${cwd}/tmp/LOCAL_RUNSCRIPT_ERR.log
54 run job=LOCAL_RUNSCRIPT_ERR yes
55 wait
56 messages
57 @$out ${cwd}/tmp/CLIENT_CONNECT_TIMEOUT.log
58 run job=CLIENT_CONNECT_TIMEOUT yes
59 wait
60 messages
61 @$out ${cwd}/tmp/SD_CONNECT_TIMEOUT.log
62 run job=SD_CONNECT_TIMEOUT yes
63 wait
64 messages
65 status dir
66 status storage=File
67 quit
68 END_OF_DATA
69
70 run_bacula
71 touch ${cwd}/tmp/log1.out
72 client=`grep client= $bin/bacula-dir.conf`
73 check_for_zombie_jobs storage=File $client
74 stop_bacula
75
76 dstat=0
77 bstat=0
78 rstat=0
79 export dstat
80 export bstat
81 export rstat
82
83
84 end_test