Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

test_all: run restic integration tests against local backend

Nick Craig-Wood49d2ab512d16
diff --git a/fstest/test_all/config.go b/fstest/test_all/config.go
index 06c9666b0..29c9130e7 100644
--- a/fstest/test_all/config.go
+++ b/fstest/test_all/config.go
@@ -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,
diff --git a/fstest/test_all/config.yaml b/fstest/test_all/config.yaml
index 70e08de6e..d5909e93a 100644
--- a/fstest/test_all/config.yaml
+++ b/fstest/test_all/config.yaml
@@ -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