From 78b4356ac85acbd6d5c6dc452cf69e26524f9c6f Mon Sep 17 00:00:00 2001 From: Guilherme Artem Date: Mon, 4 Nov 2024 15:15:56 -0300 Subject: [PATCH] Updating tests --- build_test_server.sh | 14 +++++++------- examples_test.go | 2 +- parallel_walk_test.go | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/build_test_server.sh b/build_test_server.sh index 53c4f06..fdbee6d 100755 --- a/build_test_server.sh +++ b/build_test_server.sh @@ -7,9 +7,9 @@ cd ftpd ftpd_dir=`pwd` -curl -O ftp://ftp.proftpd.org/distrib/source/proftpd-1.3.5.tar.gz -tar -xzf proftpd-1.3.5.tar.gz -cd proftpd-1.3.5 +curl -O ftp://ftp.proftpd.org/distrib/source/proftpd-1.3.8b.tar.gz +tar -xzf proftpd-1.3.8b.tar.gz +cd proftpd-1.3.8b # fix slow tls data connection handshake (https://github.com/proftpd/proftpd/pull/48) perl -pi -e 's/(\Qpr_inet_set_proto_nodelay(conn->pool, conn, 1);\E)/$1\n(void) pr_inet_set_proto_cork(conn->wfd, 0);/' contrib/mod_tls.c @@ -88,9 +88,9 @@ VpOorURz8ETlfAA= -----END CERTIFICATE----- CERT -curl -O https://download.pureftpd.org/pub/pure-ftpd/releases/obsolete/pure-ftpd-1.0.36.tar.gz -tar -xzf pure-ftpd-1.0.36.tar.gz -cd pure-ftpd-1.0.36 +curl -O https://download.pureftpd.org/pub/pure-ftpd/releases/pure-ftpd-1.0.50.tar.gz +tar -xzf pure-ftpd-1.0.50.tar.gz +cd pure-ftpd-1.0.50 # build normal binary with explicit tls support CFLAGS=$cflags LDFLAGS=$ldflags ./configure --with-nonroot --with-puredb --with-tls --with-certfile=$ftpd_dir/pure-ftpd.pem @@ -121,4 +121,4 @@ fi chmod 600 users.txt # generate puredb user db file -pure-ftpd-1.0.36/src/pure-pw mkdb users.pdb -f users.txt +pure-ftpd-1.0.50/src/pure-pw mkdb users.pdb -f users.txt diff --git a/examples_test.go b/examples_test.go index c389b26..b2baf82 100644 --- a/examples_test.go +++ b/examples_test.go @@ -11,7 +11,7 @@ import ( "os" "time" - "github.com/secsy/goftp" + "github.com/AcordoCertoBR/goftp" ) func Example() { diff --git a/parallel_walk_test.go b/parallel_walk_test.go index e344e2b..e0bea3c 100644 --- a/parallel_walk_test.go +++ b/parallel_walk_test.go @@ -11,7 +11,7 @@ import ( "path/filepath" "sync/atomic" - "github.com/secsy/goftp" + "github.com/AcordoCertoBR/goftp" ) // Just for fun, walk an ftp server in parallel. I make no claim that this is