guix_mirror_bot pushed a commit to branch c++-team
in repository guix.
commit 09d30051cc7455e14b280214d39d674dbe92de12
Author: Greg Hogan <[email protected]>
AuthorDate: Wed May 14 17:52:00 2025 +0000
gnu: assimp: Enable testing.
* gnu/packages/graphics.scm (assimp)[arguments]<#:phases>: Add
custom phase to enable testing.
Change-Id: I0475094072b57ff0de206330ee30213ee114feb2
---
gnu/packages/graphics.scm | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm
index c7fdd593b6..a6d19d50a6 100644
--- a/gnu/packages/graphics.scm
+++ b/gnu/packages/graphics.scm
@@ -804,6 +804,18 @@ and export to various formats including the format used by
Magicavoxel.")
(sha256
(base32
"097fxq0frb2nl6bp8wz7kjx6vq4i4117wwq9fnxzkiij9xwv3cq9"))))
+ (arguments
+ (list #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'enable-testing
+ (lambda _
+ (substitute* "CMakeLists.txt"
+ (("IF \\( ASSIMP_BUILD_TESTS \\)" all)
+ (string-append all "\n enable_testing()")))
+ (substitute* "test/CMakeLists.txt"
+ ;; Leave the test binary where ctest will look for it.
+ (("TARGET_USE_COMMON_OUTPUT_DIRECTORY\\(unit\\)")
+ "")))))))
(build-system cmake-build-system)
(inputs
(list zlib))