3 # Copyright (C) 2000-2015 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
11 TestName="errors-test"
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
25 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
28 @$out ${cwd}/tmp/LOCAL_INC_ERR.log
29 label storage=File volume=TestVolume001
34 run job=LOCAL_INC_ERR yes
37 @$out ${cwd}/tmp/REMOTE_INC_ERR.log
38 run job=REMOTE_INC_ERR yes
41 @$out ${cwd}/tmp/LOCAL_EXCL_ERR.log
42 run job=LOCAL_EXCL_ERR yes
45 @$out ${cwd}/tmp/REMOTE_EXCL_ERR.log
46 run job=REMOTE_EXCL_ERR yes
49 @$out ${cwd}/tmp/REMOTE_RUNSCRIPT_ERR.log
50 run job=REMOTE_RUNSCRIPT_ERR yes
53 @$out ${cwd}/tmp/LOCAL_RUNSCRIPT_ERR.log
54 run job=LOCAL_RUNSCRIPT_ERR yes
57 @$out ${cwd}/tmp/CLIENT_CONNECT_TIMEOUT.log
58 run job=CLIENT_CONNECT_TIMEOUT yes
61 @$out ${cwd}/tmp/SD_CONNECT_TIMEOUT.log
62 run job=SD_CONNECT_TIMEOUT yes
71 touch ${cwd}/tmp/log1.out
72 client=`grep client= $bin/bacula-dir.conf`
73 check_for_zombie_jobs storage=File $client