-# $OpenBSD: Makefile,v 1.10 2021/05/09 14:05:42 jan Exp $
+# $OpenBSD: Makefile,v 1.11 2021/05/09 14:26:45 jan Exp $
.PHONY: setup-ftpd
REGRESS_TARGETS = run-ftpd-get
+REGRESS_TARGETS += run-ftpd-get-active
REGRESS_TARGETS += run-ftpd-put
+REGRESS_TARGETS += run-ftpd-put-active
REGRESS_TARGETS += run-ftpd-ls
REGRESS_TARGETS += run-ftpd-nlist
REGRESS_TARGETS += run-ftpd-delete
cmp ${FTPDIR}/ftpd.regress ftpd.regress
rm ftpd.regress
+run-ftpd-get-active:
+ ftp_proxy= ftp -a -A ftp://127.0.0.1/ftpd.regress
+ cmp ${FTPDIR}/ftpd.regress ftpd.regress
+ rm ftpd.regress
+
run-ftpd-put:
echo put ftpd.regress.local | ftp -a 127.0.0.1
cmp ${FTPDIR}/ftpd.regress.local ftpd.regress.local
${SUDO} rm ${FTPDIR}/ftpd.regress.local
+run-ftpd-put-active:
+ echo put ftpd.regress.local | ftp -a -A 127.0.0.1
+ cmp ${FTPDIR}/ftpd.regress.local ftpd.regress.local
+ ${SUDO} rm ${FTPDIR}/ftpd.regress.local
+
run-ftpd-ls:
echo ls | ftp -a 127.0.0.1 | grep -q 'ftpd.regress'