Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 01 Jun 2026 06:37:09 +0000
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 04874c54dcdb - main - math/or-tools: Fix tests
Message-ID:  <6a1d2895.19fda.72c2f03e@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=04874c54dcdb78384ae6d2f53abeac0dadef4211

commit 04874c54dcdb78384ae6d2f53abeac0dadef4211
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-06-01 06:33:47 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-06-01 06:36:46 +0000

    math/or-tools: Fix tests
---
 math/or-tools/Makefile | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/math/or-tools/Makefile b/math/or-tools/Makefile
index 8787ad5f6991..b8071e62140a 100644
--- a/math/or-tools/Makefile
+++ b/math/or-tools/Makefile
@@ -30,7 +30,8 @@ LIB_DEPENDS=	libabsl_base.so:devel/abseil \
 		libOsiClp.so:math/clp \
 		libprotobuf.so:devel/protobuf \
 		libre2.so:devel/re2
-TEST_DEPENDS=	googletest>0:devel/googletest
+TEST_DEPENDS=	benchmark>0:devel/benchmark \
+		googletest>0:devel/googletest
 
 USES=		blaslapack cmake:testing compiler:c++17-lang eigen:3 pkgconfig
 USE_LDCONFIG=	yes
@@ -43,6 +44,7 @@ CMAKE_OFF=	BUILD_PYTHON BUILD_DEPS INSTALL_BUILD_DEPS \
 CMAKE_ON=	BUILD_CXX \
 		USE_PDLP
 CMAKE_TESTING_ON=	BUILD_TESTING BUILD_EXAMPLES BUILD_CXX_EXAMPLES
+CMAKE_TESTING_OFF=	USE_fuzztest BUILD_fuzztest
 
 CONFIGURE_ENV=	UNIX_CBC_DIR=${LOCALBASE} UNIX_CLP_DIR=${LOCALBASE}
 
@@ -71,5 +73,9 @@ post-install:
 # Tests cxx_cpp_linear_programming and cxx_cpp_integer_programming abort: https://github.com/google/or-tools/issues/4555
 # 13 tests fail whuke running the math_opt_solvers_cp_sat_solver_test test executable: https://github.com/google/or-tools/issues/4556
 # The test SimpleMaxFlowTest.ProblematicProblemWithMaxCapacity (graph_max_flow_test) fails to find test data when it is built outsource: https://github.com/google/or-tools/issues/4557
+do-test:
+	@cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} ${CMAKE_BIN:H}/ctest \
+		--output-on-failure \
+		--exclude-regex "cxx_math_opt_solvers_cp_sat_solver_test|cxx_math_opt_solvers_highs_solver_test"
 
 .include <bsd.port.mk>


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a1d2895.19fda.72c2f03e>