dev-cpp/gtest: use CMAKE_SKIP_TESTS to filter tests

Signed-off-by: Peter Levine <plevine457@gmail.com>
Signed-off-by: Florian Schmaus <flow@gentoo.org>
This commit is contained in:
Peter Levine
2024-10-14 09:14:00 +02:00
committed by Florian Schmaus
parent 2867ff278c
commit c8ab83d2bb
+3 -5
View File
@@ -34,6 +34,9 @@ RESTRICT="!test? ( test )"
BDEPEND="test? ( ${PYTHON_DEPS} )"
# Exclude tests that fail with FEATURES="usersandbox"
CMAKE_SKIP_TESTS=( "googletest-(death-test|port)-test" )
pkg_setup() {
use test && python-any-r1_pkg_setup
}
@@ -61,11 +64,6 @@ multilib_src_configure() {
cmake_src_configure
}
multilib_src_test() {
# Exclude tests that fail with FEATURES="usersandbox"
cmake_src_test -E "googletest-(death-test|port)-test"
}
multilib_src_install_all() {
einstalldocs