oom pushed a commit to branch c++-team in repository guix. commit 9395678dd65e9e220351c7d3942a0fe56e2e989e Author: Greg Hogan <c...@greghogan.com> 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 1ead310c51..fb14a1bd48 100644 --- a/gnu/packages/graphics.scm +++ b/gnu/packages/graphics.scm @@ -705,6 +705,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))