Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
systemtests: add fileset-multiple-blocks test
This test combines the two tests fileset-multiple-include-blocks and fileset-multiple-options-blocks by using ctest fixtures.
- Loading branch information
1 parent
86289ce
commit ffa3793
Showing
56 changed files
with
133 additions
and
318 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions
10
...s/bareos-dir.d/fileset/FS_TESTJOB.conf.in → ....d/fileset/fileset-multi-includes.conf.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
FileSet { | ||
Name = "FS_TESTJOB" | ||
Name = "fileset-multi-includes" | ||
Include { | ||
Options { | ||
signature = MD5 | ||
} | ||
File=@tmpdir@/data/data1 | ||
File=@tmpdir@/data-multi-includes/data1 | ||
} | ||
Include { | ||
Options { | ||
signature = MD5 | ||
compression = GZIP | ||
} | ||
File=@tmpdir@/data/data2 | ||
File=@tmpdir@/data-multi-includes/data2 | ||
} | ||
Include { | ||
Options { | ||
signature = MD5 | ||
compression = GZIP9 | ||
} | ||
File=@tmpdir@/data/data3 | ||
File=@tmpdir@/data-multi-includes/data3 | ||
} | ||
Include { | ||
Options { | ||
signature = MD5 | ||
compression = LZ4 | ||
} | ||
File=@tmpdir@/data/data4 | ||
File=@tmpdir@/data-multi-includes/data4 | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
...sts/fileset-multiple-blocks/etc/bareos/bareos-dir.d/fileset/fileset-multi-options.conf.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
FileSet { | ||
Name = "fileset-multi-options" | ||
Include { | ||
|
||
Options { | ||
signature = MD5 | ||
wilddir = @tmpdir@/data-multi-options/*1 | ||
wild = @tmpdir@/data-multi-options/*1/* | ||
} | ||
Options { | ||
signature = MD5 | ||
compression = GZIP | ||
wilddir = @tmpdir@/data-multi-options/*2 | ||
wild = @tmpdir@/data-multi-options/*2/* | ||
} | ||
Options { | ||
signature = MD5 | ||
compression = GZIP9 | ||
wilddir = @tmpdir@/data-multi-options/*3 | ||
wild = @tmpdir@/data-multi-options/*3/* | ||
} | ||
Options { | ||
signature = MD5 | ||
compression = LZ4 | ||
wilddir = @tmpdir@/data-multi-options/*4 | ||
wild = @tmpdir@/data-multi-options/*4/* | ||
} | ||
Options { | ||
exclude = yes | ||
wilddir = @tmpdir@/data-multi-options/* | ||
} | ||
|
||
File=@tmpdir@/data-multi-options/ | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
systemtests/tests/fileset-multiple-blocks/etc/bareos/bareos-dir.d/job/RestoreFiles.conf.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Job { | ||
Name = "RestoreFiles" | ||
Type = Restore | ||
JobDefs = "DefaultJob" | ||
Where = @tmp@/bareos-restores | ||
} |
3 changes: 2 additions & 1 deletion
3
...bareos-dir.d/job/backup-bareos-fd.conf.in → ...reos-dir.d/job/backup-multi-includes.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
Job { | ||
Name = "backup-bareos-fd" | ||
Name = "backup-multi-includes" | ||
JobDefs = "DefaultJob" | ||
Type = Backup | ||
Client = "bareos-fd" | ||
Fileset = "fileset-multi-includes" | ||
} |
3 changes: 2 additions & 1 deletion
3
...bareos-dir.d/job/backup-bareos-fd.conf.in → ...areos-dir.d/job/backup-multi-options.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
Job { | ||
Name = "backup-bareos-fd" | ||
Name = "backup-multi-options" | ||
JobDefs = "DefaultJob" | ||
Type = Backup | ||
Client = "bareos-fd" | ||
Fileset = "fileset-multi-options" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
9 changes: 9 additions & 0 deletions
9
systemtests/tests/fileset-multiple-blocks/etc/bareos/bareos-dir.d/pool/Differential.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Pool { | ||
Name = Differential | ||
Pool Type = Backup | ||
Recycle = yes | ||
AutoPrune = yes | ||
Maximum Volume Bytes = 10M | ||
Maximum Volumes = 1 | ||
Label Format = "Differential-" | ||
} |
9 changes: 9 additions & 0 deletions
9
systemtests/tests/fileset-multiple-blocks/etc/bareos/bareos-dir.d/pool/Full.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Pool { | ||
Name = Full | ||
Pool Type = Backup | ||
Recycle = yes | ||
AutoPrune = yes | ||
Maximum Volume Bytes = 10M | ||
Maximum Volumes = 1 | ||
Label Format = "Full-" | ||
} |
9 changes: 9 additions & 0 deletions
9
systemtests/tests/fileset-multiple-blocks/etc/bareos/bareos-dir.d/pool/Incremental.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Pool { | ||
Name = Incremental | ||
Pool Type = Backup | ||
Recycle = yes | ||
AutoPrune = yes | ||
Maximum Volume Bytes = 10M | ||
Maximum Volumes = 1 | ||
Label Format = "Incremental-" | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 0 additions & 7 deletions
7
...ts/tests/fileset-multiple-include-blocks/etc/bareos/bareos-dir.d/job/RestoreFiles.conf.in
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
.../tests/fileset-multiple-include-blocks/etc/bareos/bareos-dir.d/jobdefs/DefaultJob.conf.in
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.