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

     1  // Test FTP filesystem interface
     2  package ftp_test
     3  
     4  import (
     5  	"testing"
     6  
     7  	"github.com/rclone/rclone/backend/ftp"
     8  	"github.com/rclone/rclone/fstest"
     9  	"github.com/rclone/rclone/fstest/fstests"
    10  )
    11  
    12  // TestIntegration runs integration tests against the remote
    13  func TestIntegration(t *testing.T) {
    14  	fstests.Run(t, &fstests.Opt{
    15  		RemoteName: "TestFTPProftpd:",
    16  		NilObject:  (*ftp.Object)(nil),
    17  	})
    18  }
    19  
    20  func TestIntegration2(t *testing.T) {
    21  	if *fstest.RemoteName != "" {
    22  		t.Skip("skipping as -remote is set")
    23  	}
    24  	fstests.Run(t, &fstests.Opt{
    25  		RemoteName: "TestFTPRclone:",
    26  		NilObject:  (*ftp.Object)(nil),
    27  	})
    28  }
    29  
    30  func TestIntegration3(t *testing.T) {
    31  	if *fstest.RemoteName != "" {
    32  		t.Skip("skipping as -remote is set")
    33  	}
    34  	fstests.Run(t, &fstests.Opt{
    35  		RemoteName: "TestFTPPureftpd:",
    36  		NilObject:  (*ftp.Object)(nil),
    37  	})
    38  }
    39  
    40  // func TestIntegration4(t *testing.T) {
    41  // 	if *fstest.RemoteName != "" {
    42  // 		t.Skip("skipping as -remote is set")
    43  // 	}
    44  // 	fstests.Run(t, &fstests.Opt{
    45  // 		RemoteName: "TestFTPVsftpd:",
    46  // 		NilObject:  (*ftp.Object)(nil),
    47  // 	})
    48  // }