From: Eric Bollengier Date: Wed, 25 Apr 2007 20:16:41 +0000 (+0000) Subject: ebl regexwher tests are ok X-Git-Tag: Release-7.0.0~6494 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=36fd55be927676d650aa3f218cde203334c51cd0;p=bacula%2Fbacula ebl regexwher tests are ok git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4634 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/regress/scripts/bacula-dir.conf.regexwhere.in b/regress/scripts/bacula-dir.conf.regexwhere.in index ffac01395c..89aed77398 100644 --- a/regress/scripts/bacula-dir.conf.regexwhere.in +++ b/regress/scripts/bacula-dir.conf.regexwhere.in @@ -1,16 +1,6 @@ -# -# Default Bacula Director Configuration file -# -# The only thing that MUST be changed is to add one or more -# file or directory names in the Include directive of the -# FileSet resource. -# -# For Bacula release 1.39.27 (24 October 2006) -- debian testing/unstable -# -# You might also want to change the default email address -# from root to your address. See the "mail" and "operator" -# directives in the Messages resource. -# +# TODO +# Orphaned buffer: localhost-dir 40 bytes buf=80e9a70 allocated at dird_conf.c:1338 +# bacula-dir: dird.c:656 Hey something is wrong. p=0x135174768 Director { # define myself Name = @hostname@-dir @@ -24,10 +14,10 @@ Director { # define myself Messages = Standard } -JobDefs { - Name = "DefaultJob" +Job { + Name = "backup" Type = Backup - Level = Incremental + Level = Full Client = @hostname@-fd FileSet = FS_TESTJOB Storage = File @@ -52,6 +42,7 @@ JobDefs { FileSet="FS_TESTJOB" Messages = Standard Pool = Default + Replace = Always } Job { @@ -65,88 +56,39 @@ Job { JobDefs = DefaultRestore add prefix = /tmp/bacula-restore add suffix = .old - strip prefix = /build + strip prefix = /build } Job { Name = JobC - JobDefs = DefaultRestoreWhere -} - -JobDefs { - Name = "DefaultRestoreWhere" - Type = Restore - Storage = File - Client=localhost-fd - FileSet="FS_TESTJOB" - Messages = Standard - Pool = Default - Where = /tmp/bacula-restores -} - -JobDefs { - Name = "DefaultRestoreRegexWhere" - Type = Restore - Storage = File - Client=localhost-fd - FileSet="FS_TESTJOB" - Messages = Standard - Pool = Default - RegexWhere = !po$!old.po! -} - -JobDefs { - Name = "DefaultRestoreOther" - Type = Restore - Storage = File - Client=localhost-fd - FileSet="FS_TESTJOB" - Messages = Standard - Pool = Default - add suffix = .old -} - -Job { - Name = Job1 - JobDefs = DefaultRestoreWhere - RegexWhere = !po$!old.po! + JobDefs = DefaultRestore + Where = /tmp/bacula-restore } Job { - Name = Job2 - JobDefs = DefaultRestoreWhere - add suffix = .old + Name = JobD + JobDefs = DefaultRestore + RegexWhere = "doesnt work" } Job { - Name = Job3 - JobDefs = DefaultRestoreRegexWhere - Where = /tmp/bacula-restore + Name = JobE + JobDefs = DefaultRestore + RegexWhere = "/BUILD/tmp/i,!po/!!" } -# TODO -# Orphaned buffer: localhost-dir 40 bytes buf=80e9a70 allocated at dird_conf.c:1338 -# bacula-dir: dird.c:656 Hey something is wrong. p=0x135174768 Job { - Name = Job4 - JobDefs = DefaultRestoreRegexWhere - add suffix = .old + Name = JobF + JobDefs = DefaultRestore + RegexWhere = "/something witch doesn't match/tmp/i" } Job { - Name = Job5 - JobDefs = DefaultRestoreOther + Name = JobG + JobDefs = DefaultRestore Where = /tmp/bacula-restore } -Job { - Name = Job6 - JobDefs = DefaultRestoreOther - add suffix = .temp -} - - - # Client (File Services) to backup Client { diff --git a/regress/tests/runscript-test b/regress/tests/runscript-test index 62c449a627..434e3c1c96 100755 --- a/regress/tests/runscript-test +++ b/regress/tests/runscript-test @@ -1,6 +1,6 @@ #!/bin/sh # -# Test if Bacula can automatically create a Volume label. +# Test RunScript # TestName="runscript-test"