From a8e8803a6f8e7842dd732da512aefd5c8a6a5442 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Tue, 8 May 2007 16:49:58 +0000 Subject: [PATCH] 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 --- .../scripts/bacula-dir.conf.testrunscript.in | 7 +++ regress/tests/bug-fatal-test | 45 +++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100755 regress/tests/bug-fatal-test 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 -- 2.39.5