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

cmd/gitannex: Add to integration tests

Dan McArdle68e40dc14120
diff --git a/cmd/gitannex/e2e_test.go b/cmd/gitannex/e2e_test.go
index a67e9b259..be386d447 100644
--- a/cmd/gitannex/e2e_test.go
+++ b/cmd/gitannex/e2e_test.go
@@ -15,6 +15,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/rclone/rclone/fs"
+ "github.com/rclone/rclone/fstest"
"github.com/rclone/rclone/lib/buildinfo"
)
@@ -183,6 +184,11 @@ func skipE2eTestIfNecessary(t *testing.T) {
t.Skip("Skipping due to short mode.")
}
+ // TODO(#7984): Port e2e tests to `fstest` framework.
+ if *fstest.RemoteName != "" {
+ t.Skip("Skipping because fstest remote was specified.")
+ }
+
// TODO: Support e2e tests on Windows. Need to evaluate the semantics of the
// HOME and PATH environment variables.
switch runtime.GOOS {
diff --git a/fstest/test_all/config.yaml b/fstest/test_all/config.yaml
index b108dccfe..976485011 100644
--- a/fstest/test_all/config.yaml
+++ b/fstest/test_all/config.yaml
@@ -8,6 +8,7 @@ tests:
- path: fs/sync
fastlist: true
- path: cmd/bisync
+ - path: cmd/gitannex
- path: vfs
- path: cmd/serve/restic
localonly: true