12 rm -f bin/bacula-dir.conf
14 /bin/cp -f scripts/bacula-dir.conf.testrunscript bin/bacula-dir.conf
16 echo "${cwd}/build/po" >/tmp/file-list
20 cat <<END_OF_DATA >tmp/bconcmds
23 label volume=TestVolume001
24 @$out tmp/RUN_FD_WARNING.log
25 run job=RUN_FD_WARNING yes
29 @$out tmp/RUN_FD_FAILED.log
30 run job=RUN_FD_FAILED yes
38 check_for_zombie_jobs storage=File
48 grep 'fd: ClientBeforeJob: run command "/bin/false RUN_FD_FAILED1"' tmp/RUN_FD_FAILED.log >/dev/null 2>&1
50 grep 'fd: ClientBeforeJob: run command "/bin/false RUN_FD_FAILED2"' tmp/RUN_FD_FAILED.log >/dev/null 2>&1
52 grep 'dir: AfterJob: run command "/bin/echo RunAfterFailedJob"' tmp/RUN_FD_FAILED.log >/dev/null 2>&1
54 grep 'touching' tmp/RUN_FD_FAILED.log >/dev/null 2>&1
56 grep '*** Backup Error ***' tmp/RUN_FD_FAILED.log >/dev/null 2>&1
58 if [ $a = 0 -a $b = 0 -a $c = 0 -a $d = 0 -a $e = 0 ]
60 [ "$debug" = 1 ] && echo RUN_FD_FAILED ok
62 echo "RUN_FD_FAILED in error"