summaryrefslogtreecommitdiff
path: root/regress/libexec
diff options
context:
space:
mode:
authorjan <jan@cvs.openbsd.org>2020-01-16 22:24:33 +0000
committerjan <jan@cvs.openbsd.org>2020-01-16 22:24:33 +0000
commitc4cd1c402516544e205df141969430cb5b0d0039 (patch)
tree8d23deb6a114a5e9cd6c573365ea11df3ccf9e88 /regress/libexec
parentcc7fc60f563fa43902ad11dd3d9e9563ce8a83bb (diff)
Add ftpd(8) sub test for mkdir.
Diffstat (limited to 'regress/libexec')
-rw-r--r--regress/libexec/ftpd/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/regress/libexec/ftpd/Makefile b/regress/libexec/ftpd/Makefile
index 914d6135973..cced3c8dcfa 100644
--- a/regress/libexec/ftpd/Makefile
+++ b/regress/libexec/ftpd/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.4 2020/01/16 21:00:11 jan Exp $
+# $OpenBSD: Makefile,v 1.5 2020/01/16 22:24:32 jan Exp $
.PHONY: setup-ftpd
@@ -6,6 +6,7 @@ REGRESS_TARGETS = run-ftpd-get
REGRESS_TARGETS += run-ftpd-put
REGRESS_TARGETS += run-ftpd-ls
REGRESS_TARGETS += run-ftpd-delete
+REGRESS_TARGETS += run-ftpd-mkdir
REGRESS_ROOT_TARGETS = ${REGRESS_TARGETS}
REGRESS_CLEANUP = cleanup-ftpd
REGRESS_SETUP = setup-ftpd
@@ -67,6 +68,12 @@ run-ftpd-delete:
echo delete ftpd.regress | ftp -a 127.0.0.1
test ! -f ${FTPDIR}/ftpd.regress
+run-ftpd-mkdir:
+ @echo '\n======== $@ ========'
+ echo mkdir ftpd.regress.dir.create | ftp -a 127.0.0.1
+ test -d ${FTPDIR}/ftpd.regress.dir.create
+ ${SUDO} rm -r ${FTPDIR}/ftpd.regress.dir.create
+
cleanup-ftpd:
${SUDO} pkill tcpserver || true
${SUDO} pkill ftpd || true