]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl Add a error check test
authorEric Bollengier <eric@eb.homelinux.org>
Wed, 8 Aug 2007 19:31:26 +0000 (19:31 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Wed, 8 Aug 2007 19:31:26 +0000 (19:31 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5312 91ce42f0-d328-0410-95d8-f526ca767f89

regress/scripts/bacula-dir.conf.errors.in
regress/tests/errors-test [new file with mode: 0644]

index bcf819fae9caca362758c6beafc7965c94e34069..46bdc23db96a170f11dd04e1afb61279983b8b6f 100644 (file)
@@ -29,7 +29,6 @@ JobDefs {
   Type = Backup
   Level = Incremental
   Client = @hostname@-fd 
-  FileSet = FS_TESTJOB
   Storage = File
   Messages = Standard
   Pool = Default
@@ -37,13 +36,6 @@ JobDefs {
   Maximum Concurrent Jobs = 16
 }
 
-FileSet {
- Name = FS_LOCAL_INC_ERROR
- Include {
-   File=</tmp/path/to/nowhere
- }
-}
-
 Job {
   Name = "LOCAL_INC_ERROR"
   JobDefs = DefaultJob
@@ -73,6 +65,11 @@ Job {
 
 FileSet {
  Name = FS_LOCAL_INC_ERROR
+ Include { File=</tmp/path/to/nowhere }
+}
+
+FileSet {
+ Name = FS_LOCAL_EXCL_ERROR
  Include { File=</tmp/file-list }
  Exclude {
    File=</tmp/path/to/nowhere
diff --git a/regress/tests/errors-test b/regress/tests/errors-test
new file mode 100644 (file)
index 0000000..218da02
--- /dev/null
@@ -0,0 +1,57 @@
+#!/bin/sh
+#
+#  Test errors
+#
+
+TestName="errors-test"
+JobName=backup
+
+. scripts/functions
+copy_test_confs
+set_debug 0
+
+rm -f tmp/*.log
+/bin/cp -f scripts/bacula-dir.conf.errors bin/bacula-dir.conf
+
+echo "${cwd}/build/po" >/tmp/file-list
+
+start_test
+
+cat <<END_OF_DATA >tmp/bconcmds
+@output /dev/null
+messages
+label volume=TestVolume001
+@output tmp/LOCAL_INC_ERROR.log
+run job=LOCAL_INC_ERROR yes
+wait
+messages
+@output tmp/REMOTE_INC_ERROR.log
+run job=REMOTE_INC_ERROR yes
+wait
+messages
+@output tmp/LOCAL_EXCL_ERROR.log
+run job=LOCAL_EXCL_ERROR yes
+wait
+messages
+@$out tmp/REMOTE_EXCL_ERROR.log
+run job=REMOTE_EXCL_ERROR yes
+wait
+messages
+st dir
+quit
+END_OF_DATA
+
+run_bacula
+touch tmp/log1.out
+check_for_zombie_jobs storage=File
+#stop_bacula
+
+dstat=0
+bstat=0
+rstat=0
+export dstat
+export bstat
+export rstat
+
+
+#end_test