commit:     d6a0bf9437a7278215c25a7e3f65cdbb5a8608d6
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 16 23:41:22 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Oct 16 23:41:57 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d6a0bf94

dev-util/clazy: run tests against built copy of clazy

This doesn't get us all of the way there yet though,
tests still fail due to Clang shenanigans with include
paths(?)

Bug: https://bugs.gentoo.org/811723
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-util/clazy/clazy-1.10.ebuild | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/dev-util/clazy/clazy-1.10.ebuild b/dev-util/clazy/clazy-1.10.ebuild
index 7f7ef80b920..160c50c5c64 100644
--- a/dev-util/clazy/clazy-1.10.ebuild
+++ b/dev-util/clazy/clazy-1.10.ebuild
@@ -36,3 +36,9 @@ src_configure() {
        export LLVM_ROOT="/usr/lib/llvm/$(ver_cut 1 
${clang_version##sys-devel/clang-})"
        cmake_src_configure
 }
+
+src_test() {
+       # Run tests against built copy, not installed
+       # bug #811723
+       PATH="${BUILD_DIR}/bin:${PATH}" LD_LIBRARY_PATH="${BUILD_DIR}/lib" 
cmake_src_test
+}

Reply via email to