12 rm -f bin/bacula-dir.conf
15 rm -f /tmp/RUN_BUG_897
16 rm -f /tmp/RUN_FD_FAILED
18 /bin/cp -f scripts/bacula-dir.conf.testrunscript bin/bacula-dir.conf
20 echo "${cwd}/build/po" >/tmp/file-list
21 echo "${cwd}/tmp/fifo" >> /tmp/file-list
22 mkfifo "${cwd}/tmp/fifo"
24 # use this to be able to cancel a running job
26 cat > ${cwd}/tmp/fifo < /dev/zero
27 cat > ${cwd}/tmp/fifo < /dev/zero
32 cat <<END_OF_DATA >tmp/bconcmds
35 label volume=TestVolume001
36 @$out tmp/RUN_FD_FAILED.log
37 run job=RUN_FD_FAILED yes
41 @$out tmp/RUN_BUG_897.log
53 check_for_zombie_jobs storage=File
63 grep 'fd: ClientBeforeJob: run command "/bin/false RUN_FD_FAILED1"' tmp/RUN_FD_FAILED.log >/dev/null 2>&1
65 grep 'fd: ClientBeforeJob: run command "/bin/false RUN_FD_FAILED2"' tmp/RUN_FD_FAILED.log >/dev/null 2>&1
67 grep 'dir: AfterJob: run command "/bin/echo RunAfterFailedJob"' tmp/RUN_FD_FAILED.log >/dev/null 2>&1
69 grep 'touching' tmp/RUN_FD_FAILED.log >/dev/null 2>&1
71 grep '*** Backup Error ***' tmp/RUN_FD_FAILED.log >/dev/null 2>&1
73 if [ $a = 0 -a $b = 0 -a $c = 0 -a $d = 0 -a $e = 0 ]
75 [ "$debug" = 1 ] && echo RUN_FD_FAILED ok
77 echo "RUN_FD_FAILED in error"
80 if test -f /tmp/RUN_FD_FAILED
82 echo "The /tmp/RUN_FD_FAILED have been created, but nothing could be found"
87 grep 'touching' tmp/RUN_BUG_897.log >/dev/null 2>&1
91 [ "$debug" = 1 ] && echo RUN_FD_FAILED ok
93 echo "RUN_BUG_897 in error"
96 if test -f /tmp/RUN_BUG_897
98 echo "The /tmp/RUN_BUG_897 have been created, but nothing could be found"