]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl Add bug-fatal-test script
authorEric Bollengier <eric@eb.homelinux.org>
Tue, 8 May 2007 16:49:58 +0000 (16:49 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Tue, 8 May 2007 16:49:58 +0000 (16:49 +0000)
 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

regress/scripts/bacula-dir.conf.testrunscript.in
regress/tests/bug-fatal-test [new file with mode: 0755]

index 2228c63a64b11905b306b41fdece0c0c09b3c71a..6786e8abac1be9ef4f9546e614b6c0a60f56cec8 100644 (file)
@@ -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 (executable)
index 0000000..804d15c
--- /dev/null
@@ -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 <<END_OF_DATA >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