mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
net-libs/zmqpp: wire up tests
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
parent
33a41dddfc
commit
c43578a484
11
net-libs/zmqpp/files/zmqpp-4.2.0-boost-test-syntax.patch
Normal file
11
net-libs/zmqpp/files/zmqpp-4.2.0-boost-test-syntax.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -223,7 +223,7 @@ if( ZMQPP_BUILD_TESTS )
|
||||
src/tests/test_proxy.cpp
|
||||
)
|
||||
target_link_libraries( zmqpp-test-runner ${LIB_TO_LINK_TO_EXAMPLES} ${Boost_LIBRARIES})
|
||||
- add_test( zmqpp-test zmqpp-test-runner --log-level=test-suite )
|
||||
+ add_test( zmqpp-test zmqpp-test-runner --log_level=test_suite )
|
||||
endif()
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
@ -18,19 +18,30 @@ HOMEPAGE="https://github.com/zeromq/zmqpp"
|
||||
|
||||
LICENSE="MPL-2.0"
|
||||
SLOT="0"
|
||||
IUSE="static-libs"
|
||||
IUSE="static-libs test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
DEPEND="net-libs/zeromq[static-libs?]"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${P}-multilib-strict.patch" )
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-multilib-strict.patch"
|
||||
"${FILESDIR}/${PN}-4.2.0-boost-test-syntax.patch"
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DIS_TRAVIS_CI_BUILD=OFF
|
||||
-DZMQPP_BUILD_SHARED=ON
|
||||
-DZMQPP_BUILD_STATIC=$(usex static-libs)
|
||||
-DZMQPP_BUILD_TESTS=$(usex test)
|
||||
)
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# https://github.com/zeromq/zmqpp/issues/223
|
||||
local -x BOOST_TEST_RUN_FILTERS='!socket/test_simple_monitor'
|
||||
cmake_src_test
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user