Test vsftpd also without EPSV and merge results
Inspired by https://github.com/0xazure/go-pdify/blob/bde1ebadf0de51b082ab4ad638e10794a74b2939/.travis.yml
This commit is contained in:
Executable
+11
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh -e
|
||||
|
||||
for cmds in NONE EPSV; do
|
||||
# configure vsftpd
|
||||
sudo cp $TRAVIS_BUILD_DIR/.vsftpd.conf /etc/vsftpd.conf
|
||||
echo cmds_denied=$cmds | sudo tee --append /etc/vsftpd.conf
|
||||
sudo service vsftpd restart
|
||||
|
||||
# run tests
|
||||
go test -v -coverprofile="$cmds.coverprofile"
|
||||
done
|
||||
Reference in New Issue
Block a user