github.com/10XDev/rclone@v1.52.3-0.20200626220027-16af9ab76b2a/backend/sftp/sftp_test.go (about)

     1  // Test Sftp filesystem interface
     2  
     3  // +build !plan9
     4  
     5  package sftp_test
     6  
     7  import (
     8  	"testing"
     9  
    10  	"github.com/rclone/rclone/backend/sftp"
    11  	"github.com/rclone/rclone/fstest"
    12  	"github.com/rclone/rclone/fstest/fstests"
    13  )
    14  
    15  // TestIntegration runs integration tests against the remote
    16  func TestIntegration(t *testing.T) {
    17  	fstests.Run(t, &fstests.Opt{
    18  		RemoteName: "TestSFTPOpenssh:",
    19  		NilObject:  (*sftp.Object)(nil),
    20  	})
    21  }
    22  
    23  func TestIntegration2(t *testing.T) {
    24  	if *fstest.RemoteName != "" {
    25  		t.Skip("skipping as -remote is set")
    26  	}
    27  	fstests.Run(t, &fstests.Opt{
    28  		RemoteName: "TestSFTPRclone:",
    29  		NilObject:  (*sftp.Object)(nil),
    30  	})
    31  }