From: Eric Bollengier Date: Tue, 8 May 2007 16:49:58 +0000 (+0000) Subject: ebl Add bug-fatal-test script X-Git-Tag: Release-7.0.0~6401 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a8e8803a6f8e7842dd732da512aefd5c8a6a5442;p=bacula%2Fbacula ebl Add bug-fatal-test script JobId Level Name Status ====================================================================== 1 Full BUG_FATAL.2007-05-08_18.47.50 has a fatal error git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4730 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/regress/scripts/bacula-dir.conf.testrunscript.in b/regress/scripts/bacula-dir.conf.testrunscript.in index 2228c63a64..6786e8abac 100644 --- a/regress/scripts/bacula-dir.conf.testrunscript.in +++ b/regress/scripts/bacula-dir.conf.testrunscript.in @@ -140,6 +140,13 @@ Job { Run After Failed Job = "/bin/echo RunAfterFailedJob" } +Job { + Name = BUG_FATAL + JobDefs = DefaultJob + FileSet = FS_TESTJOB +} + + # Client (File Services) to backup Client { Name = @hostname@-fd diff --git a/regress/tests/bug-fatal-test b/regress/tests/bug-fatal-test new file mode 100755 index 0000000000..804d15c833 --- /dev/null +++ b/regress/tests/bug-fatal-test @@ -0,0 +1,45 @@ +#!/bin/sh +# +# Test RunScript +# + +TestName="bug-fatal-test" +JobName=backup + +. scripts/functions +set_debug 0 +copy_test_confs + +rm -f bin/bacula-dir.conf +rm -f tmp/RUN*log +/bin/cp -f scripts/bacula-dir.conf.testrunscript bin/bacula-dir.conf + +rm -f /tmp/file-list +# /tmp/file-list doesn't exists +# echo "${cwd}/build/po" >/tmp/file-list + +start_test + +cat <tmp/bconcmds +@$out /dev/null +messages +label volume=TestVolume001 +@$out tmp/RUN_BUG_FATAL.log +run job=BUG_FATAL yes +wait +messages +@sleep 1 +st dir +quit +END_OF_DATA + + +bin/bacula start +cat tmp/bconcmds | bin/bconsole -c bin/bconsole.conf > /dev/null +stop_bacula + +export dstat=0 +export bstat=0 +export rstat=0 + +end_test