4 # Note: this test doesn't really do anything yet. It is used in helping
5 # to duplicate bug #1268, but so far not successful ...
8 TestName="maxruntime-test"
15 rm -f ${cwd}/tmp/RUN*log
16 cp -f ${cwd}/scripts/bacula-dir.conf.maxruntime ${cwd}/bin/bacula-dir.conf
17 WHEN=`date '+%Y-%m-%d %H:%M:%S'`
19 echo "${cwd}/build/po" >${cwd}/tmp/file-list
23 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
24 @$out ${cwd}/tmp/log1.out
26 label volume=TestVolume001 pool=PoolA
27 label volume=TestVolume002 pool=Default
32 run job=RUN_MAXRUNTIME pool=PoolA yes
39 (mkfifo ${cwd}/tmp/fifo
40 mkfifo ${cwd}/tmp/fifo2
41 mkfifo ${cwd}/tmp/fifo3) 2> /dev/null
44 check_for_zombie_jobs storage=File
47 rm -f ${cwd}/tmp/fifo ${cwd}/tmp/fifo2 ${cwd}/tmp/fifo3
52 touch ${cwd}/tmp/log2.out
54 grep -e ': Fatal error: Max run time exceeded. Job canceled.' ${cwd}/tmp/log1.out >/dev/null
57 [ "$debug" = 1 ] && echo MAXRUNTIME ok
59 echo "MAXRUNTIME in error"