svn commit: r522131 - head/misc/libpredict
Yuri Victorovich
yuri at FreeBSD.org
Sun Jan 5 10:17:39 UTC 2020
Author: yuri
Date: Sun Jan 5 10:17:39 2020
New Revision: 522131
URL: https://svnweb.freebsd.org/changeset/ports/522131
Log:
misc/libpredict: Remove tests from the build, and build and run them under the 'test' target.
Reported by: fallout (build failures in tests)
Modified:
head/misc/libpredict/Makefile
Modified: head/misc/libpredict/Makefile
==============================================================================
--- head/misc/libpredict/Makefile Sun Jan 5 09:58:41 2020 (r522130)
+++ head/misc/libpredict/Makefile Sun Jan 5 10:17:39 2020 (r522131)
@@ -16,10 +16,18 @@ USE_GITHUB= yes
GH_ACCOUNT= la1k
USE_LDCONFIG= yes
+CMAKE_OFF= BUILD_TESTING
+
PLIST_FILES= include/predict/predict.h \
lib/libpredict.so \
lib/libpredict.so.${DISTVERSION:R:R} \
lib/libpredict.so.${DISTVERSION} \
libdata/pkgconfig/predict.pc
+
+do-test:
+ @cd ${BUILD_WRKSRC} && \
+ ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DBUILD_TESTING:BOOL=ON ${CMAKE_SOURCE_PATH} && \
+ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \
+ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test
.include <bsd.port.mk>
More information about the svn-ports-all
mailing list