mirror of
https://github.com/rclone/rclone.git
synced 2024-11-28 19:24:15 +08:00
cmd/gitannex: Add to integration tests
This commit registers gitannex's unit tests with the integration tester by updating the config.yaml file. Since we have not yet updated the e2e tests to use the fstest framework, this commit also adds a case to the e2e tests' skipE2eTestIfNecessary() function. Issue #7984
This commit is contained in:
parent
cecd35b0ef
commit
9c71a4afe9
|
@ -15,6 +15,7 @@ import (
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
"github.com/rclone/rclone/fs"
|
"github.com/rclone/rclone/fs"
|
||||||
|
"github.com/rclone/rclone/fstest"
|
||||||
"github.com/rclone/rclone/lib/buildinfo"
|
"github.com/rclone/rclone/lib/buildinfo"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -183,6 +184,11 @@ func skipE2eTestIfNecessary(t *testing.T) {
|
||||||
t.Skip("Skipping due to short mode.")
|
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
|
// TODO: Support e2e tests on Windows. Need to evaluate the semantics of the
|
||||||
// HOME and PATH environment variables.
|
// HOME and PATH environment variables.
|
||||||
switch runtime.GOOS {
|
switch runtime.GOOS {
|
||||||
|
|
|
@ -8,6 +8,7 @@ tests:
|
||||||
- path: fs/sync
|
- path: fs/sync
|
||||||
fastlist: true
|
fastlist: true
|
||||||
- path: cmd/bisync
|
- path: cmd/bisync
|
||||||
|
- path: cmd/gitannex
|
||||||
- path: vfs
|
- path: vfs
|
||||||
- path: cmd/serve/restic
|
- path: cmd/serve/restic
|
||||||
localonly: true
|
localonly: true
|
||||||
|
|
Loading…
Reference in New Issue
Block a user