gnu: Remove #:test-target argument.

* gnu/packages/astronomy.scm (libsep),
* gnu/packages/bioinformatics.scm (megahit),
* gnu/packages/bittorrent.scm (qbittorrent),
* gnu/packages/calendar.scm (date),
* gnu/packages/check.scm (klee, trompeloeil),
* gnu/packages/compression.scm (zziplib),
* gnu/packages/cpp.scm (immer, lager, zug),
* gnu/packages/databases.scm (timescaledb),
* gnu/packages/emulators.scm (dolphin-emu),
* gnu/packages/fpga.scm (systemc),
* gnu/packages/game-development.scm (box2d),
* gnu/packages/games.scm (megaglest, openclonk, teeworld),
* gnu/packages/glib.scm (sdbus-c++),
* gnu/packages/gnucash.scm (gnucash),
* gnu/packages/graph.scm (igraph),
* gnu/packages/image.scm (exiv2),
* gnu/packages/inkscape.scm (inkscape),
* gnu/packages/instrumentation.scm (yactfr),
* gnu/packages/kde-multimedia.scm (elisa),
* gnu/packages/linux.scm (falcosecurity-libs),
* gnu/packages/llvm.scm (libcxx, libomp-15),
* gnu/packages/machine-learning.scm (ctranslate2, tvm),
* gnu/packages/maths.scm (blitz),
* gnu/packages/messaging.scm (libphonenumber),
* gnu/packages/music.scm (clementine, libdiscid, opustags, strawberry),
* gnu/packages/opencog.scm (atomspace, attention, cogserver, cogutil,
opencog),
* gnu/packages/python-xyz.scm (pybind11)
* gnu/packages/radio.scm (libfec, libcorrect),
* gnu/packages/serialization.scm (qtcsv),
* gnu/packages/shells.scm (fish),
* gnu/packages/tls.scm (aws-lc),
* gnu/packages/web.scm (wabt),
* gnu/packages/vulkan.com (spirv-llvm-translator)
[arguments]: Move #:test-target to ...
<#:phases>: ... 'check phase.

* gnu/packages/algebra.scm (xtensor),
* gnu/packages/astronomy (stellarium),
* gnu/packages/bioinformatics.scm (libsbml),
* gnu/packages/chemistry.scm (openbabel),
* gnu/packages/cpp.scm (xsimd, xtl),
* gnu/packages/documentation.scm (doxygen),
* gnu/packages/lua.scm (selene),
* gnu/packages/libftdi.scm (libftdi),
* gnu/packages/llvm.scm (cling, libomp@12, libomp@13),
* gnu/packages/hyperledger.scm (hyperledger-iroha),
* gnu/packages/markup.scm (cmark, cmark-gfm),
* gnu/packages/maths.scm (cryptominisat, double-conversion),
* gnu/packages/mp3.scm (chromaprint),
* gnu/packages/qt.scm (qtpromise)
* gnu/packages/rdf.scm (clucene),
* gnu/packages/sync.scm (lsyncd)
[arguments}: Remove #:test-target.

* gnu/packages/engineering.scm (libfive),
* gnu/packages/game-development.scm (box2d-3)
[arguments]: Remove #:test-target and disable tests.

Change-Id: I0a82091df1789980bbbac0c334b6f993c36f412a
This commit is contained in:
Greg Hogan 2025-06-10 13:44:11 +00:00
parent 98907260ed
commit 364e883298
No known key found for this signature in database
GPG key ID: EF6EB27413CFEEF3
45 changed files with 602 additions and 315 deletions

View file

@ -1285,9 +1285,7 @@ features, and more.")
(file-name (git-file-name name version)))) (file-name (git-file-name name version))))
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments (arguments
(list (list #:configure-flags #~(list "-DBUILD_TESTS=ON")))
#:configure-flags #~(list "-DBUILD_TESTS=ON")
#:test-target "xtest"))
(native-inputs (native-inputs
(list doctest (list doctest
googletest googletest

View file

@ -1361,14 +1361,16 @@ standard astronomy libraries:
#:make-flags #:make-flags
#~(list (string-append "CC=" #$(cc-for-target)) #~(list (string-append "CC=" #$(cc-for-target))
(string-append "PREFIX=" #$output)) (string-append "PREFIX=" #$output))
#:test-target "test" #:modules '((guix build cmake-build-system)
((guix build gnu-build-system) #:prefix gnu:)
(guix build utils))
#:phases #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-before 'check 'pre-check (replace 'check
(lambda* (#:key tests? #:allow-other-keys) (lambda* (#:rest args)
(when tests? (with-directory-excursion "../source"
(chdir "../source") (apply (assoc-ref gnu:%standard-phases 'check)
(setenv "CC" #$(cc-for-target)))))))) #:test-target "test" args)))))))
(native-inputs (native-inputs
(list python-wrapper)) (list python-wrapper))
(home-page "https://github.com/kbarbary/sep") (home-page "https://github.com/kbarbary/sep")
@ -9602,7 +9604,6 @@ deconvolution). Such post-processing is not performed by Stackistry.")
(list (list
;; FIXME: Tests keep failing on 100% when preparing test-suit for INDI. ;; FIXME: Tests keep failing on 100% when preparing test-suit for INDI.
#:tests? #f #:tests? #f
#:test-target "test"
#:configure-flags #:configure-flags
#~(list "-DENABLE_GPS=1" #~(list "-DENABLE_GPS=1"
;; TODO: Enable when all of the dependencies are available for Qt6. ;; TODO: Enable when all of the dependencies are available for Qt6.

View file

@ -23466,8 +23466,7 @@ The output is in SAM format.")
"0slkagrk3nfi2qsksv6b1brj6zhx4bj4bkib2sdycvrcd10ql2lh")))) "0slkagrk3nfi2qsksv6b1brj6zhx4bj4bkib2sdycvrcd10ql2lh"))))
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments (arguments
`(#:test-target "test" `(#:configure-flags
#:configure-flags
,#~(list "-DWITH_CHECK=ON" ,#~(list "-DWITH_CHECK=ON"
(string-append "-DLIBXML_LIBRARY=" (string-append "-DLIBXML_LIBRARY="
#$(this-package-input "libxml2") #$(this-package-input "libxml2")
@ -24595,14 +24594,20 @@ both types of files.")
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments (arguments
(list (list
#:test-target "simple_test" #:modules '((guix build cmake-build-system)
((guix build gnu-build-system) #:prefix gnu:)
(guix build utils))
#:phases #:phases
'(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'unpack 'fix-tests (add-after 'unpack 'fix-tests
(lambda _ (lambda _
(substitute* "src/megahit" (substitute* "src/megahit"
(("os.path.join\\(script_path, '..'\\)") (("os.path.join\\(script_path, '..'\\)")
"os.path.join(script_path, '../source')"))))))) "os.path.join(script_path, '../source')"))))
(replace 'check
(lambda* (#:rest args)
(apply (assoc-ref gnu:%standard-phases 'check)
#:test-target "simple_test" args))))))
(inputs (list python-wrapper zlib)) (inputs (list python-wrapper zlib))
(home-page "https://www.ncbi.nlm.nih.gov/pubmed/25609793") (home-page "https://www.ncbi.nlm.nih.gov/pubmed/25609793")
(synopsis "Meta-genome assembler") (synopsis "Meta-genome assembler")

View file

@ -524,7 +524,13 @@ desktops.")
(arguments (arguments
(list #:qtbase qtbase (list #:qtbase qtbase
#:configure-flags #~(list "-DTESTING=ON") #:configure-flags #~(list "-DTESTING=ON")
#:test-target "check")) #:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda* (#:rest args)
;; Fix for "enable_testing" not in the top-level directory.
(with-directory-excursion "test"
(apply (assoc-ref %standard-phases 'check) args)))))))
(native-inputs (native-inputs
(list qttools)) (list qttools))
(inputs (inputs

View file

@ -126,10 +126,12 @@ available in French.")
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments (arguments
(list (list
#:test-target "testit"
#:configure-flags #:configure-flags
#~(list "-DUSE_SYSTEM_TZ_DB=ON" "-DBUILD_SHARED_LIBS=ON" #~(list "-DUSE_SYSTEM_TZ_DB=ON" "-DBUILD_SHARED_LIBS=ON"
"-DBUILD_TZ_LIB=ON" "-DENABLE_DATE_TESTING=ON") "-DBUILD_TZ_LIB=ON" "-DENABLE_DATE_TESTING=ON")
#:modules '((guix build cmake-build-system)
((guix build gnu-build-system) #:prefix gnu:)
(guix build utils))
#:phases #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'unpack 'patch-bin-bash (add-after 'unpack 'patch-bin-bash
@ -148,7 +150,11 @@ available in French.")
(lambda _ (lambda _
(for-each delete-file (for-each delete-file
'("test/solar_hijri_test/parse.pass.cpp" '("test/solar_hijri_test/parse.pass.cpp"
"test/tz_test/zoned_time_deduction.pass.cpp"))))))) "test/tz_test/zoned_time_deduction.pass.cpp"))))
(replace 'check
(lambda* (#:rest args)
(apply (assoc-ref gnu:%standard-phases 'check)
#:test-target "testit" args))))))
(synopsis "Date and time library for C++11 and C++14") (synopsis "Date and time library for C++11 and C++14")
(description (description
"Date is a header only C++ library that extends the chrono date "Date is a header only C++ library that extends the chrono date

View file

@ -1357,7 +1357,9 @@ with the @code{klee} package.")
(arguments (arguments
(list (list
#:strip-directories #~(list "bin") ;don't strip LLVM bitcode in /lib #:strip-directories #~(list "bin") ;don't strip LLVM bitcode in /lib
#:test-target "check" #:modules '((guix build cmake-build-system)
((guix build gnu-build-system) #:prefix gnu:)
(guix build utils))
#:phases #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'unpack 'patch (add-after 'unpack 'patch
@ -1373,6 +1375,7 @@ with the @code{klee} package.")
(substitute* "test/lit.cfg" (substitute* "test/lit.cfg"
(("addEnv\\('PWD'\\)" env) (("addEnv\\('PWD'\\)" env)
(string-append env "\n" "addEnv('GUIX_PYTHONPATH')"))))) (string-append env "\n" "addEnv('GUIX_PYTHONPATH')")))))
(replace 'check (assoc-ref gnu:%standard-phases 'check))
(add-after 'install 'wrap-programs (add-after 'install 'wrap-programs
(lambda* (#:key inputs outputs #:allow-other-keys) (lambda* (#:key inputs outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out")) (let* ((out (assoc-ref outputs "out"))
@ -3609,12 +3612,11 @@ tests. The output format is JSON.")
(list) (list)
(list #:configure-flags #~(list "-DTROMPELOEIL_BUILD_TESTS=yes"))) (list #:configure-flags #~(list "-DTROMPELOEIL_BUILD_TESTS=yes")))
(list (list
#:test-target "test/self_test"
#:phases #~(modify-phases %standard-phases #:phases #~(modify-phases %standard-phases
(replace 'check (replace 'check
(lambda* (#:key tests? test-target #:allow-other-keys) (lambda* (#:key tests? #:allow-other-keys)
(when tests? (when tests?
(invoke test-target)))))))) (invoke "test/self_test"))))))))
(native-inputs (list catch2-3)) (native-inputs (list catch2-3))
(home-page "https://github.com/rollbear/trompeloeil") (home-page "https://github.com/rollbear/trompeloeil")
(synopsis "Header only C++14 mocking framework") (synopsis "Header only C++14 mocking framework")

View file

@ -604,7 +604,6 @@ usual algorithms you expect from a modern molecular dynamics implementation.")
(search-input-file %build-inputs "/lib/inchi/libinchi.so.1")) (search-input-file %build-inputs "/lib/inchi/libinchi.so.1"))
(string-append "-DINCHI_INCLUDE_DIR=" (string-append "-DINCHI_INCLUDE_DIR="
(search-input-directory %build-inputs "/include/inchi"))) (search-input-directory %build-inputs "/include/inchi")))
#:test-target "test"
#:phases #:phases
'(modify-phases %standard-phases '(modify-phases %standard-phases
;; Fixed upstream: ;; Fixed upstream:

View file

@ -2168,6 +2168,15 @@ timestamps in the file header with a fixed time (1 January 2008).
(base32 (base32
"18578xbzj8j89srv4bwayjm11bg56fl34sya0znq4fwq3apm037i")))) "18578xbzj8j89srv4bwayjm11bg56fl34sya0znq4fwq3apm037i"))))
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments
(list
#:modules '((guix build cmake-build-system)
((guix build gnu-build-system) #:prefix gnu:)
(guix build utils))
#:phases
#~(modify-phases %standard-phases
;; Avoid the integration test, which requires a system bus.
(replace 'check (assoc-ref gnu:%standard-phases 'check)))))
(inputs (inputs
(list zlib)) (list zlib))
(native-inputs (list perl ; for the documentation (native-inputs (list perl ; for the documentation

View file

@ -834,8 +834,7 @@ of XDG base directories, such as XDG_CONFIG_HOME.")
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments (arguments
(list (list
#:configure-flags #~(list "-DBUILD_TESTS=ON") #:configure-flags #~(list "-DBUILD_TESTS=ON")))
#:test-target "xtest"))
(native-inputs (native-inputs
(list doctest (list doctest
googletest)) googletest))
@ -1446,8 +1445,7 @@ for C++17.")
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments (arguments
(list (list
#:configure-flags #~(list "-DBUILD_TESTS=ON") #:configure-flags #~(list "-DBUILD_TESTS=ON")))
#:test-target "xtest"))
(native-inputs (native-inputs
(list doctest (list doctest
googletest googletest
@ -2598,10 +2596,17 @@ provides a number of utilities to make coding with expected cleaner.")
(sha256 (sha256
(base32 "032rb84ahvdnc1m6sj4lflrwnk4p1f2jsq1pv03xbgizp2lr2pkx")))) (base32 "032rb84ahvdnc1m6sj4lflrwnk4p1f2jsq1pv03xbgizp2lr2pkx"))))
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments (list #:test-target "check" (arguments
(list
;; -Werror appears to report false positives. ;; -Werror appears to report false positives.
;; See <https://github.com/arximboldi/immer/issues/223>. ;; See <https://github.com/arximboldi/immer/issues/223>.
#:configure-flags #~(list "-DDISABLE_WERROR=ON"))) #:configure-flags #~'("-DDISABLE_WERROR=ON")
#:modules `((guix build cmake-build-system)
((guix build gnu-build-system) #:prefix gnu:)
(guix build utils))
#:phases
#~(modify-phases %standard-phases
(replace 'check (assoc-ref gnu:%standard-phases 'check)))))
(inputs (list boost libgc c-rrb)) (inputs (list boost libgc c-rrb))
(native-inputs (list catch2-3 doctest fmt pkg-config)) (native-inputs (list catch2-3 doctest fmt pkg-config))
(home-page "https://sinusoid.es/immer") (home-page "https://sinusoid.es/immer")
@ -2626,7 +2631,14 @@ written in C++.")
(modules '((guix build utils))) (modules '((guix build utils)))
(snippet #~(delete-file-recursively "tools")))) (snippet #~(delete-file-recursively "tools"))))
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments (list #:test-target "check")) (arguments
(list
#:modules `((guix build cmake-build-system)
((guix build gnu-build-system) #:prefix gnu:)
(guix build utils))
#:phases
#~(modify-phases %standard-phases
(replace 'check (assoc-ref gnu:%standard-phases 'check)))))
(native-inputs (list boost catch2)) (native-inputs (list boost catch2))
(home-page "https://sinusoid.es/zug") (home-page "https://sinusoid.es/zug")
(synopsis "Higher-order sequence transformers") (synopsis "Higher-order sequence transformers")
@ -2647,13 +2659,16 @@ composable sequential transformations.")
(sha256 (sha256
(base32 "1by9d49qnkncifyjcq16zy605d7v4ps6hvc01q5nsp1nbswm94m4")))) (base32 "1by9d49qnkncifyjcq16zy605d7v4ps6hvc01q5nsp1nbswm94m4"))))
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments (list #:test-target "check" (arguments (list #:configure-flags #~(list "-Dlager_BUILD_EXAMPLES=no")
#:configure-flags #~(list "-Dlager_BUILD_EXAMPLES=no") #:modules `((guix build cmake-build-system)
((guix build gnu-build-system) #:prefix gnu:)
(guix build utils))
#:phases #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'unpack 'delete-failing-tests (add-after 'unpack 'delete-failing-tests
(lambda _ (lambda _
(delete-file-recursively "test/event_loop")))))) (delete-file-recursively "test/event_loop")))
(replace 'check (assoc-ref gnu:%standard-phases 'check)))))
(inputs (list boost immer zug)) (inputs (list boost immer zug))
(native-inputs (list catch2 cereal)) (native-inputs (list catch2 cereal))
(home-page "https://sinusoid.es/lager") (home-page "https://sinusoid.es/lager")

View file

@ -1569,11 +1569,12 @@ pictures, sounds, or video.")
(list #:imported-modules `((guix build union) (list #:imported-modules `((guix build union)
,@%cmake-build-system-modules) ,@%cmake-build-system-modules)
#:modules `(,@%cmake-build-system-modules #:modules `(,@%cmake-build-system-modules
((guix build gnu-build-system) #:prefix gnu:)
(guix build utils)
(guix build union) (guix build union)
(ice-9 match)) (ice-9 match))
#:configure-flags #~(list "-DAPACHE_ONLY=ON" #:configure-flags #~(list "-DAPACHE_ONLY=ON"
"-DSEND_TELEMETRY_DEFAULT=OFF") "-DSEND_TELEMETRY_DEFAULT=OFF")
#:test-target "regresschecklocal"
#:phases #:phases
#~(modify-phases (@ (guix build cmake-build-system) %standard-phases) #~(modify-phases (@ (guix build cmake-build-system) %standard-phases)
(add-after 'unpack 'patch-install-location (add-after 'unpack 'patch-install-location
@ -1642,7 +1643,9 @@ pictures, sounds, or video.")
(("histogram_test\\.sql\\.in") (("histogram_test\\.sql\\.in")
"#histogram_test.sql.in"))))))) "#histogram_test.sql.in")))))))
(add-after 'prepare-tests 'check (add-after 'prepare-tests 'check
(assoc-ref %standard-phases 'check))))) (lambda* (#:rest args)
(apply (assoc-ref gnu:%standard-phases 'check)
#:test-target "regresschecklocal" args))))))
(inputs (list openssl postgresql)) (inputs (list openssl postgresql))
(home-page "https://www.timescale.com/") (home-page "https://www.timescale.com/")
(synopsis "Time-series extension for PostgreSQL") (synopsis "Time-series extension for PostgreSQL")

View file

@ -216,7 +216,6 @@ markup) can be customized and extended by the user.")
(assoc-ref %build-inputs "cross-libc") (assoc-ref %build-inputs "cross-libc")
"/include")) "/include"))
#~'()) #~'())
#:test-target "tests"
#:phases #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'unpack 'disable-bibtex-test (add-after 'unpack 'disable-bibtex-test

View file

@ -491,6 +491,9 @@ It aims to support Nintendo DSi and 3DS as well.")
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments (arguments
(list (list
#:modules '((guix build cmake-build-system)
((guix build gnu-build-system) #:prefix gnu:)
(guix build utils))
#:phases #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-before 'configure 'generate-fonts&hardcode-libvulkan-path (add-before 'configure 'generate-fonts&hardcode-libvulkan-path
@ -512,6 +515,10 @@ It aims to support Nintendo DSi and 3DS as well.")
(("\"vulkan\", 1") (string-append "\"vulkan\"")) (("\"vulkan\", 1") (string-append "\"vulkan\""))
(("\"vulkan\"") (string-append "\"" libvulkan "\"")) (("\"vulkan\"") (string-append "\"" libvulkan "\""))
(("Common::DynamicLibrary::GetVersionedFilename") ""))))) (("Common::DynamicLibrary::GetVersionedFilename") "")))))
(replace 'check
(lambda* (#:rest args)
(apply (assoc-ref gnu:%standard-phases 'check)
#:test-target "unittests" args)))
(add-before 'install 'build-codeloader.bin (add-before 'install 'build-codeloader.bin
(lambda _ (lambda _
(with-directory-excursion "../source/docs" (with-directory-excursion "../source/docs"
@ -537,8 +544,7 @@ It aims to support Nintendo DSi and 3DS as well.")
(rename-file "dsp_coef.bin" "Data/Sys/GC/dsp_coef.bin"))))) (rename-file "dsp_coef.bin" "Data/Sys/GC/dsp_coef.bin")))))
#:configure-flags #:configure-flags
#~(list "-DUSE_DISCORD_PRESENCE=OFF" ;avoid bundled discord-rpc lib #~(list "-DUSE_DISCORD_PRESENCE=OFF" ;avoid bundled discord-rpc lib
"-DDSPTOOL=ON") "-DDSPTOOL=ON")))
#:test-target "unittests"))
(native-inputs (native-inputs
(list (cross-gcc "powerpc-linux-gnu") (list (cross-gcc "powerpc-linux-gnu")
gettext-minimal gettext-minimal

View file

@ -1155,12 +1155,12 @@ fonts to gEDA.")
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments (arguments
(list (list
#:tests? #f ; Several tests fail due to floating point error.
#:imported-modules `((guix build guile-build-system) #:imported-modules `((guix build guile-build-system)
,@%cmake-build-system-modules) ,@%cmake-build-system-modules)
#:modules '((guix build cmake-build-system) #:modules '((guix build cmake-build-system)
((guix build guile-build-system) #:prefix guile:) ((guix build guile-build-system) #:prefix guile:)
(guix build utils)) (guix build utils))
#:test-target "libfive-test"
#:configure-flags #~(list #:configure-flags #~(list
(string-append (string-append
"-DPYTHON_SITE_PACKAGES_DIR=" "-DPYTHON_SITE_PACKAGES_DIR="

View file

@ -715,7 +715,14 @@ automated testing of HDL code.")
(base32 "1v5fg3h9ffdzq9f6zplvr9all00ssc1gpdvbg129xahkrbl53kvw")))) (base32 "1v5fg3h9ffdzq9f6zplvr9all00ssc1gpdvbg129xahkrbl53kvw"))))
(native-inputs (list perl)) (native-inputs (list perl))
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments '(#:test-target "check")) (arguments
(list
#:modules '((guix build cmake-build-system)
((guix build gnu-build-system) #:prefix gnu:)
(guix build utils))
#:phases
#~(modify-phases %standard-phases
(replace 'check (assoc-ref gnu:%standard-phases 'check)))))
(home-page "https://accellera.org/community/systemc") (home-page "https://accellera.org/community/systemc")
(synopsis "Library for event-driven simulation") (synopsis "Library for event-driven simulation")
(description (description

View file

@ -3357,9 +3357,19 @@ rigid body physics library written in C.")
"include <doctest/doctest.h>")))))) "include <doctest/doctest.h>"))))))
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments (arguments
`(#:test-target "unit_test" (list #:configure-flags #~'("-DBUILD_SHARED_LIBS=ON"
#:configure-flags '("-DBUILD_SHARED_LIBS=ON" "-DBOX2D_BUILD_TESTBED=OFF")
"-DBOX2D_BUILD_TESTBED=OFF"))) #:modules '((guix build cmake-build-system)
((guix build gnu-build-system) #:prefix gnu:)
(guix build utils))
#:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys #:rest args)
(when tests?
(apply (assoc-ref gnu:%standard-phases 'check)
#:tests? tests? #:test-target "unit_test" args)
(invoke "bin/unit_test")))))))
(native-inputs (native-inputs
(list doctest)) ;for tests (list doctest)) ;for tests
(inputs (inputs
@ -3390,11 +3400,13 @@ physics engine is just a system for procedural animation.")
(arguments (arguments
(substitute-keyword-arguments (substitute-keyword-arguments
(package-arguments box2d) (package-arguments box2d)
((#:test-target _) "") ; no check
((#:configure-flags original-flags) ((#:configure-flags original-flags)
`(cons* "-DBOX2D_UNIT_TESTS=OFF" ; enkiTS need for all test apps #~(cons* "-DBOX2D_UNIT_TESTS=OFF" ; enkiTS need for all test apps
"-DBOX2D_SAMPLES=OFF" "-DBOX2D_SAMPLES=OFF"
(delete "-DBOX2D_BUILD_TESTBED=OFF" ,original-flags))))))) (delete "-DBOX2D_BUILD_TESTBED=OFF" #$original-flags)))
((#:phases phases)
#~(modify-phases #$phases
(delete 'check))))))) ; no check
(define-public libtcod (define-public libtcod
(package (package

View file

@ -7603,22 +7603,31 @@ screensaver.")))
(native-inputs (native-inputs
(list cppunit pkg-config)) (list cppunit pkg-config))
(arguments (arguments
`(#:configure-flags (list
(list "-DCMAKE_CXX_FLAGS=-fcommon" #:modules '((guix build cmake-build-system)
((guix build gnu-build-system) #:prefix gnu:)
(guix build utils))
#:configure-flags
#~(list "-DCMAKE_CXX_FLAGS=-fcommon"
"-DCMAKE_C_FLAGS=-fcommon" "-DCMAKE_C_FLAGS=-fcommon"
(string-append "-DCUSTOM_DATA_INSTALL_PATH=" (string-append "-DCUSTOM_DATA_INSTALL_PATH="
(search-input-directory %build-inputs (search-input-directory %build-inputs
"share/megaglest")) "share/megaglest"))
"-DBUILD_MEGAGLEST_TESTS=ON") "-DBUILD_MEGAGLEST_TESTS=ON")
#:phases #:phases
(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'unpack 'fix-ini-search-path (add-after 'unpack 'fix-ini-search-path
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
(substitute* "source/glest_game/global/config.cpp" (substitute* "source/glest_game/global/config.cpp"
(("/usr/share/megaglest/") (("/usr/share/megaglest/")
(string-append (assoc-ref outputs "out") (string-append (assoc-ref outputs "out")
"/share/megaglest/")))))) "/share/megaglest/")))))
#:test-target "megaglest_tests")) (replace 'check
(lambda* (#:key tests? #:allow-other-keys #:rest args)
(when tests?
(apply (assoc-ref gnu:%standard-phases 'check)
#:tests? tests? #:test-target "megaglest_tests" args)
(invoke "source/tests/megaglest_tests")))))))
(home-page "https://megaglest.org/") (home-page "https://megaglest.org/")
(synopsis "3D real-time strategy (RTS) game") (synopsis "3D real-time strategy (RTS) game")
(description "MegaGlest is a cross-platform 3D real-time strategy (RTS) (description "MegaGlest is a cross-platform 3D real-time strategy (RTS)
@ -7844,9 +7853,12 @@ small robot living in the nano world, repair its maker.")
#t)))) #t))))
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments (arguments
`(#:test-target "run_tests" (list
#:modules '((guix build cmake-build-system)
((guix build gnu-build-system) #:prefix gnu:)
(guix build utils))
#:phases #:phases
(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'unpack 'patch-paths (add-after 'unpack 'patch-paths
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
;; Embed path to assets. ;; Embed path to assets.
@ -7855,15 +7867,17 @@ small robot living in the nano world, repair its maker.")
(string-append "#define DATA_DIR \"" (string-append "#define DATA_DIR \""
(assoc-ref outputs "out") (assoc-ref outputs "out")
"/share/teeworlds/data" "/share/teeworlds/data"
"\""))) "\"")))))
#t))
(add-after 'unpack 'replace-font (add-after 'unpack 'replace-font
(lambda* (#:key inputs #:allow-other-keys) (lambda* (#:key inputs #:allow-other-keys)
(delete-file "datasrc/fonts/DejaVuSans.ttf") (delete-file "datasrc/fonts/DejaVuSans.ttf")
(symlink (string-append (assoc-ref inputs "font-dejavu") (symlink (string-append (assoc-ref inputs "font-dejavu")
"/share/fonts/truetype/DejaVuSans.ttf") "/share/fonts/truetype/DejaVuSans.ttf")
"datasrc/fonts/DejaVuSans.ttf") "datasrc/fonts/DejaVuSans.ttf")))
#t))))) (replace 'check
(lambda* (#:rest args)
(apply (assoc-ref gnu:%standard-phases 'check)
#:test-target "run_tests" args))))))
(inputs (inputs
(list freetype (list freetype
font-dejavu font-dejavu
@ -10808,7 +10822,9 @@ a fortress beyond the forbidden swamp.")
(list (list
#:configure-flags #:configure-flags
#~(list "-DAudio_TK=OpenAL") #~(list "-DAudio_TK=OpenAL")
#:test-target "tests" #:modules '((guix build cmake-build-system)
((guix build gnu-build-system) #:prefix gnu:)
(guix build utils))
#:phases #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'unpack 'prepare-gmock (add-after 'unpack 'prepare-gmock
@ -10839,7 +10855,13 @@ a fortress beyond the forbidden swamp.")
(substitute* "CMakeLists.txt" (substitute* "CMakeLists.txt"
(("share/games/openclonk") "share/openclonk") (("share/games/openclonk") "share/openclonk")
(("TARGETS openclonk DESTINATION games") (("TARGETS openclonk DESTINATION games")
"TARGETS openclonk DESTINATION bin"))))))) "TARGETS openclonk DESTINATION bin"))))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys #:rest args)
(when tests?
(apply (assoc-ref gnu:%standard-phases 'check)
#:tests? tests? #:test-target "tests" args)
(invoke "tests/tests")))))))
(native-inputs (native-inputs
(list (package-source googletest) (list (package-source googletest)
googletest googletest

View file

@ -1312,18 +1312,24 @@ Some codes examples can be find at:
(arguments (arguments
(list (list
;; Avoid the integration test, which requires a system bus. ;; Avoid the integration test, which requires a system bus.
#:test-target "sdbus-c++-unit-tests"
#:configure-flags #~(list "-DSDBUSCPP_BUILD_CODEGEN=ON" #:configure-flags #~(list "-DSDBUSCPP_BUILD_CODEGEN=ON"
"-DSDBUSCPP_BUILD_TESTS=ON" "-DSDBUSCPP_BUILD_TESTS=ON"
;; Do not install tests. ;; Do not install tests.
"-DSDBUSCPP_TESTS_INSTALL_PATH=/tmp" "-DSDBUSCPP_TESTS_INSTALL_PATH=/tmp"
"-DCMAKE_VERBOSE_MAKEFILE=ON") "-DCMAKE_VERBOSE_MAKEFILE=ON")
#:modules '((guix build cmake-build-system)
((guix build gnu-build-system) #:prefix gnu:)
(guix build utils))
#:phases #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'unpack 'do-not-install-tests (add-after 'unpack 'do-not-install-tests
(lambda _ (lambda _
(substitute* "tests/CMakeLists.txt" (substitute* "tests/CMakeLists.txt"
(("/etc/dbus-1/system.d") "/tmp"))))))) (("/etc/dbus-1/system.d") "/tmp"))))
(replace 'check
(lambda* (#:rest args)
(apply (assoc-ref gnu:%standard-phases 'check)
#:test-target "sdbus-c++-unit-tests" args))))))
(native-inputs (list googletest-1.17 pkg-config)) (native-inputs (list googletest-1.17 pkg-config))
(inputs (list expat)) (inputs (list expat))
(propagated-inputs (list elogind)) ;required by sdbus-c++.pc (propagated-inputs (list elogind)) ;required by sdbus-c++.pc

View file

@ -78,13 +78,13 @@
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments (arguments
(list (list
#:test-target "check"
#:configure-flags #~(list "-DWITH_PYTHON=ON") #:configure-flags #~(list "-DWITH_PYTHON=ON")
#:make-flags #~(list "GUILE_AUTO_COMPILE=0") #:make-flags #~(list "GUILE_AUTO_COMPILE=0")
#:imported-modules `(,@%default-gnu-imported-modules #:imported-modules `(,@%default-gnu-imported-modules
(guix build cmake-build-system) (guix build cmake-build-system)
(guix build glib-or-gtk-build-system)) (guix build glib-or-gtk-build-system))
#:modules '((guix build cmake-build-system) #:modules '((guix build cmake-build-system)
((guix build gnu-build-system) #:prefix gnu:)
((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:) ((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:)
(guix build utils)) (guix build utils))
#:phases #:phases
@ -114,6 +114,7 @@
(invoke "localedef" "-i" "en_US" "-f" "UTF-8" "./en_US.UTF-8") (invoke "localedef" "-i" "en_US" "-f" "UTF-8" "./en_US.UTF-8")
(invoke "localedef" "-i" "en_GB" "-f" "UTF-8" "./en_GB.UTF-8") (invoke "localedef" "-i" "en_GB" "-f" "UTF-8" "./en_GB.UTF-8")
(invoke "localedef" "-i" "fr_FR" "-f" "UTF-8" "./fr_FR.UTF-8"))) (invoke "localedef" "-i" "fr_FR" "-f" "UTF-8" "./fr_FR.UTF-8")))
(replace 'check (assoc-ref gnu:%standard-phases 'check))
;; There is about 100 MiB of documentation. ;; There is about 100 MiB of documentation.
(add-after 'install 'install-docs (add-after 'install 'install-docs
(lambda _ (lambda _

View file

@ -146,7 +146,9 @@ distributions in empirical data. SIAM Review 51, 661-703 (2009)}).")
;; Use the same integer width as suitesparse-cxsparse, which ;; Use the same integer width as suitesparse-cxsparse, which
;; uses int64_t in SuiteSparse v6.0.0 and later. ;; uses int64_t in SuiteSparse v6.0.0 and later.
"-DIGRAPH_INTEGER_SIZE=64") "-DIGRAPH_INTEGER_SIZE=64")
#:test-target "check" #:modules '((guix build cmake-build-system)
((guix build gnu-build-system) #:prefix gnu:)
(guix build utils))
#:phases #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'unpack 'version-file (add-after 'unpack 'version-file
@ -178,6 +180,7 @@ distributions in empirical data. SIAM Review 51, 661-703 (2009)}).")
(add-after 'build 'build-doc (add-after 'build 'build-doc
(lambda _ (lambda _
(invoke "cmake" "--build" "." "--target" "html"))) (invoke "cmake" "--build" "." "--target" "html")))
(replace 'check (assoc-ref gnu:%standard-phases 'check))
(add-after 'install 'install-doc (add-after 'install 'install-doc
(lambda _ (lambda _
(copy-recursively (copy-recursively

View file

@ -172,9 +172,8 @@ link-time. New implementations can be added as well.")
'("-DTESTING=OFF" ; The tests fail to link correctly to googletest. '("-DTESTING=OFF" ; The tests fail to link correctly to googletest.
;; Don't install the shared libraries of the dependencies: ;; Don't install the shared libraries of the dependencies:
"-DENABLE_LIBS_PACKAGING=OFF") "-DENABLE_LIBS_PACKAGING=OFF")
#:tests? #f
;; https://iroha.readthedocs.io/en/latest/build/index.html#running-tests-optional ;; https://iroha.readthedocs.io/en/latest/build/index.html#running-tests-optional
#:test-target ".")) #:tests? #f))
;; https://github.com/hyperledger/iroha/blob/master/vcpkg/VCPKG_DEPS_LIST ;; https://github.com/hyperledger/iroha/blob/master/vcpkg/VCPKG_DEPS_LIST
(native-inputs (native-inputs
(list fmt-8 (list fmt-8

View file

@ -1617,13 +1617,17 @@ channels.")
(base32 "1qm6bvj28l42km009nc60gffn1qhngc0m2wjlhf90si3mcc8d99m")))) (base32 "1qm6bvj28l42km009nc60gffn1qhngc0m2wjlhf90si3mcc8d99m"))))
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments (arguments
`(#:test-target "tests" (list
#:configure-flags (list "-DEXIV2_BUILD_UNIT_TESTS=ON" #:configure-flags
#~(list "-DEXIV2_BUILD_UNIT_TESTS=ON"
;; darktable needs BMFF to support ;; darktable needs BMFF to support
;; CR3 files. ;; CR3 files.
"-DEXIV2_ENABLE_BMFF=ON") "-DEXIV2_ENABLE_BMFF=ON")
#:modules '((guix build cmake-build-system)
((guix build gnu-build-system) #:prefix gnu:)
(guix build utils))
#:phases #:phases
(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'unpack 'patch-gcc-reference (add-after 'unpack 'patch-gcc-reference
(lambda _ (lambda _
;; _GLIBCXX_ASSERTIONS brings reference to GCC. ;; _GLIBCXX_ASSERTIONS brings reference to GCC.
@ -1635,8 +1639,12 @@ channels.")
(let* ((out (assoc-ref outputs "out")) (let* ((out (assoc-ref outputs "out"))
(lib (string-append out "/lib"))) (lib (string-append out "/lib")))
(for-each delete-file (find-files lib "\\.a$"))))) (for-each delete-file (find-files lib "\\.a$")))))
(replace 'check
(lambda* (#:rest args)
(apply (assoc-ref gnu:%standard-phases 'check)
#:test-target "tests" args)))
,@(if (or (target-ppc64le?) #$@(if (or (target-ppc64le?)
(target-aarch64?) (target-aarch64?)
(target-riscv64?)) (target-riscv64?))
'((add-after 'unpack 'adjust-tests '((add-after 'unpack 'adjust-tests

View file

@ -160,7 +160,6 @@ endif()~%~%"
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments (arguments
(list (list
#:test-target "check" ;otherwise some test binaries are missing
#:disallowed-references (list imagemagick/stable) #:disallowed-references (list imagemagick/stable)
#:imported-modules `(,@%cmake-build-system-modules #:imported-modules `(,@%cmake-build-system-modules
(guix build glib-or-gtk-build-system)) (guix build glib-or-gtk-build-system))
@ -358,6 +357,8 @@ as the native format.")
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments (arguments
(substitute-keyword-arguments (package-arguments inkscape/pinned) (substitute-keyword-arguments (package-arguments inkscape/pinned)
((#:modules modules)
(append '(((guix build gnu-build-system) #:prefix gnu:)) modules))
((#:configure-flags flags ''()) ((#:configure-flags flags ''())
;; Enable ImageMagick support. ;; Enable ImageMagick support.
#~(delete "-DWITH_IMAGE_MAGICK=OFF" #$flags)) #~(delete "-DWITH_IMAGE_MAGICK=OFF" #$flags))
@ -371,11 +372,9 @@ as the native format.")
#$%inkscape-release-year))))) #$%inkscape-release-year)))))
#$@(if (target-x86-32?) #$@(if (target-x86-32?)
#~() ;XXX: there are remaining failures on i686 #~() ;XXX: there are remaining failures on i686
#~((replace 'check
;; Re-instate the tests disabled in inkscape/pinned, now that ;; Re-instate the tests disabled in inkscape/pinned, now that
;; their ImageMagick requirement is satisfied. ;; their ImageMagick requirement is satisfied.
(assoc-ref %standard-phases 'check)))) #~((replace 'check (assoc-ref gnu:%standard-phases 'check))))
(replace 'wrap-program (replace 'wrap-program
;; Ensure Python is available at runtime. ;; Ensure Python is available at runtime.
(lambda _ (lambda _

View file

@ -698,7 +698,14 @@ bundled with python-3 and luajit that you can delete in a package variant.")
(base32 (base32
"1p4nqsq689hr2srdvg59v9yfig2aaq9psdy6fhwnya0vszssyvn5")))) "1p4nqsq689hr2srdvg59v9yfig2aaq9psdy6fhwnya0vszssyvn5"))))
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments `(#:test-target "check")) (arguments
(list
#:modules '((guix build cmake-build-system)
((guix build gnu-build-system) #:prefix gnu:)
(guix build utils))
#:phases
#~(modify-phases %standard-phases
(replace 'check (assoc-ref gnu:%standard-phases 'check)))))
(native-inputs (list boost python-pytest)) (native-inputs (list boost python-pytest))
(home-page "https://github.com/eepp/yactfr") (home-page "https://github.com/eepp/yactfr")
(synopsis "CTF reading library offering a C++14 API") (synopsis "CTF reading library offering a C++14 API")

View file

@ -254,10 +254,10 @@ This package is part of the KDE multimedia module.")
(system "Xvfb :1 -screen 0 640x480x24 &") (system "Xvfb :1 -screen 0 640x480x24 &")
(setenv "DISPLAY" ":1"))) (setenv "DISPLAY" ":1")))
(replace 'check (replace 'check
(lambda* (#:key tests? test-target #:allow-other-keys) (lambda* (#:key tests? #:allow-other-keys)
(when tests? (when tests?
(setenv "CTEST_OUTPUT_ON_FAILURE" "1") (setenv "CTEST_OUTPUT_ON_FAILURE" "1")
(invoke "dbus-launch" "make" test-target))))))) (invoke "dbus-launch" "make" "test")))))))
(home-page "https://apps.kde.org/elisa/") (home-page "https://apps.kde.org/elisa/")
(synopsis "Powerful music player for Plasma 5") (synopsis "Powerful music player for Plasma 5")
(description "Elisa is a simple music player aiming to provide a nice (description "Elisa is a simple music player aiming to provide a nice

View file

@ -87,7 +87,6 @@
(string-append share "/doc/" (string-append share "/doc/"
#$name "-" #$version #$name "-" #$version
"/html")))))) "/html"))))))
#:test-target "check"
#:tests? #f)) ; tests fail without access to USB #:tests? #f)) ; tests fail without access to USB
(native-inputs (native-inputs
(list doxygen graphviz pkg-config python swig)) (list doxygen graphviz pkg-config python swig))

View file

@ -10757,7 +10757,9 @@ set as @code{LD_PRELOAD} to override the C library file system functions.")
#$(string-append "-DFALCOSECURITY_LIBS_VERSION=" version)) #$(string-append "-DFALCOSECURITY_LIBS_VERSION=" version))
;; Only the libsinsp test suite is run, as the one for libscap requires ;; Only the libsinsp test suite is run, as the one for libscap requires
;; elevated privileges. ;; elevated privileges.
#:test-target "run-unit-test-libsinsp" #:modules '((guix build cmake-build-system)
((guix build gnu-build-system) #:prefix gnu:)
(guix build utils))
#:phases #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'unpack 'disable-problematic-tests (add-after 'unpack 'disable-problematic-tests
@ -10767,6 +10769,10 @@ set as @code{LD_PRELOAD} to override the C library file system functions.")
;; exists in the build environment. ;; exists in the build environment.
(("TEST_F\\(usergroup_manager_test, system_lookup)") (("TEST_F\\(usergroup_manager_test, system_lookup)")
"TEST_F(usergroup_manager_test, DISABLED_system_lookup)")))) "TEST_F(usergroup_manager_test, DISABLED_system_lookup)"))))
(replace 'check
(lambda* (#:rest args)
(apply (assoc-ref gnu:%standard-phases 'check)
#:test-target "run-unit-test-libsinsp" args)))
(add-after 'install 'delete-src (add-after 'install 'delete-src
(lambda _ (lambda _
(delete-file-recursively (delete-file-recursively

View file

@ -817,14 +817,20 @@ of programming tools as well as libraries with equivalent functionality.")
#~(list "-DLIBOMP_USE_HWLOC=ON" #~(list "-DLIBOMP_USE_HWLOC=ON"
"-DOPENMP_TEST_C_COMPILER=clang" "-DOPENMP_TEST_C_COMPILER=clang"
"-DOPENMP_TEST_CXX_COMPILER=clang++") "-DOPENMP_TEST_CXX_COMPILER=clang++")
#:test-target "check-libomp" #:modules '((guix build cmake-build-system)
((guix build gnu-build-system) #:prefix gnu:)
(guix build utils))
#:phases #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'unpack 'chdir-to-source-and-install-license (add-after 'unpack 'chdir-to-source-and-install-license
(lambda _ (lambda _
(chdir "openmp") (chdir "openmp")
(install-file "LICENSE.TXT" (install-file "LICENSE.TXT"
(string-append #$output "/share/doc"))))))) (string-append #$output "/share/doc"))))
(replace 'check
(lambda* (#:rest args)
(apply (assoc-ref gnu:%standard-phases 'check)
#:test-target "check-libomp" args))))))
(native-inputs (list clang-15 llvm-15 perl pkg-config python)) (native-inputs (list clang-15 llvm-15 perl pkg-config python))
(inputs (list `(,hwloc "lib"))) (inputs (list `(,hwloc "lib")))
(home-page "https://openmp.llvm.org") (home-page "https://openmp.llvm.org")
@ -921,14 +927,14 @@ Library.")
"0kvbr4j6ldpssiv7chgqra5y77n7jwbyxlwcl7z32v31f49jcybb")) "0kvbr4j6ldpssiv7chgqra5y77n7jwbyxlwcl7z32v31f49jcybb"))
(file-name (string-append "libomp-" version ".tar.xz")))) (file-name (string-append "libomp-" version ".tar.xz"))))
(arguments (arguments
'(#:configure-flags '("-DLIBOMP_USE_HWLOC=ON" (substitute-keyword-arguments (package-arguments libomp-14)
"-DOPENMP_TEST_C_COMPILER=clang" ((#:configure-flags flags)
"-DOPENMP_TEST_CXX_COMPILER=clang++"
;; Work around faulty target detection, fixed in 14: ;; Work around faulty target detection, fixed in 14:
;; https://github.com/llvm/llvm-project/issues/52910 ;; https://github.com/llvm/llvm-project/issues/52910
"-DLIBOMPTARGET_BUILD_AMDGCN_BCLIB=OFF") #~(cons* "-DLIBOMPTARGET_BUILD_AMDGCN_BCLIB=OFF" #$flags))
#:test-target "check-libomp")) ((#:phases phases)
#~(modify-phases #$phases
(delete 'chdir-to-source-and-install-license)))))
(native-inputs (native-inputs
(modify-inputs (package-native-inputs libomp-14) (modify-inputs (package-native-inputs libomp-14)
(replace "clang" clang-13) (replace "clang" clang-13)
@ -1007,10 +1013,9 @@ Library.")
"14dh0r6h2xh747ffgnsl4z08h0ri04azi9vf79cbz7ma1r27kzk0")) "14dh0r6h2xh747ffgnsl4z08h0ri04azi9vf79cbz7ma1r27kzk0"))
(file-name (string-append "libomp-" version ".tar.xz")))) (file-name (string-append "libomp-" version ".tar.xz"))))
(arguments (arguments
'(#:configure-flags '("-DLIBOMP_USE_HWLOC=ON" (substitute-keyword-arguments (package-arguments libomp-13)
"-DOPENMP_TEST_C_COMPILER=clang" ((#:configure-flags flags)
"-DOPENMP_TEST_CXX_COMPILER=clang++") #~`(,@(delete "-DLIBOMPTARGET_BUILD_AMDGCN_BCLIB=OFF" #$flags)))))
#:test-target "check-libomp"))
(native-inputs (native-inputs
(modify-inputs (package-native-inputs libomp-13) (modify-inputs (package-native-inputs libomp-13)
(replace "clang" clang-12) (replace "clang" clang-12)
@ -1952,7 +1957,6 @@ which highly leverage existing libraries in the larger LLVM project.")
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments (arguments
(list (list
#:test-target "check-cxx"
#:tests? #f ;prohibitively expensive to run #:tests? #f ;prohibitively expensive to run
#:implicit-inputs? #f ;to avoid conflicting GCC headers #:implicit-inputs? #f ;to avoid conflicting GCC headers
#:configure-flags #:configure-flags
@ -1965,11 +1969,18 @@ which highly leverage existing libraries in the larger LLVM project.")
;; as RUNPATH and don't attempt to patch it. ;; as RUNPATH and don't attempt to patch it.
;; See also: https://gitlab.kitware.com/cmake/cmake/-/issues/22963 ;; See also: https://gitlab.kitware.com/cmake/cmake/-/issues/22963
"-DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE") "-DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE")
#:modules '((guix build cmake-build-system)
((guix build gnu-build-system) #:prefix gnu:)
(guix build utils))
#:phases #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'unpack 'enter-subdirectory (add-after 'unpack 'enter-subdirectory
(lambda _ (lambda _
(chdir "runtimes")))))) (chdir "runtimes")))
(replace 'check
(lambda* (#:rest args)
(apply (assoc-ref gnu:%standard-phases 'check)
#:test-target "check-cxx" args))))))
(native-inputs (native-inputs
(modify-inputs (standard-packages) (modify-inputs (standard-packages)
;; Remove GCC from the build environment, to avoid its C++ ;; Remove GCC from the build environment, to avoid its C++
@ -2511,7 +2522,6 @@ LLVM bitcode files.")
;; FIXME: 79 tests fail, out of ~200 (see: ;; FIXME: 79 tests fail, out of ~200 (see:
;; https://github.com/root-project/cling/issues/534) ;; https://github.com/root-project/cling/issues/534)
#:tests? #f #:tests? #f
#:test-target "check-cling"
#:configure-flags #:configure-flags
#~(list (string-append "-DCLING_CXX_PATH=" #~(list (string-append "-DCLING_CXX_PATH="
(search-input-file %build-inputs "bin/g++")) (search-input-file %build-inputs "bin/g++"))

View file

@ -984,7 +984,6 @@ spirit of the Lua C API and thus degrade performance.")
`(#:configure-flags `(#:configure-flags
;; lua pc file in CMakeLists.txt is lua5.3.pc ;; lua pc file in CMakeLists.txt is lua5.3.pc
'("-DLUA_PC_CFG=lua;lua-5.3;lua-5.1") '("-DLUA_PC_CFG=lua;lua-5.3;lua-5.1")
#:test-target "all"
#:phases #:phases
;; This is a header only library ;; This is a header only library
(modify-phases %standard-phases (modify-phases %standard-phases

View file

@ -4888,7 +4888,6 @@ the tensors contained therein.")
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments (arguments
(list (list
#:test-target "cpptest"
#:configure-flags #:configure-flags
#~(list "-DUSE_OPENCL=ON" #~(list "-DUSE_OPENCL=ON"
"-DUSE_VULKAN=ON" "-DUSE_VULKAN=ON"
@ -4908,11 +4907,11 @@ the tensors contained therein.")
#:phases #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
(replace 'check (replace 'check
(lambda* (#:key source test-target tests? #:allow-other-keys) (lambda* (#:key source tests? #:allow-other-keys)
(when tests? (when tests?
(begin (begin
(invoke "make" "-j" (invoke "make" "-j"
(number->string (parallel-job-count)) test-target) (number->string (parallel-job-count)) "cpptest")
;; Disable below the actual run of the tests because ;; Disable below the actual run of the tests because
;; several fail due to platform variations (for example, ;; several fail due to platform variations (for example,
;; fp16 tests fail because not supported on CPUs). ;; fp16 tests fail because not supported on CPUs).
@ -6384,7 +6383,6 @@ Jax, PyTorch and TensorFlow — with a seamless integration between them.")
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments (arguments
(list (list
#:test-target "ctranslate2_test"
;; XXX: mkl and openblas seem incompatible. ;; XXX: mkl and openblas seem incompatible.
#:configure-flags `(list "-DBUILD_TESTS=ON" #:configure-flags `(list "-DBUILD_TESTS=ON"
"-DWITH_ACCELERATE=OFF" "-DWITH_ACCELERATE=OFF"
@ -6393,7 +6391,16 @@ Jax, PyTorch and TensorFlow — with a seamless integration between them.")
"-DWITH_CUDA=OFF" "-DWITH_CUDA=OFF"
"-DWITH_CUDNN=OFF" "-DWITH_CUDNN=OFF"
"-DWITH_MKL=OFF" "-DWITH_MKL=OFF"
"-DWITH_OPENBLAS=ON"))) "-DWITH_OPENBLAS=ON")
#:modules '((guix build cmake-build-system)
((guix build gnu-build-system) #:prefix gnu:)
(guix build utils))
#:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda* (#:rest args)
(apply (assoc-ref gnu:%standard-phases 'check)
#:test-target "ctranslate2_test" args))))))
(native-inputs (list libomp (native-inputs (list libomp
cxxopts cxxopts
spdlog spdlog

View file

@ -485,8 +485,6 @@ convert HTML to Markdown.")
(base32 (base32
"0llj68l9rxdhral0zyv0bz6yzqsxgq8d3730082sl3kx78lsq5qq")))) "0llj68l9rxdhral0zyv0bz6yzqsxgq8d3730082sl3kx78lsq5qq"))))
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments
'(#:test-target "test"))
(native-inputs (list python)) (native-inputs (list python))
(synopsis "CommonMark Markdown reference implementation") (synopsis "CommonMark Markdown reference implementation")
(description (description
@ -543,8 +541,7 @@ CommonMark C library libcmark. It closely follows the original API.")
(base32 (base32
"1apy9i76rgs0bmgdlpjszv0fpqhlap2s12m68wvnsv8j3fsqc90y")))) "1apy9i76rgs0bmgdlpjszv0fpqhlap2s12m68wvnsv8j3fsqc90y"))))
(arguments (arguments
(list #:test-target "test" (list #:phases #~(modify-phases %standard-phases
#:phases #~(modify-phases %standard-phases
(add-after 'install 'install-config (add-after 'install 'install-config
(lambda _ (lambda _
;; XXX: cmark-gfm-core-extensions.h includes this file. ;; XXX: cmark-gfm-core-extensions.h includes this file.

View file

@ -481,8 +481,7 @@ enough to be used effectively as a scientific calculator.")
"0csy4pjw1p8rp6g5qxi2h0ychhhp1fldv7gb761627fs2mclw9gv")))) "0csy4pjw1p8rp6g5qxi2h0ychhhp1fldv7gb761627fs2mclw9gv"))))
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments (arguments
'(#:test-target "test" '(#:configure-flags '("-DBUILD_SHARED_LIBS=ON"
#:configure-flags '("-DBUILD_SHARED_LIBS=ON"
"-DBUILD_TESTING=ON"))) "-DBUILD_TESTING=ON")))
(synopsis "Conversion routines for IEEE doubles") (synopsis "Conversion routines for IEEE doubles")
(description (description
@ -10332,7 +10331,6 @@ community detection algorithm.")
(arguments (arguments
(list (list
#:build-type "Release" #:build-type "Release"
#:test-target "test"
#:configure-flags #~(list "-DENABLE_TESTING=ON" "-DSTATS=ON") #:configure-flags #~(list "-DENABLE_TESTING=ON" "-DSTATS=ON")
#:phases #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
@ -10648,16 +10646,24 @@ projects up to the certification of critical software.")
(base32 "0c88gc72j3zggyk4yrrip6i0v7xkx97l140vpy3xhxs2i7xy1461")))) (base32 "0c88gc72j3zggyk4yrrip6i0v7xkx97l140vpy3xhxs2i7xy1461"))))
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments (arguments
`(#:configure-flags '("-DBUILD_DOC=ON" (list
#:configure-flags #~(list "-DBUILD_DOC=ON"
"-DBUILD_TESTING=ON") "-DBUILD_TESTING=ON")
;; The default "check" target also includes examples and benchmarks. #:modules '((guix build cmake-build-system)
#:test-target "check-testsuite" ((guix build gnu-build-system) #:prefix gnu:)
(guix build utils))
#:phases #:phases
(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'build 'build-doc (add-after 'build 'build-doc
(lambda _ (lambda _
(invoke "make" "-j" (number->string (parallel-job-count)) (invoke "make" "-j" (number->string (parallel-job-count))
"blitz-doc")))))) "blitz-doc")))
(replace 'check
(lambda* (#:rest args)
(apply (assoc-ref gnu:%standard-phases 'check)
;; The default "check" target also includes examples and
;; benchmarks.
#:test-target "check-testsuite" args))))))
(native-inputs (native-inputs
(list python texinfo)) (list python texinfo))
(synopsis "C++ template class library for multidimensional arrays") (synopsis "C++ template class library for multidimensional arrays")

View file

@ -2875,11 +2875,18 @@ asynchronicity.")
(base32 (base32
"06y3mh1d1mks6d0ynxp3980g712nkf8l5nyljpybsk326b246hg9")))) "06y3mh1d1mks6d0ynxp3980g712nkf8l5nyljpybsk326b246hg9"))))
(arguments (arguments
`(#:test-target "tests" (list
#:modules '((guix build cmake-build-system)
((guix build gnu-build-system) #:prefix gnu:)
(guix build utils))
#:phases #:phases
(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'unpack 'change-directory (add-after 'unpack 'change-directory
(lambda _ (chdir "cpp")))))) (lambda _ (chdir "cpp")))
(replace 'check
(lambda* (#:rest args)
(apply (assoc-ref gnu:%standard-phases 'check)
#:test-target "tests" args))))))
(build-system cmake-build-system) (build-system cmake-build-system)
(native-inputs (native-inputs
(list googletest pkg-config)) (list googletest pkg-config))

View file

@ -668,8 +668,7 @@ command-line tool.")
(arguments (arguments
`(#:tests? #f ; tests require googletest *sources* `(#:tests? #f ; tests require googletest *sources*
;;#:configure-flags '("-DBUILD_TESTS=ON") ; for building the tests ;;#:configure-flags '("-DBUILD_TESTS=ON") ; for building the tests
#:configure-flags '("-DBUILD_TOOLS=ON") ; for fpcalc #:configure-flags '("-DBUILD_TOOLS=ON"))) ; for fpcalc
#:test-target "check"))
(inputs (inputs
;; requires one of FFmpeg (prefered), FFTW3 or vDSP ;; requires one of FFmpeg (prefered), FFTW3 or vDSP
;; use the same ffmpeg version as for acoustid-fingerprinter ;; use the same ffmpeg version as for acoustid-fingerprinter

View file

@ -537,9 +537,9 @@ enables iPod support in music players such as Clementine.")
#:directories? #t)))))) #:directories? #t))))))
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments (arguments
'(#:test-target "clementine_test" (list
#:configure-flags #:configure-flags
(list ;; Requires unpackaged "projectm" #~(list ;; Requires unpackaged "projectm"
"-DENABLE_VISUALISATIONS=OFF" "-DENABLE_VISUALISATIONS=OFF"
;; Otherwise it may try to download a non-free library at run-time. ;; Otherwise it may try to download a non-free library at run-time.
;; TODO In an origin snippet, remove the code that performs the ;; TODO In an origin snippet, remove the code that performs the
@ -549,8 +549,15 @@ enables iPod support in music players such as Clementine.")
;; because of https://github.com/taglib/taglib/issues/864. Remove ;; because of https://github.com/taglib/taglib/issues/864. Remove
;; this flag when 1.12 is released. ;; this flag when 1.12 is released.
"-DUSE_SYSTEM_TAGLIB=TRUE") "-DUSE_SYSTEM_TAGLIB=TRUE")
#:modules '((guix build cmake-build-system)
((guix build gnu-build-system) #:prefix gnu:)
(guix build utils))
#:phases #:phases
(modify-phases %standard-phases #~(modify-phases %standard-phases
(replace 'check
(lambda* (#:rest args)
(apply (assoc-ref gnu:%standard-phases 'check)
#:test-target "clementine_test" args)))
(add-after 'install 'wrap-program (add-after 'install 'wrap-program
(lambda* (#:key inputs outputs #:allow-other-keys) (lambda* (#:key inputs outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")) (let ((out (assoc-ref outputs "out"))
@ -769,24 +776,31 @@ Winamp/XMMS skins.")
#:directories? #t)))))) #:directories? #t))))))
(build-system qt-build-system) (build-system qt-build-system)
(arguments (arguments
`(#:qtbase ,qtbase (list
#:test-target "run_strawberry_tests" #:qtbase qtbase
#:configure-flags #:configure-flags
`("-DBUILD_WITH_QT6=ON") #~(list "-DBUILD_WITH_QT6=ON")
#:modules '((guix build qt-build-system)
((guix build gnu-build-system) #:prefix gnu:)
(guix build utils))
#:phases #:phases
(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'install 'wrap-program
(lambda* (#:key outputs #:allow-other-keys)
(wrap-program (search-input-file outputs "bin/strawberry")
`("GST_PLUGIN_SYSTEM_PATH" ":" prefix
(,(getenv "GST_PLUGIN_SYSTEM_PATH"))))))
(add-before 'check 'pre-check (add-before 'check 'pre-check
(lambda* (#:key native-inputs inputs #:allow-other-keys) (lambda* (#:key native-inputs inputs #:allow-other-keys)
(system (format #f "~a :1 &" (system (format #f "~a :1 &"
(search-input-file (or native-inputs inputs) (search-input-file (or native-inputs inputs)
"bin/Xvfb"))) "bin/Xvfb")))
(setenv "DISPLAY" ":1") (setenv "DISPLAY" ":1")
(setenv "HOME" (getcwd))))))) (setenv "HOME" (getcwd))))
(replace 'check
(lambda* (#:rest args)
(apply (assoc-ref gnu:%standard-phases 'check)
#:test-target "run_strawberry_tests" args)))
(add-after 'install 'wrap-program
(lambda* (#:key outputs #:allow-other-keys)
(wrap-program (search-input-file outputs "bin/strawberry")
`("GST_PLUGIN_SYSTEM_PATH" ":" prefix
(,(getenv "GST_PLUGIN_SYSTEM_PATH")))))))))
(native-inputs (native-inputs
(list bash-minimal (list bash-minimal
gettext-minimal gettext-minimal
@ -6083,7 +6097,14 @@ for the DSSI Soft Synth Interface. A brief list of features:
version ".tar.gz")) version ".tar.gz"))
(sha256 (sha256
(base32 "10mj1hwv1598nsi7jw5di0pfcwk36g4rr6kl7gi45m7ak8f8ypnx")))) (base32 "10mj1hwv1598nsi7jw5di0pfcwk36g4rr6kl7gi45m7ak8f8ypnx"))))
(arguments `(#:test-target "check")) (arguments
(list
#:modules '((guix build cmake-build-system)
((guix build gnu-build-system) #:prefix gnu:)
(guix build utils))
#:phases
#~(modify-phases %standard-phases
(replace 'check (assoc-ref gnu:%standard-phases 'check)))))
(build-system cmake-build-system) (build-system cmake-build-system)
(home-page "https://musicbrainz.org/doc/libdiscid") (home-page "https://musicbrainz.org/doc/libdiscid")
(synopsis "Disc id reader library") (synopsis "Disc id reader library")
@ -7971,7 +7992,9 @@ midi devices to JACK midi devices.")
(file-name (git-file-name name version)))) (file-name (git-file-name name version))))
(arguments (arguments
(list (list
#:test-target "check" #:modules '((guix build cmake-build-system)
((guix build gnu-build-system) #:prefix gnu:)
(guix build utils))
#:phases #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
;; This package does not use the perl-build-system, so we have to ;; This package does not use the perl-build-system, so we have to
@ -7992,7 +8015,8 @@ midi devices to JACK midi devices.")
#$(package-version perl)))) #$(package-version perl))))
(setenv "PERL5LIB" (string-append perl-list-moreutils-lib ":" (setenv "PERL5LIB" (string-append perl-list-moreutils-lib ":"
perl-exporter-tiny-lib ":" perl-exporter-tiny-lib ":"
perl-test-deep-lib)))))))) perl-test-deep-lib)))))
(replace 'check (assoc-ref gnu:%standard-phases 'check)))))
(build-system cmake-build-system) (build-system cmake-build-system)
(inputs (inputs
(list libogg)) (list libogg))

View file

@ -29,6 +29,7 @@
#:use-module (gnu packages python) #:use-module (gnu packages python)
#:use-module ((guix licenses) #:prefix license:) #:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages) #:use-module (guix packages)
#:use-module (guix gexp)
#:use-module (guix git-download) #:use-module (guix git-download)
#:use-module (guix build-system cmake) #:use-module (guix build-system cmake)
#:use-module (guix utils)) #:use-module (guix utils))
@ -52,7 +53,21 @@
"1ymmcrinp0prlxsmxmwdjjl4kgaj7wzq39d5b1q2apgg94yfdhqb")))) "1ymmcrinp0prlxsmxmwdjjl4kgaj7wzq39d5b1q2apgg94yfdhqb"))))
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments (arguments
`(#:test-target "tests")) (list
#:modules '((guix build cmake-build-system)
((guix build gnu-build-system) #:prefix gnu:)
(guix build utils))
#:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys #:rest args)
(when tests?
(apply (assoc-ref gnu:%standard-phases 'check)
#:tests? tests? #:test-target "tests" args)
(for-each
(lambda (file)
(invoke file))
(find-files "tests" "UTest$"))))))))
(inputs (inputs
(list boost)) (list boost))
(native-inputs (native-inputs
@ -84,14 +99,29 @@ utilities use for typical programming tasks in multiple OpenCog projects.")
"0vxzhszb0z8081li38hid07a5axzxyflsmq1mcn4b1k4z1j8ggch")))) "0vxzhszb0z8081li38hid07a5axzxyflsmq1mcn4b1k4z1j8ggch"))))
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments (arguments
`(#:test-target "tests" (list
#:configure-flags #:configure-flags
(list (string-append "-DGUILE_INCLUDE_DIR=" #~(list (string-append "-DGUILE_INCLUDE_DIR=" #$guile-2.2
(assoc-ref %build-inputs "guile")
"/include/guile/2.2/") "/include/guile/2.2/")
(string-append "-DGUILE_SITE_DIR=" (string-append "-DGUILE_SITE_DIR=" #$output
(assoc-ref %outputs "out") "/share/guile/site/2.2/"))
"/share/guile/site/2.2/")))) #:modules '((guix build cmake-build-system)
((guix build gnu-build-system) #:prefix gnu:)
(guix build utils))
#:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys #:rest args)
(when tests?
(apply (assoc-ref gnu:%standard-phases 'check)
#:tests? tests? #:test-target "tests" args)
;; Failing tests.
(for-each delete-file
'("tests/matrix/VectorAPIUTest"
"tests/scm/MultiAtomSpaceUTest"))
(setenv "GUILE_LOAD_PATH" ".:opencog/scm")
(for-each invoke
(find-files "tests" "UTest$"))))))))
(inputs (inputs
(list boost cogutil gmp guile-2.2 postgresql)) (list boost cogutil gmp guile-2.2 postgresql))
(native-inputs (native-inputs
@ -126,14 +156,26 @@ features not otherwise available.")
"1h0vcxb6n5dc654xqinqcxc7dxwcs6bsywgir8rhrqiykk760mzl")))) "1h0vcxb6n5dc654xqinqcxc7dxwcs6bsywgir8rhrqiykk760mzl"))))
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments (arguments
`(#:test-target "tests" (list
#:configure-flags #:configure-flags
(list (string-append "-DGUILE_INCLUDE_DIR=" #~(list (string-append "-DGUILE_INCLUDE_DIR=" #$guile-2.2
(assoc-ref %build-inputs "guile")
"/include/guile/2.2/") "/include/guile/2.2/")
(string-append "-DGUILE_SITE_DIR=" (string-append "-DGUILE_SITE_DIR=" #$output
(assoc-ref %outputs "out") "/share/guile/site/2.2/"))
"/share/guile/site/2.2/")))) #:modules '((guix build cmake-build-system)
((guix build gnu-build-system) #:prefix gnu:)
(guix build utils))
#:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys #:rest args)
(when tests?
(apply (assoc-ref gnu:%standard-phases 'check)
#:tests? tests? #:test-target "tests" args)
;; Failing test.
(delete-file "tests/shell/ShellUTest")
(for-each invoke
(find-files "tests" "UTest$"))))))))
(inputs (inputs
(list atomspace boost cogutil gmp guile-2.2)) (list atomspace boost cogutil gmp guile-2.2))
(native-inputs (native-inputs
@ -164,15 +206,29 @@ OpenCog framework.")
"0sndslphicv6w9qpag168rqkxq5sf71l5qbfx6zhsd5bzlf5fhwv")))) "0sndslphicv6w9qpag168rqkxq5sf71l5qbfx6zhsd5bzlf5fhwv"))))
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments (arguments
`(#:test-target "tests"
#:configure-flags
(list (list
(string-append "-DGUILE_INCLUDE_DIR=" #:configure-flags
(assoc-ref %build-inputs "guile") #~(list (string-append "-DGUILE_INCLUDE_DIR=" #$guile-2.2
"/include/guile/2.2/") "/include/guile/2.2/")
(string-append "-DGUILE_SITE_DIR=" (string-append "-DGUILE_SITE_DIR=" #$output
(assoc-ref %outputs "out") "/share/guile/site/2.2/"))
"/share/guile/site/2.2/")))) #:modules '((guix build cmake-build-system)
((guix build gnu-build-system) #:prefix gnu:)
(guix build utils))
#:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys #:rest args)
(when tests?
(apply (assoc-ref gnu:%standard-phases 'check)
#:tests? tests? #:test-target "tests" args)
;; Failing tests.
(for-each delete-file
'("tests/attention/AttentionParamQueryUTest"
"tests/attention/HebbianCreationModuleUTest"
"tests/attention/ImportanceDiffusionUTest"))
(for-each invoke
(find-files "tests" "UTest$"))))))))
(inputs (inputs
(list atomspace (list atomspace
boost boost
@ -209,15 +265,24 @@ tasks.")
"1j8wv910fvrmph370wv5pv2f4bc2s9vl6i7bw3pkmwbdhxkhjbhm")))) "1j8wv910fvrmph370wv5pv2f4bc2s9vl6i7bw3pkmwbdhxkhjbhm"))))
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments (arguments
`(#:test-target "tests"
#:configure-flags
(list (list
(string-append "-DGUILE_INCLUDE_DIR=" #:configure-flags
(assoc-ref %build-inputs "guile") #~(list (string-append "-DGUILE_INCLUDE_DIR=" #$guile-2.2
"/include/guile/2.2/") "/include/guile/2.2/")
(string-append "-DGUILE_SITE_DIR=" (string-append "-DGUILE_SITE_DIR=" #$output
(assoc-ref %outputs "out") "/share/guile/site/2.2/"))
"/share/guile/site/2.2/")))) #:modules '((guix build cmake-build-system)
((guix build gnu-build-system) #:prefix gnu:)
(guix build utils))
#:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys #:rest args)
(when tests?
(apply (assoc-ref gnu:%standard-phases 'check)
#:tests? tests? #:test-target "tests" args)
(for-each invoke
(find-files "tests" "UTest$"))))))))
(inputs (inputs
`(("attention" ,attention) `(("attention" ,attention)
("atomspace" ,atomspace) ("atomspace" ,atomspace)

View file

@ -29491,12 +29491,19 @@ user-space file systems in Python.")
("catch" ,catch2-1) ("catch" ,catch2-1)
("eigen" ,eigen))) ("eigen" ,eigen)))
(arguments (arguments
`(#:configure-flags (list
(list (string-append "-DCATCH_INCLUDE_DIR=" #:configure-flags
#~(list (string-append "-DCATCH_INCLUDE_DIR="
(assoc-ref %build-inputs "catch") (assoc-ref %build-inputs "catch")
"/include/catch")) "/include/catch"))
#:modules '((guix build cmake-build-system)
#:phases (modify-phases %standard-phases ((guix build gnu-build-system) #:prefix gnu:)
(guix build utils))
#:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda* (#:rest args)
(apply (assoc-ref gnu:%standard-phases 'check) args)))
(add-after 'install 'install-python (add-after 'install 'install-python
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out"))) (let ((out (assoc-ref outputs "out")))
@ -29505,9 +29512,7 @@ user-space file systems in Python.")
(invoke "python" "setup.py" "install" (invoke "python" "setup.py" "install"
"--single-version-externally-managed" "--single-version-externally-managed"
"--root=/" "--root=/"
(string-append "--prefix=" out))))))) (string-append "--prefix=" out)))))))))
#:test-target "check"))
(home-page "https://github.com/pybind/pybind11/") (home-page "https://github.com/pybind/pybind11/")
(synopsis "Seamless operability between C++11 and Python") (synopsis "Seamless operability between C++11 and Python")
(description (description

View file

@ -5197,8 +5197,7 @@ window docking system.")
"0nsh6v5k4kdrrhcd6adz947n0dka4rrbx8f8rvm1175545nbi67s")))) "0nsh6v5k4kdrrhcd6adz947n0dka4rrbx8f8rvm1175545nbi67s"))))
(build-system qt-build-system) (build-system qt-build-system)
(arguments (arguments
(list #:test-target "tests" (list #:phases
#:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-before 'install 'fix-include-path (add-before 'install 'fix-include-path
(lambda _ (lambda _

View file

@ -147,8 +147,17 @@
(base32 "0i6jhrdswr1wglyb9h39idpz5v9z13yhidvlbj34vxpyngrkhlvs")))) (base32 "0i6jhrdswr1wglyb9h39idpz5v9z13yhidvlbj34vxpyngrkhlvs"))))
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments (arguments
`(#:configure-flags '("-DBUILD_SHARED_LIBS=ON") (list
#:test-target "test_all")) #:configure-flags #~'("-DBUILD_SHARED_LIBS=ON")
#:modules '((guix build cmake-build-system)
((guix build gnu-build-system) #:prefix gnu:)
(guix build utils))
#:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda* (#:rest args)
(apply (assoc-ref gnu:%standard-phases 'check)
#:test-target "test_all" args))))))
(home-page "https://github.com/quiet/libfec") (home-page "https://github.com/quiet/libfec")
(synopsis "Forward error correction algorithms library") (synopsis "Forward error correction algorithms library")
(description (description
@ -175,12 +184,15 @@ useful in modems implemented with @dfn{digital signal processing} (DSP).")
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments (arguments
(list (list
#:test-target "check" #:modules '((guix build cmake-build-system)
((guix build gnu-build-system) #:prefix gnu:)
(guix build utils))
#:phases #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'build 'build-libfec-compatibility-layer (add-after 'build 'build-libfec-compatibility-layer
(lambda _ (lambda _
(invoke "make" "shim"))) (invoke "make" "shim")))
(replace 'check (assoc-ref gnu:%standard-phases 'check))
(add-after 'install 'delete-static-libraries (add-after 'install 'delete-static-libraries
(lambda _ (lambda _
(delete-file (string-append #$output "/lib/libcorrect.a")) (delete-file (string-append #$output "/lib/libcorrect.a"))

View file

@ -116,8 +116,7 @@ HTML and JSON.")
(list boost ; could also use bundled copy (list boost ; could also use bundled copy
zlib)) zlib))
(arguments (arguments
`(#:test-target "cl_test" `(#:configure-flags '("-DBUILD_CONTRIBS_LIB=ON")
#:configure-flags '("-DBUILD_CONTRIBS_LIB=ON")
#:tests? #f)) ; Tests do not compile, as TestIndexSearcher.cpp uses #:tests? #f)) ; Tests do not compile, as TestIndexSearcher.cpp uses
; undeclared usleep. After fixing this, one needs to run ; undeclared usleep. After fixing this, one needs to run
; "make test" in addition to "make cl_test", then ; "make test" in addition to "make cl_test", then

View file

@ -437,8 +437,17 @@ that implements both the msgpack and msgpack-rpc specifications.")
"1c9i93kr7wvpr01i4wixi9mf991nd3k2adg5fy0vxwwlvvc7dgdw")))) "1c9i93kr7wvpr01i4wixi9mf991nd3k2adg5fy0vxwwlvvc7dgdw"))))
(build-system qt-build-system) (build-system qt-build-system)
(arguments (arguments
(list #:qtbase qtbase (list #:modules '((guix build cmake-build-system)
#:test-target "tests")) (guix build qt-build-system)
((guix build gnu-build-system) #:prefix gnu:)
(guix build utils))
#:qtbase qtbase
#:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda* (#:rest args)
(apply (assoc-ref gnu:%standard-phases 'check)
#:test-target "tests" args))))))
(home-page "https://github.com/iamantony/qtcsv") (home-page "https://github.com/iamantony/qtcsv")
(synopsis "Library for reading and writing CSV files in Qt") (synopsis "Library for reading and writing CSV files in Qt")
(description (description

View file

@ -143,8 +143,12 @@ direct descendant of NetBSD's Almquist Shell (@command{ash}).")
(list doxygen groff ; for 'fish --help' (list doxygen groff ; for 'fish --help'
procps)) ; for the test suite procps)) ; for the test suite
(arguments (arguments
'(#:phases (list
(modify-phases %standard-phases #:modules '((guix build cmake-build-system)
((guix build gnu-build-system) #:prefix gnu:)
(guix build utils))
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'set-env (add-after 'unpack 'set-env
(lambda _ (lambda _
;; some tests write to $HOME ;; some tests write to $HOME
@ -244,6 +248,10 @@ direct descendant of NetBSD's Almquist Shell (@command{ash}).")
port) port)
(close-port port)) (close-port port))
#t)) #t))
(replace 'check
(lambda* (#:rest args)
(apply (assoc-ref gnu:%standard-phases 'check)
#:test-target "test" args)))
;; Use fish-foreign-env to source /etc/profile. ;; Use fish-foreign-env to source /etc/profile.
(add-before 'install 'source-etc-profile (add-before 'install 'source-etc-profile
(lambda* (#:key inputs #:allow-other-keys) (lambda* (#:key inputs #:allow-other-keys)

View file

@ -439,7 +439,6 @@ and securely connects to Microsoft OneDrive services.")
`(;; The "tests" target is broken and assumes that tests are run in the `(;; The "tests" target is broken and assumes that tests are run in the
;; root directory. ;; root directory.
#:tests? #f #:tests? #f
#:test-target "tests"
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'unpack 'search-$PATH-for-binaries (add-after 'unpack 'search-$PATH-for-binaries

View file

@ -1231,9 +1231,18 @@ ciphers such as ChaCha20, Curve25519, NTRU, and Blake2b.")
(build-system cmake-build-system) (build-system cmake-build-system)
(native-inputs (list perl)) (native-inputs (list perl))
(arguments (arguments
'(#:test-target "run_minimal_tests" (list
#:configure-flags #:configure-flags
'("-DBUILD_SHARED_LIBS=ON" "-DDISABLE_GO=ON"))) #~(list "-DBUILD_SHARED_LIBS=ON" "-DDISABLE_GO=ON")
#:modules '((guix build cmake-build-system)
((guix build gnu-build-system) #:prefix gnu:)
(guix build utils))
#:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda* (#:rest args)
(apply (assoc-ref gnu:%standard-phases 'check)
#:test-target "run_minimal_tests" args))))))
(synopsis "General purpose cryptographic library") (synopsis "General purpose cryptographic library")
(description "AWS libcrypto (aws-lc) contains portable C implementations (description "AWS libcrypto (aws-lc) contains portable C implementations
of algorithms needed for TLS and common applications, and includes optimized of algorithms needed for TLS and common applications, and includes optimized

View file

@ -190,7 +190,16 @@ SPIR-V, aiming to emit GLSL or MSL that looks like human-written code.")
(string-append "-DCMAKE_EXE_LINKER_FLAGS=-Wl,-rpath=" (string-append "-DCMAKE_EXE_LINKER_FLAGS=-Wl,-rpath="
#$output "/lib") #$output "/lib")
"-DBUILD_SHARED_LIBS=ON" "-DBUILD_SHARED_LIBS=ON"
"-DLLVM_SPIRV_INCLUDE_TESTS=ON"))) "-DLLVM_SPIRV_INCLUDE_TESTS=ON")
#:modules '((guix build cmake-build-system)
((guix build gnu-build-system) #:prefix gnu:)
(guix build utils))
#:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda* (#:rest args)
(apply (assoc-ref gnu:%standard-phases 'check)
#:test-target "test" args))))))
(inputs (list llvm-18)) (inputs (list llvm-18))
(native-inputs (list clang-18 llvm-18 python-lit spirv-headers)) (native-inputs (list clang-18 llvm-18 python-lit spirv-headers))
(home-page "https://github.com/KhronosGroup/SPIRV-LLVM-Translator") (home-page "https://github.com/KhronosGroup/SPIRV-LLVM-Translator")

View file

@ -1854,8 +1854,10 @@ for efficient socket-like bidirectional reliable communication channels.")
(list (list
;; Tests on non-x86_64 architectures are not well supported upstream. ;; Tests on non-x86_64 architectures are not well supported upstream.
#:tests? (target-x86-64?) #:tests? (target-x86-64?)
#:test-target "run-tests"
#:configure-flags '(list "-DUSE_SYSTEM_GTEST=ON") #:configure-flags '(list "-DUSE_SYSTEM_GTEST=ON")
#:modules '((guix build cmake-build-system)
((guix build gnu-build-system) #:prefix gnu:)
(guix build utils))
#:phases #:phases
'(modify-phases %standard-phases '(modify-phases %standard-phases
(add-after 'unpack 'use-gcc (add-after 'unpack 'use-gcc
@ -1863,7 +1865,11 @@ for efficient socket-like bidirectional reliable communication channels.")
;; XXX This is the only test that fails. ;; XXX This is the only test that fails.
(add-after 'unpack 'delete-broken-test (add-after 'unpack 'delete-broken-test
(lambda _ (lambda _
(delete-file "test/wasm2c/spec/memory_init.txt")))))) (delete-file "test/wasm2c/spec/memory_init.txt")))
(replace 'check
(lambda* (#:rest args)
(apply (assoc-ref gnu:%standard-phases 'check)
#:test-target "run-tests" args))))))
(native-inputs (list python googletest)) (native-inputs (list python googletest))
(home-page "https://github.com/WebAssembly/wabt") (home-page "https://github.com/WebAssembly/wabt")
(synopsis "WebAssembly Binary Toolkit") (synopsis "WebAssembly Binary Toolkit")