- Remove nonsense TESTS option

- Use the framework for regression tests

With hat:	portmgr
This commit is contained in:
Antoine Brodin 2017-08-22 21:14:10 +00:00
parent 71a514dd2c
commit 3de0b2e328
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=448582

View file

@ -3,6 +3,7 @@
PORTNAME= libffi PORTNAME= libffi
PORTVERSION= 3.2.1 PORTVERSION= 3.2.1
PORTREVISION= 1
CATEGORIES= devel CATEGORIES= devel
MASTER_SITES= SOURCEWARE/${PORTNAME} MASTER_SITES= SOURCEWARE/${PORTNAME}
@ -18,14 +19,10 @@ USES= libtool pathfix
USE_LDCONFIG= yes USE_LDCONFIG= yes
GNU_CONFIGURE= yes GNU_CONFIGURE= yes
OPTIONS_DEFINE= TESTS
TESTS_DESC= Include tools for test suite
TESTS_BUILD_DEPENDS= ${TEST_DEPENDS}
INSTALL_TARGET= install-strip INSTALL_TARGET= install-strip
INFO= libffi INFO= libffi
PLIST_SUB= PORTVERSION=${PORTVERSION} PLIST_SUB= PORTVERSION=${PORTVERSION}
TEST_TARGET= check
post-patch: post-patch:
@${REINPLACE_CMD} -e 's| -Wno-psabi||g' \ @${REINPLACE_CMD} -e 's| -Wno-psabi||g' \
@ -37,7 +34,4 @@ post-install:
@${LN} -sf ../lib/libffi-${PORTVERSION}/include/ffitarget.h \ @${LN} -sf ../lib/libffi-${PORTVERSION}/include/ffitarget.h \
${STAGEDIR}${PREFIX}/include/ ${STAGEDIR}${PREFIX}/include/
regression-test: build
@(cd ${WRKSRC} && ${MAKE_CMD} check)
.include <bsd.port.mk> .include <bsd.port.mk>