]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/errors-test
Copy trunk regress into Branch
[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
11 scripts/cleanup
12 copy_test_confs
13
14 rm -f ${cwd}/tmp/*.log
15 /bin/cp -f scripts/bacula-dir.conf.errors bin/bacula-dir.conf
16 echo "${cwd}/build/po" >${cwd}/tmp/file-list
17
18 start_test
19
20 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
21 @output /dev/null
22 messages
23 @output ${cwd}/tmp/LOCAL_INC_ERR.log
24 label storage=File volume=TestVolume001
25 add storage=File2
26 1
27 File2
28 1
29 run job=LOCAL_INC_ERR yes
30 wait
31 messages
32 @output ${cwd}/tmp/REMOTE_INC_ERR.log
33 run job=REMOTE_INC_ERR yes
34 wait
35 messages
36 @output ${cwd}/tmp/LOCAL_EXCL_ERR.log
37 run job=LOCAL_EXCL_ERR yes
38 wait
39 messages
40 @$out ${cwd}/tmp/REMOTE_EXCL_ERR.log
41 run job=REMOTE_EXCL_ERR yes
42 wait
43 messages
44 @$out ${cwd}/tmp/REMOTE_RUNSCRIPT_ERR.log
45 run job=REMOTE_RUNSCRIPT_ERR yes
46 wait
47 messages
48 @$out ${cwd}/tmp/LOCAL_RUNSCRIPT_ERR.log
49 run job=LOCAL_RUNSCRIPT_ERR yes
50 wait
51 messages
52 @$out ${cwd}/tmp/CLIENT_CONNECT_TIMEOUT.log
53 run job=CLIENT_CONNECT_TIMEOUT yes
54 wait
55 messages
56 @$out ${cwd}/tmp/SD_CONNECT_TIMEOUT.log
57 run job=SD_CONNECT_TIMEOUT yes
58 wait
59 messages
60 status dir
61 status storage=File
62 quit
63 END_OF_DATA
64
65 run_bacula
66 touch ${cwd}/tmp/log1.out
67 client=$(grep client= bin/bacula-dir.conf)
68 check_for_zombie_jobs storage=File $client
69 stop_bacula
70
71 dstat=0
72 bstat=0
73 rstat=0
74 export dstat
75 export bstat
76 export rstat
77
78
79 end_test