]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/errors-test
a6ac810dce9be2b472e18088350ef4376cd8f67f
[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 tmp/*.log
15 /bin/cp -f scripts/bacula-dir.conf.errors bin/bacula-dir.conf
16
17 echo "${cwd}/build/po" >/tmp/file-list
18
19 start_test
20
21 cat <<END_OF_DATA >tmp/bconcmds
22 @output /dev/null
23 messages
24 @output tmp/LOCAL_INC_ERROR.log
25 label volume=TestVolume001
26 run job=LOCAL_INC_ERROR yes
27 wait
28 messages
29 @output tmp/REMOTE_INC_ERROR.log
30 run job=REMOTE_INC_ERROR yes
31 wait
32 messages
33 @output tmp/LOCAL_EXCL_ERROR.log
34 run job=LOCAL_EXCL_ERROR yes
35 wait
36 messages
37 @$out tmp/REMOTE_EXCL_ERROR.log
38 run job=REMOTE_EXCL_ERROR yes
39 wait
40 messages
41 @$out tmp/REMOTE_RUNSCRIPT_ERROR.log
42 run job=REMOTE_RUNSCRIPT_ERROR yes
43 wait
44 messages
45 @$out tmp/LOCAL_RUNSCRIPT_ERROR.log
46 run job=LOCAL_RUNSCRIPT_ERROR yes
47 wait
48 messages
49 @$out tmp/CLIENT_CONNECT_TIMEOUT.log
50 run job=CLIENT_CONNECT_TIMEOUT yes
51 wait
52 messages
53 status dir
54 status storage=File
55 quit
56 END_OF_DATA
57
58 run_bacula
59 touch tmp/log1.out
60 check_for_zombie_jobs storage=File
61 #stop_bacula
62
63 dstat=0
64 bstat=0
65 rstat=0
66 export dstat
67 export bstat
68 export rstat
69
70
71 #end_test