]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/scripts/bacula-dir.conf.testrunscript.in
Commit win32 regression patch from Michael Short
[bacula/bacula] / regress / scripts / bacula-dir.conf.testrunscript.in
index fbac7d74d3437585fbbab871ee14ec4ceefde3bd..abd107053cd4d778edeb55e6ba5f1d3474e82f04 100644 (file)
@@ -14,7 +14,7 @@
 
 Director {                            # define myself
   Name = @hostname@-dir
-  DIRport = 8101                # where we listen for UA connections
+  DIRPort = @dirport@                # where we listen for UA connections
   QueryFile = "@scriptdir@/query.sql"
   WorkingDirectory = "@working_dir@"
   PidDirectory = "@piddir@"
@@ -40,7 +40,7 @@ JobDefs {
 FileSet {
  Name = FS_TESTJOB
  Include {
-   File=</tmp/file-list
+   File=<@tmpdir@/file-list
  }
 }
 
@@ -97,6 +97,16 @@ Job {
   }
 
   Run After Failed Job = "/bin/echo RunAfterFailedJob"
+  RunScript {
+    Command = "/bin/echo touching @tmpdir@/RUN_FD_FAILED"
+    RunsWhen = after
+    RunsOnFailure = yes
+  }
+  RunScript {
+    Command = "/bin/touch @tmpdir@/RUN_FD_FAILED"
+    RunsWhen = after
+    RunsOnFailure = yes
+  }
 }
 
 #@hostname@-fd: ClientBeforeJob: run command "/bin/false RUN_FD_FAILED1"
@@ -140,18 +150,36 @@ Job {
   Run After Failed Job = "/bin/echo RunAfterFailedJob"
 }
 
+FileSet {
+ Name = FS_FIFO
+ Include {
+   Options { readfifo = yes }
+   File=<@tmpdir@/file-list
+ }
+}
+
 Job {
-  Name = BUG_FATAL
+  Name = BUG_897
   JobDefs = DefaultJob
-  FileSet = FS_TESTJOB
-}
+  FileSet = FS_FIFO
 
+  RunScript {
+    Command = "/bin/echo touching @tmpdir@/RUN_BUG_897"
+    RunsWhen = after
+    RunsOnFailure = yes
+  }
+  RunScript {
+    Command = "/bin/touch @tmpdir@/RUN_BUG_897"
+    RunsWhen = after
+    RunsOnFailure = yes
+  }
+}
 
 # Client (File Services) to backup
 Client {
   Name = @hostname@-fd
   Address = @hostname@
-  FDPort = 8102
+  FDPort = @fdport@
   Catalog = MyCatalog
   Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc"          # password for FileDaemon
   File Retention = 30d                # 30 days
@@ -164,7 +192,7 @@ Client {
 Storage {
   Name = File
   Address = @hostname@                # N.B. Use a fully qualified name here
-  SDPort = 8103
+  SDPort = @sdport@
   Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
   Device = FileStorage
   Media Type = File