diff options
author | Christian Weisgerber <naddy@FreeBSD.org> | 2003-06-24 18:16:19 +0000 |
---|---|---|
committer | Christian Weisgerber <naddy@FreeBSD.org> | 2003-06-24 18:16:19 +0000 |
commit | 2b0d90006e35d1eb2c281f4af3a3d1d996a38b60 (patch) | |
tree | f54504e4bd8f3103a6ed29ba1a629421a8a0aa51 | |
parent | Update to 1.10 (diff) |
Add "test" target to exercise regression tests; from NetBSD.
Notes
Notes:
svn path=/head/; revision=83540
-rw-r--r-- | shells/ksh93/Makefile | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/shells/ksh93/Makefile b/shells/ksh93/Makefile index bbf8708d5cd3..74e5b6514b6e 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> |