test_all: run restic integration tests against local backend
This commit is contained in:
parent
9df322e889
commit
49d2ab512d
2 changed files with 10 additions and 0 deletions
|
@ -22,6 +22,7 @@ type Test struct {
|
||||||
AddBackend bool // set if Path needs the current backend appending
|
AddBackend bool // set if Path needs the current backend appending
|
||||||
NoRetries bool // set if no retries should be performed
|
NoRetries bool // set if no retries should be performed
|
||||||
NoBinary bool // set to not build a binary in advance
|
NoBinary bool // set to not build a binary in advance
|
||||||
|
LocalOnly bool // if set only run with the local backend
|
||||||
}
|
}
|
||||||
|
|
||||||
// Backend describes a backend test
|
// Backend describes a backend test
|
||||||
|
@ -55,6 +56,9 @@ func (b *Backend) MakeRuns(t *Test) (runs []*Run) {
|
||||||
}
|
}
|
||||||
for _, subdir := range subdirs {
|
for _, subdir := range subdirs {
|
||||||
for _, fastlist := range fastlists {
|
for _, fastlist := range fastlists {
|
||||||
|
if t.LocalOnly && b.Backend != "local" {
|
||||||
|
continue
|
||||||
|
}
|
||||||
run := &Run{
|
run := &Run{
|
||||||
Remote: b.Remote,
|
Remote: b.Remote,
|
||||||
Backend: b.Backend,
|
Backend: b.Backend,
|
||||||
|
|
|
@ -9,11 +9,17 @@ tests:
|
||||||
subdir: true
|
subdir: true
|
||||||
fastlist: true
|
fastlist: true
|
||||||
- path: vfs
|
- path: vfs
|
||||||
|
- path: cmd/serve/restic
|
||||||
|
localonly: true
|
||||||
backends:
|
backends:
|
||||||
# - backend: "amazonclouddrive"
|
# - backend: "amazonclouddrive"
|
||||||
# remote: "TestAmazonCloudDrive:"
|
# remote: "TestAmazonCloudDrive:"
|
||||||
# subdir: false
|
# subdir: false
|
||||||
# fastlist: false
|
# fastlist: false
|
||||||
|
- backend: "local"
|
||||||
|
remote: ""
|
||||||
|
subdir: false
|
||||||
|
fastlist: false
|
||||||
- backend: "b2"
|
- backend: "b2"
|
||||||
remote: "TestB2:"
|
remote: "TestB2:"
|
||||||
subdir: true
|
subdir: true
|
||||||
|
|
Loading…
Reference in a new issue