commit:     5326e72b51cf844d9695ca647df6151c9dd49aa3
Author:     Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
AuthorDate: Sun Nov 10 21:26:08 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Nov 10 21:43:19 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5326e72b

dev-util/clazy: introduce more test DEPENDs

Don't skip tests in favour of requiring the needed packages.

Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-util/clazy/clazy-1.12.ebuild | 23 ++++-------------------
 1 file changed, 4 insertions(+), 19 deletions(-)

diff --git a/dev-util/clazy/clazy-1.12.ebuild b/dev-util/clazy/clazy-1.12.ebuild
index a04372e51041..bcf6a9d8df19 100644
--- a/dev-util/clazy/clazy-1.12.ebuild
+++ b/dev-util/clazy/clazy-1.12.ebuild
@@ -25,7 +25,11 @@ DEPEND="${RDEPEND}"
 BDEPEND="
        test? (
                ${PYTHON_DEPS}
+               dev-qt/qtbase:6[network,xml]
+               dev-qt/qtmultimedia:6
                dev-qt/qtnetworkauth:6
+               dev-qt/qtscxml:6[qml]
+               dev-qt/qtsvg:6
        )
 "
 
@@ -77,26 +81,7 @@ src_test() {
        local -x 
PATH="${BUILD_DIR}/${LLVM_ROOT}/bin:${BUILD_DIR}/bin:${BUILD_DIR}:${PATH}"
        local -x LD_LIBRARY_PATH="${BUILD_DIR}/lib"
 
-       # NOTE or DEPEND on "test? ( dev-qt/qtscxml:6[qml] )"
-       local -x CMAKE_SKIP_TESTS=()
-
        chmod +x "${BUILD_DIR}"/clazy || die
 
-       if ! has_version dev-qt/qtscxml:6; then
-               CMAKE_SKIP_TESTS+=(
-                       # cannot find -lQt6StateMachine: No such file or 
directory
-                       "old-style-connect"
-               )
-       fi
-
-       if ! has_version dev-qt/qtdeclarative:6; then
-               CMAKE_SKIP_TESTS+=(
-                       # lowercase-qml-type-name/main.cpp:3:10: fatal error: 
'QtQml/QQmlEngine' file not found
-                       "lowercase-qml-type-name"
-                       # no-module-include/main.cpp:5:10: fatal error: 
'QtQml/QtQml' file not found
-                       "no-module-include"
-               )
-       fi
-
        cmake_src_test
 }

Reply via email to