test_all: run restic integration tests against local backend

This commit is contained in:
Nick Craig-Wood 2019-05-01 11:46:42 +01:00
parent 9df322e889
commit 49d2ab512d
2 changed files with 10 additions and 0 deletions

View File

@ -22,6 +22,7 @@ type Test struct {
AddBackend bool // set if Path needs the current backend appending
NoRetries bool // set if no retries should be performed
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
@ -55,6 +56,9 @@ func (b *Backend) MakeRuns(t *Test) (runs []*Run) {
}
for _, subdir := range subdirs {
for _, fastlist := range fastlists {
if t.LocalOnly && b.Backend != "local" {
continue
}
run := &Run{
Remote: b.Remote,
Backend: b.Backend,

View File

@ -9,11 +9,17 @@ tests:
subdir: true
fastlist: true
- path: vfs
- path: cmd/serve/restic
localonly: true
backends:
# - backend: "amazonclouddrive"
# remote: "TestAmazonCloudDrive:"
# subdir: false
# fastlist: false
- backend: "local"
remote: ""
subdir: false
fastlist: false
- backend: "b2"
remote: "TestB2:"
subdir: true