quit
END_OF_DATA
+export zstat
grep "No Jobs running." tmp/dir.out 2>&1 >/dev/null
if [ $? != 0 ] ; then
echo " "
echo " !!!! Zombie Jobs in Director !!!!"
echo " !!!! Zombie Jobs in Director !!!!" >>test.out
echo " "
+ zstat=1
exit 1
fi
grep "No Jobs running." tmp/fd.out 2>&1 >/dev/null
echo " !!!! Zombie Jobs in File daemon !!!!"
echo " !!!! Zombie Jobs in File daemon !!!!" >>test.out
echo " "
+ zstat=1
exit 1
fi
grep "No Jobs running." tmp/sd.out 2>&1 >/dev/null
echo " !!!! Zombie Jobs in Storage daemon !!!!"
echo " !!!! Zombie Jobs in Storage daemon !!!!" >>test.out
echo " "
+ zstat=1
exit 1
fi
grep "ERROR" tmp/log*.out 2>&1 >/dev/null
echo " "
echo " !!!! ERROR in log output !!!!"
echo " !!!! ERROR in log output !!!!" >>test.out
+ grep "ERROR" tmp/log*.out
echo " "
+ zstat=1
exit 1
fi
grep "Fatal Error" tmp/log*.out 2>&1 >/dev/null
echo " "
echo " !!!! Fatal Error in log output !!!!"
echo " !!!! Fatal Error in log output !!!!" >>test.out
+ grep "Fatal Error" tmp/log*.out
echo " "
+ zstat=1
exit 1
fi
echo " "
echo " !!!! glibc detected Error in log output !!!!"
echo " !!!! glibc detected Error in log output !!!!" >>test.out
+ grep "glibc detected" tmp/log*.out
echo " "
+ zstat=1
exit 1
fi
echo " === Starting $TestName at `date +%R:%S` ==="
echo " === Starting $TestName at `date +%R:%S` ===" >>working/log
echo " "
+ export zstat
}
require_root()
run_bacula()
{
debug_wait
+ zstat=0
if test "$debug" -eq 1 ; then
bin/bacula-ctl-sd start
bin/bacula-ctl-fd start
end_test()
{
+ if [ $zstat != 0 ] ; then
+ echo " "
+ echo " !!!!! $TestName failed!!! `date +%R:%S` !!!!! "
+ echo " !!!!! $TestName failed!!! `date +%R:%S` !!!!! " >>test.out
+ echo " Status: zombie=$zstat backup=$bstat restore=$rstat diff=$dstat" >>test.out
+ echo " "
+ exit 1
+ fi
if [ $dstat != 0 -o $bstat != 0 -o $rstat != 0 ] ; then
echo " "
echo " "