Add subtest for EPRT command in ftpd regression test
authorjan <jan@openbsd.org>
Sun, 9 May 2021 14:26:45 +0000 (14:26 +0000)
committerjan <jan@openbsd.org>
Sun, 9 May 2021 14:26:45 +0000 (14:26 +0000)
regress/libexec/ftpd/Makefile

index baf6ea4..fe6bfdc 100644 (file)
@@ -1,9 +1,11 @@
-#      $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
@@ -54,11 +56,21 @@ run-ftpd-get:
        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'