summaryrefslogtreecommitdiffstats
path: root/shells
diff options
context:
space:
mode:
authornaddy <naddy@FreeBSD.org>2003-06-24 18:16:19 +0000
committernaddy <naddy@FreeBSD.org>2003-06-24 18:16:19 +0000
commitdf5102d5d3493e63da721899637fb0e421afb0a8 (patch)
tree3fe9bd9a13e7e0eb102fcfed1a0a5775f0580d0b /shells
parentb8fefde694b7b69275d31e2014f28f34b494588b (diff)
downloadFreeBSD-ports-df5102d5d3493e63da721899637fb0e421afb0a8.zip
FreeBSD-ports-df5102d5d3493e63da721899637fb0e421afb0a8.tar.gz
Add "test" target to exercise regression tests; from NetBSD.
Diffstat (limited to 'shells')
-rw-r--r--shells/ksh93/Makefile13
1 files changed, 9 insertions, 4 deletions
diff --git a/shells/ksh93/Makefile b/shells/ksh93/Makefile
index bbf8708..74e5b65 100644
--- a/shells/ksh93/Makefile
+++ b/shells/ksh93/Makefile
@@ -25,18 +25,18 @@ MAKE_ENV+= LDFLAGS=-static
.endif
MAN1= ksh93.1
+INSTALLROOT= ${WRKSRC}/arch/freebsd.${ARCH}
do-build:
@cd ${WRKSRC} && env -i ${MAKE_ENV} ${SH} bin/package make
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/arch/freebsd.${ARCH}/bin/ksh \
- ${PREFIX}/bin/ksh93
- ${INSTALL_MAN} ${WRKSRC}/arch/freebsd.${ARCH}/man/man1/sh.1 \
+ ${INSTALL_PROGRAM} ${INSTALLROOT}/bin/ksh ${PREFIX}/bin/ksh93
+ ${INSTALL_MAN} ${INSTALLROOT}/man/man1/sh.1 \
${MANPREFIX}/man/man1/ksh93.1
${MKDIR} ${PREFIX}/share/examples/ksh93
.for fun in dirs popd
- ${INSTALL_SCRIPT} ${WRKSRC}/arch/freebsd.${ARCH}/fun/${fun} \
+ ${INSTALL_SCRIPT} ${INSTALLROOT}/fun/${fun} \
${PREFIX}/share/examples/ksh93/
.endfor
@@ -47,4 +47,9 @@ post-install:
${ECHO_CMD} ${PREFIX}/bin/ksh93) >/etc/shells
@${RM} -f /etc/shells.bak
+test: build
+ @cd ${WRKSRC}/src/cmd/ksh93/tests && \
+ ${SETENV} SHELL=${INSTALLROOT}/bin/ksh \
+ ${INSTALLROOT}/bin/ksh shtests
+
.include <bsd.port.mk>
OpenPOWER on IntegriCloud