mirror of https://github.com/git-ftp/git-ftp.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
![]() |
3 years ago | |
---|---|---|
.. | ||
shunit2-2.1.6 | 14 years ago | |
Makefile | 14 years ago | |
README.md | 9 years ago | |
git-ftp-test.sh | 3 years ago | |
lftp-4.6.0-0.pkg | 9 years ago | |
vsftpd-3.0.3.debian7 | 9 years ago | |
vsftpd-3.0.3.el_capitan | 9 years ago | |
vsftpd.conf | 9 years ago |
README.md
Testing Environment
The tests require access to an FTP server. You can start one locally. Two binaries for linux and osx are in this directory. The linux binary was compiled on a Debian 7 Wheezy system with:
wget https://security.appspot.com/downloads/vsftpd-3.0.3.tar.gz
tar xzf vsftpd-3.0.3.tar.gz
cd vsftpd-3.0.3
make
The tests need full permissions to create, read and delete directories and files. You can provide the account data via environment variables.
GIT_FTP_HOST=localhost
GIT_FTP_PORT=:2121 # the colon `:` is important
GIT_FTP_ROOT=test_dir
GIT_FTP_USER=kate
GIT_FTP_PASSWD=s3cret
export GIT_FTP_HOST
export GIT_FTP_PORT
export GIT_FTP_ROOT
export GIT_FTP_USER
export GIT_FTP_PASSWD
Run the unit tests by executing make
.
make
If you don't have lftp installed, the test will leave a bunch of test directories on the server. They are all named like git-ftp-XXXX. You should delete them.