diff options
| author | Greg Hogan <code@greghogan.com> | 2025-06-10 13:44:11 +0000 |
|---|---|---|
| committer | Greg Hogan <code@greghogan.com> | 2025-08-04 04:10:32 +0000 |
| commit | 364e8832982bdd41d5d151ae5f93df26f4b36603 (patch) | |
| tree | 87d4176da27cef5fbfef68c0ddde952f253f56d4 /gnu/packages | |
| parent | 98907260ed77dd98f160686ca470bb0851016da1 (diff) | |
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
Diffstat (limited to 'gnu/packages')
45 files changed, 603 insertions, 316 deletions
diff --git a/gnu/packages/algebra.scm b/gnu/packages/algebra.scm index e2d6051c5e4..83572e2fc66 100644 --- a/gnu/packages/algebra.scm +++ b/gnu/packages/algebra.scm | |||
| @@ -1285,9 +1285,7 @@ features, and more.") | |||
| 1285 | (file-name (git-file-name name version)))) | 1285 | (file-name (git-file-name name version)))) |
| 1286 | (build-system cmake-build-system) | 1286 | (build-system cmake-build-system) |
| 1287 | (arguments | 1287 | (arguments |
| 1288 | (list | 1288 | (list #:configure-flags #~(list "-DBUILD_TESTS=ON"))) |
| 1289 | #:configure-flags #~(list "-DBUILD_TESTS=ON") | ||
| 1290 | #:test-target "xtest")) | ||
| 1291 | (native-inputs | 1289 | (native-inputs |
| 1292 | (list doctest | 1290 | (list doctest |
| 1293 | googletest | 1291 | googletest |
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index 0112ff5ecf5..0b3a9cf49b9 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm | |||
| @@ -1361,14 +1361,16 @@ standard astronomy libraries: | |||
| 1361 | #:make-flags | 1361 | #:make-flags |
| 1362 | #~(list (string-append "CC=" #$(cc-for-target)) | 1362 | #~(list (string-append "CC=" #$(cc-for-target)) |
| 1363 | (string-append "PREFIX=" #$output)) | 1363 | (string-append "PREFIX=" #$output)) |
| 1364 | #:test-target "test" | 1364 | #:modules '((guix build cmake-build-system) |
| 1365 | ((guix build gnu-build-system) #:prefix gnu:) | ||
| 1366 | (guix build utils)) | ||
| 1365 | #:phases | 1367 | #:phases |
| 1366 | #~(modify-phases %standard-phases | 1368 | #~(modify-phases %standard-phases |
| 1367 | (add-before 'check 'pre-check | 1369 | (replace 'check |
| 1368 | (lambda* (#:key tests? #:allow-other-keys) | 1370 | (lambda* (#:rest args) |
| 1369 | (when tests? | 1371 | (with-directory-excursion "../source" |
| 1370 | (chdir "../source") | 1372 | (apply (assoc-ref gnu:%standard-phases 'check) |
| 1371 | (setenv "CC" #$(cc-for-target)))))))) | 1373 | #:test-target "test" args))))))) |
| 1372 | (native-inputs | 1374 | (native-inputs |
| 1373 | (list python-wrapper)) | 1375 | (list python-wrapper)) |
| 1374 | (home-page "https://github.com/kbarbary/sep") | 1376 | (home-page "https://github.com/kbarbary/sep") |
| @@ -9602,7 +9604,6 @@ deconvolution). Such post-processing is not performed by Stackistry.") | |||
| 9602 | (list | 9604 | (list |
| 9603 | ;; FIXME: Tests keep failing on 100% when preparing test-suit for INDI. | 9605 | ;; FIXME: Tests keep failing on 100% when preparing test-suit for INDI. |
| 9604 | #:tests? #f | 9606 | #:tests? #f |
| 9605 | #:test-target "test" | ||
| 9606 | #:configure-flags | 9607 | #:configure-flags |
| 9607 | #~(list "-DENABLE_GPS=1" | 9608 | #~(list "-DENABLE_GPS=1" |
| 9608 | ;; TODO: Enable when all of the dependencies are available for Qt6. | 9609 | ;; TODO: Enable when all of the dependencies are available for Qt6. |
diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm index 69484bbb647..550877a3983 100644 --- a/gnu/packages/bioinformatics.scm +++ b/gnu/packages/bioinformatics.scm | |||
| @@ -23466,8 +23466,7 @@ The output is in SAM format.") | |||
| 23466 | "0slkagrk3nfi2qsksv6b1brj6zhx4bj4bkib2sdycvrcd10ql2lh")))) | 23466 | "0slkagrk3nfi2qsksv6b1brj6zhx4bj4bkib2sdycvrcd10ql2lh")))) |
| 23467 | (build-system cmake-build-system) | 23467 | (build-system cmake-build-system) |
| 23468 | (arguments | 23468 | (arguments |
| 23469 | `(#:test-target "test" | 23469 | `(#:configure-flags |
| 23470 | #:configure-flags | ||
| 23471 | ,#~(list "-DWITH_CHECK=ON" | 23470 | ,#~(list "-DWITH_CHECK=ON" |
| 23472 | (string-append "-DLIBXML_LIBRARY=" | 23471 | (string-append "-DLIBXML_LIBRARY=" |
| 23473 | #$(this-package-input "libxml2") | 23472 | #$(this-package-input "libxml2") |
| @@ -24595,14 +24594,20 @@ both types of files.") | |||
| 24595 | (build-system cmake-build-system) | 24594 | (build-system cmake-build-system) |
| 24596 | (arguments | 24595 | (arguments |
| 24597 | (list | 24596 | (list |
| 24598 | #:test-target "simple_test" | 24597 | #:modules '((guix build cmake-build-system) |
| 24598 | ((guix build gnu-build-system) #:prefix gnu:) | ||
| 24599 | (guix build utils)) | ||
| 24599 | #:phases | 24600 | #:phases |
| 24600 | '(modify-phases %standard-phases | 24601 | #~(modify-phases %standard-phases |
| 24601 | (add-after 'unpack 'fix-tests | 24602 | (add-after 'unpack 'fix-tests |
| 24602 | (lambda _ | 24603 | (lambda _ |
| 24603 | (substitute* "src/megahit" | 24604 | (substitute* "src/megahit" |
| 24604 | (("os.path.join\\(script_path, '..'\\)") | 24605 | (("os.path.join\\(script_path, '..'\\)") |
| 24605 | "os.path.join(script_path, '../source')"))))))) | 24606 | "os.path.join(script_path, '../source')")))) |
| 24607 | (replace 'check | ||
| 24608 | (lambda* (#:rest args) | ||
| 24609 | (apply (assoc-ref gnu:%standard-phases 'check) | ||
| 24610 | #:test-target "simple_test" args)))))) | ||
| 24606 | (inputs (list python-wrapper zlib)) | 24611 | (inputs (list python-wrapper zlib)) |
| 24607 | (home-page "https://www.ncbi.nlm.nih.gov/pubmed/25609793") | 24612 | (home-page "https://www.ncbi.nlm.nih.gov/pubmed/25609793") |
| 24608 | (synopsis "Meta-genome assembler") | 24613 | (synopsis "Meta-genome assembler") |
diff --git a/gnu/packages/bittorrent.scm b/gnu/packages/bittorrent.scm index 309f85c716a..ac8e496201f 100644 --- a/gnu/packages/bittorrent.scm +++ b/gnu/packages/bittorrent.scm | |||
| @@ -524,7 +524,13 @@ desktops.") | |||
| 524 | (arguments | 524 | (arguments |
| 525 | (list #:qtbase qtbase | 525 | (list #:qtbase qtbase |
| 526 | #:configure-flags #~(list "-DTESTING=ON") | 526 | #:configure-flags #~(list "-DTESTING=ON") |
| 527 | #:test-target "check")) | 527 | #:phases |
| 528 | #~(modify-phases %standard-phases | ||
| 529 | (replace 'check | ||
| 530 | (lambda* (#:rest args) | ||
| 531 | ;; Fix for "enable_testing" not in the top-level directory. | ||
| 532 | (with-directory-excursion "test" | ||
| 533 | (apply (assoc-ref %standard-phases 'check) args))))))) | ||
| 528 | (native-inputs | 534 | (native-inputs |
| 529 | (list qttools)) | 535 | (list qttools)) |
| 530 | (inputs | 536 | (inputs |
diff --git a/gnu/packages/calendar.scm b/gnu/packages/calendar.scm index 1ea278fbd5e..da8b558c6ff 100644 --- a/gnu/packages/calendar.scm +++ b/gnu/packages/calendar.scm | |||
| @@ -126,10 +126,12 @@ available in French.") | |||
| 126 | (build-system cmake-build-system) | 126 | (build-system cmake-build-system) |
| 127 | (arguments | 127 | (arguments |
| 128 | (list | 128 | (list |
| 129 | #:test-target "testit" | ||
| 130 | #:configure-flags | 129 | #:configure-flags |
| 131 | #~(list "-DUSE_SYSTEM_TZ_DB=ON" "-DBUILD_SHARED_LIBS=ON" | 130 | #~(list "-DUSE_SYSTEM_TZ_DB=ON" "-DBUILD_SHARED_LIBS=ON" |
| 132 | "-DBUILD_TZ_LIB=ON" "-DENABLE_DATE_TESTING=ON") | 131 | "-DBUILD_TZ_LIB=ON" "-DENABLE_DATE_TESTING=ON") |
| 132 | #:modules '((guix build cmake-build-system) | ||
| 133 | ((guix build gnu-build-system) #:prefix gnu:) | ||
| 134 | (guix build utils)) | ||
| 133 | #:phases | 135 | #:phases |
| 134 | #~(modify-phases %standard-phases | 136 | #~(modify-phases %standard-phases |
| 135 | (add-after 'unpack 'patch-bin-bash | 137 | (add-after 'unpack 'patch-bin-bash |
| @@ -148,7 +150,11 @@ available in French.") | |||
| 148 | (lambda _ | 150 | (lambda _ |
| 149 | (for-each delete-file | 151 | (for-each delete-file |
| 150 | '("test/solar_hijri_test/parse.pass.cpp" | 152 | '("test/solar_hijri_test/parse.pass.cpp" |
| 151 | "test/tz_test/zoned_time_deduction.pass.cpp"))))))) | 153 | "test/tz_test/zoned_time_deduction.pass.cpp")))) |
| 154 | (replace 'check | ||
| 155 | (lambda* (#:rest args) | ||
| 156 | (apply (assoc-ref gnu:%standard-phases 'check) | ||
| 157 | #:test-target "testit" args)))))) | ||
| 152 | (synopsis "Date and time library for C++11 and C++14") | 158 | (synopsis "Date and time library for C++11 and C++14") |
| 153 | (description | 159 | (description |
| 154 | "Date is a header only C++ library that extends the chrono date | 160 | "Date is a header only C++ library that extends the chrono date |
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index 5643933a39b..9660cff1c7b 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm | |||
| @@ -1357,7 +1357,9 @@ with the @code{klee} package.") | |||
| 1357 | (arguments | 1357 | (arguments |
| 1358 | (list | 1358 | (list |
| 1359 | #:strip-directories #~(list "bin") ;don't strip LLVM bitcode in /lib | 1359 | #:strip-directories #~(list "bin") ;don't strip LLVM bitcode in /lib |
| 1360 | #:test-target "check" | 1360 | #:modules '((guix build cmake-build-system) |
| 1361 | ((guix build gnu-build-system) #:prefix gnu:) | ||
| 1362 | (guix build utils)) | ||
| 1361 | #:phases | 1363 | #:phases |
| 1362 | #~(modify-phases %standard-phases | 1364 | #~(modify-phases %standard-phases |
| 1363 | (add-after 'unpack 'patch | 1365 | (add-after 'unpack 'patch |
| @@ -1373,6 +1375,7 @@ with the @code{klee} package.") | |||
| 1373 | (substitute* "test/lit.cfg" | 1375 | (substitute* "test/lit.cfg" |
| 1374 | (("addEnv\\('PWD'\\)" env) | 1376 | (("addEnv\\('PWD'\\)" env) |
| 1375 | (string-append env "\n" "addEnv('GUIX_PYTHONPATH')"))))) | 1377 | (string-append env "\n" "addEnv('GUIX_PYTHONPATH')"))))) |
| 1378 | (replace 'check (assoc-ref gnu:%standard-phases 'check)) | ||
| 1376 | (add-after 'install 'wrap-programs | 1379 | (add-after 'install 'wrap-programs |
| 1377 | (lambda* (#:key inputs outputs #:allow-other-keys) | 1380 | (lambda* (#:key inputs outputs #:allow-other-keys) |
| 1378 | (let* ((out (assoc-ref outputs "out")) | 1381 | (let* ((out (assoc-ref outputs "out")) |
| @@ -3609,12 +3612,11 @@ tests. The output format is JSON.") | |||
| 3609 | (list) | 3612 | (list) |
| 3610 | (list #:configure-flags #~(list "-DTROMPELOEIL_BUILD_TESTS=yes"))) | 3613 | (list #:configure-flags #~(list "-DTROMPELOEIL_BUILD_TESTS=yes"))) |
| 3611 | (list | 3614 | (list |
| 3612 | #:test-target "test/self_test" | ||
| 3613 | #:phases #~(modify-phases %standard-phases | 3615 | #:phases #~(modify-phases %standard-phases |
| 3614 | (replace 'check | 3616 | (replace 'check |
| 3615 | (lambda* (#:key tests? test-target #:allow-other-keys) | 3617 | (lambda* (#:key tests? #:allow-other-keys) |
| 3616 | (when tests? | 3618 | (when tests? |
| 3617 | (invoke test-target)))))))) | 3619 | (invoke "test/self_test")))))))) |
| 3618 | (native-inputs (list catch2-3)) | 3620 | (native-inputs (list catch2-3)) |
| 3619 | (home-page "https://github.com/rollbear/trompeloeil") | 3621 | (home-page "https://github.com/rollbear/trompeloeil") |
| 3620 | (synopsis "Header only C++14 mocking framework") | 3622 | (synopsis "Header only C++14 mocking framework") |
diff --git a/gnu/packages/chemistry.scm b/gnu/packages/chemistry.scm index 522778776c0..5cbdad2822d 100644 --- a/gnu/packages/chemistry.scm +++ b/gnu/packages/chemistry.scm | |||
| @@ -604,7 +604,6 @@ usual algorithms you expect from a modern molecular dynamics implementation.") | |||
| 604 | (search-input-file %build-inputs "/lib/inchi/libinchi.so.1")) | 604 | (search-input-file %build-inputs "/lib/inchi/libinchi.so.1")) |
| 605 | (string-append "-DINCHI_INCLUDE_DIR=" | 605 | (string-append "-DINCHI_INCLUDE_DIR=" |
| 606 | (search-input-directory %build-inputs "/include/inchi"))) | 606 | (search-input-directory %build-inputs "/include/inchi"))) |
| 607 | #:test-target "test" | ||
| 608 | #:phases | 607 | #:phases |
| 609 | '(modify-phases %standard-phases | 608 | '(modify-phases %standard-phases |
| 610 | ;; Fixed upstream: | 609 | ;; Fixed upstream: |
diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm index 12c304acc48..503fa18a554 100644 --- a/gnu/packages/compression.scm +++ b/gnu/packages/compression.scm | |||
| @@ -2168,6 +2168,15 @@ timestamps in the file header with a fixed time (1 January 2008). | |||
| 2168 | (base32 | 2168 | (base32 |
| 2169 | "18578xbzj8j89srv4bwayjm11bg56fl34sya0znq4fwq3apm037i")))) | 2169 | "18578xbzj8j89srv4bwayjm11bg56fl34sya0znq4fwq3apm037i")))) |
| 2170 | (build-system cmake-build-system) | 2170 | (build-system cmake-build-system) |
| 2171 | (arguments | ||
| 2172 | (list | ||
| 2173 | #:modules '((guix build cmake-build-system) | ||
| 2174 | ((guix build gnu-build-system) #:prefix gnu:) | ||
| 2175 | (guix build utils)) | ||
| 2176 | #:phases | ||
| 2177 | #~(modify-phases %standard-phases | ||
| 2178 | ;; Avoid the integration test, which requires a system bus. | ||
| 2179 | (replace 'check (assoc-ref gnu:%standard-phases 'check))))) | ||
| 2171 | (inputs | 2180 | (inputs |
| 2172 | (list zlib)) | 2181 | (list zlib)) |
| 2173 | (native-inputs (list perl ; for the documentation | 2182 | (native-inputs (list perl ; for the documentation |
diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index c6545aaf4be..6d60f42b316 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm | |||
| @@ -834,8 +834,7 @@ of XDG base directories, such as XDG_CONFIG_HOME.") | |||
| 834 | (build-system cmake-build-system) | 834 | (build-system cmake-build-system) |
| 835 | (arguments | 835 | (arguments |
| 836 | (list | 836 | (list |
| 837 | #:configure-flags #~(list "-DBUILD_TESTS=ON") | 837 | #:configure-flags #~(list "-DBUILD_TESTS=ON"))) |
| 838 | #:test-target "xtest")) | ||
| 839 | (native-inputs | 838 | (native-inputs |
| 840 | (list doctest | 839 | (list doctest |
| 841 | googletest)) | 840 | googletest)) |
| @@ -1446,8 +1445,7 @@ for C++17.") | |||
| 1446 | (build-system cmake-build-system) | 1445 | (build-system cmake-build-system) |
| 1447 | (arguments | 1446 | (arguments |
| 1448 | (list | 1447 | (list |
| 1449 | #:configure-flags #~(list "-DBUILD_TESTS=ON") | 1448 | #:configure-flags #~(list "-DBUILD_TESTS=ON"))) |
| 1450 | #:test-target "xtest")) | ||
| 1451 | (native-inputs | 1449 | (native-inputs |
| 1452 | (list doctest | 1450 | (list doctest |
| 1453 | googletest | 1451 | googletest |
| @@ -2598,10 +2596,17 @@ provides a number of utilities to make coding with expected cleaner.") | |||
| 2598 | (sha256 | 2596 | (sha256 |
| 2599 | (base32 "032rb84ahvdnc1m6sj4lflrwnk4p1f2jsq1pv03xbgizp2lr2pkx")))) | 2597 | (base32 "032rb84ahvdnc1m6sj4lflrwnk4p1f2jsq1pv03xbgizp2lr2pkx")))) |
| 2600 | (build-system cmake-build-system) | 2598 | (build-system cmake-build-system) |
| 2601 | (arguments (list #:test-target "check" | 2599 | (arguments |
| 2602 | ;; -Werror appears to report false positives. | 2600 | (list |
| 2603 | ;; See <https://github.com/arximboldi/immer/issues/223>. | 2601 | ;; -Werror appears to report false positives. |
| 2604 | #:configure-flags #~(list "-DDISABLE_WERROR=ON"))) | 2602 | ;; See <https://github.com/arximboldi/immer/issues/223>. |
| 2603 | #:configure-flags #~'("-DDISABLE_WERROR=ON") | ||
| 2604 | #:modules `((guix build cmake-build-system) | ||
| 2605 | ((guix build gnu-build-system) #:prefix gnu:) | ||
| 2606 | (guix build utils)) | ||
| 2607 | #:phases | ||
| 2608 | #~(modify-phases %standard-phases | ||
| 2609 | (replace 'check (assoc-ref gnu:%standard-phases 'check))))) | ||
| 2605 | (inputs (list boost libgc c-rrb)) | 2610 | (inputs (list boost libgc c-rrb)) |
| 2606 | (native-inputs (list catch2-3 doctest fmt pkg-config)) | 2611 | (native-inputs (list catch2-3 doctest fmt pkg-config)) |
| 2607 | (home-page "https://sinusoid.es/immer") | 2612 | (home-page "https://sinusoid.es/immer") |
| @@ -2626,7 +2631,14 @@ written in C++.") | |||
| 2626 | (modules '((guix build utils))) | 2631 | (modules '((guix build utils))) |
| 2627 | (snippet #~(delete-file-recursively "tools")))) | 2632 | (snippet #~(delete-file-recursively "tools")))) |
| 2628 | (build-system cmake-build-system) | 2633 | (build-system cmake-build-system) |
| 2629 | (arguments (list #:test-target "check")) | 2634 | (arguments |
| 2635 | (list | ||
| 2636 | #:modules `((guix build cmake-build-system) | ||
| 2637 | ((guix build gnu-build-system) #:prefix gnu:) | ||
| 2638 | (guix build utils)) | ||
| 2639 | #:phases | ||
| 2640 | #~(modify-phases %standard-phases | ||
| 2641 | (replace 'check (assoc-ref gnu:%standard-phases 'check))))) | ||
| 2630 | (native-inputs (list boost catch2)) | 2642 | (native-inputs (list boost catch2)) |
| 2631 | (home-page "https://sinusoid.es/zug") | 2643 | (home-page "https://sinusoid.es/zug") |
| 2632 | (synopsis "Higher-order sequence transformers") | 2644 | (synopsis "Higher-order sequence transformers") |
| @@ -2647,13 +2659,16 @@ composable sequential transformations.") | |||
| 2647 | (sha256 | 2659 | (sha256 |
| 2648 | (base32 "1by9d49qnkncifyjcq16zy605d7v4ps6hvc01q5nsp1nbswm94m4")))) | 2660 | (base32 "1by9d49qnkncifyjcq16zy605d7v4ps6hvc01q5nsp1nbswm94m4")))) |
| 2649 | (build-system cmake-build-system) | 2661 | (build-system cmake-build-system) |
| 2650 | (arguments (list #:test-target "check" | 2662 | (arguments (list #:configure-flags #~(list "-Dlager_BUILD_EXAMPLES=no") |
| 2651 | #:configure-flags #~(list "-Dlager_BUILD_EXAMPLES=no") | 2663 | #:modules `((guix build cmake-build-system) |
| 2664 | ((guix build gnu-build-system) #:prefix gnu:) | ||
| 2665 | (guix build utils)) | ||
| 2652 | #:phases | 2666 | #:phases |
| 2653 | #~(modify-phases %standard-phases | 2667 | #~(modify-phases %standard-phases |
| 2654 | (add-after 'unpack 'delete-failing-tests | 2668 | (add-after 'unpack 'delete-failing-tests |
| 2655 | (lambda _ | 2669 | (lambda _ |
| 2656 | (delete-file-recursively "test/event_loop")))))) | 2670 | (delete-file-recursively "test/event_loop"))) |
| 2671 | (replace 'check (assoc-ref gnu:%standard-phases 'check))))) | ||
| 2657 | (inputs (list boost immer zug)) | 2672 | (inputs (list boost immer zug)) |
| 2658 | (native-inputs (list catch2 cereal)) | 2673 | (native-inputs (list catch2 cereal)) |
| 2659 | (home-page "https://sinusoid.es/lager") | 2674 | (home-page "https://sinusoid.es/lager") |
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index b31bb552e25..aa9e5f01d35 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm | |||
| @@ -1569,11 +1569,12 @@ pictures, sounds, or video.") | |||
| 1569 | (list #:imported-modules `((guix build union) | 1569 | (list #:imported-modules `((guix build union) |
| 1570 | ,@%cmake-build-system-modules) | 1570 | ,@%cmake-build-system-modules) |
| 1571 | #:modules `(,@%cmake-build-system-modules | 1571 | #:modules `(,@%cmake-build-system-modules |
| 1572 | ((guix build gnu-build-system) #:prefix gnu:) | ||
| 1573 | (guix build utils) | ||
| 1572 | (guix build union) | 1574 | (guix build union) |
| 1573 | (ice-9 match)) | 1575 | (ice-9 match)) |
| 1574 | #:configure-flags #~(list "-DAPACHE_ONLY=ON" | 1576 | #:configure-flags #~(list "-DAPACHE_ONLY=ON" |
| 1575 | "-DSEND_TELEMETRY_DEFAULT=OFF") | 1577 | "-DSEND_TELEMETRY_DEFAULT=OFF") |
| 1576 | #:test-target "regresschecklocal" | ||
| 1577 | #:phases | 1578 | #:phases |
| 1578 | #~(modify-phases (@ (guix build cmake-build-system) %standard-phases) | 1579 | #~(modify-phases (@ (guix build cmake-build-system) %standard-phases) |
| 1579 | (add-after 'unpack 'patch-install-location | 1580 | (add-after 'unpack 'patch-install-location |
| @@ -1642,7 +1643,9 @@ pictures, sounds, or video.") | |||
| 1642 | (("histogram_test\\.sql\\.in") | 1643 | (("histogram_test\\.sql\\.in") |
| 1643 | "#histogram_test.sql.in"))))))) | 1644 | "#histogram_test.sql.in"))))))) |
| 1644 | (add-after 'prepare-tests 'check | 1645 | (add-after 'prepare-tests 'check |
| 1645 | (assoc-ref %standard-phases 'check))))) | 1646 | (lambda* (#:rest args) |
| 1647 | (apply (assoc-ref gnu:%standard-phases 'check) | ||
| 1648 | #:test-target "regresschecklocal" args)))))) | ||
| 1646 | (inputs (list openssl postgresql)) | 1649 | (inputs (list openssl postgresql)) |
| 1647 | (home-page "https://www.timescale.com/") | 1650 | (home-page "https://www.timescale.com/") |
| 1648 | (synopsis "Time-series extension for PostgreSQL") | 1651 | (synopsis "Time-series extension for PostgreSQL") |
diff --git a/gnu/packages/documentation.scm b/gnu/packages/documentation.scm index dc01277976d..0eebedd5034 100644 --- a/gnu/packages/documentation.scm +++ b/gnu/packages/documentation.scm | |||
| @@ -216,7 +216,6 @@ markup) can be customized and extended by the user.") | |||
| 216 | (assoc-ref %build-inputs "cross-libc") | 216 | (assoc-ref %build-inputs "cross-libc") |
| 217 | "/include")) | 217 | "/include")) |
| 218 | #~'()) | 218 | #~'()) |
| 219 | #:test-target "tests" | ||
| 220 | #:phases | 219 | #:phases |
| 221 | #~(modify-phases %standard-phases | 220 | #~(modify-phases %standard-phases |
| 222 | (add-after 'unpack 'disable-bibtex-test | 221 | (add-after 'unpack 'disable-bibtex-test |
diff --git a/gnu/packages/emulators.scm b/gnu/packages/emulators.scm index 9f64863e9b9..cab9620d958 100644 --- a/gnu/packages/emulators.scm +++ b/gnu/packages/emulators.scm | |||
| @@ -491,6 +491,9 @@ It aims to support Nintendo DSi and 3DS as well.") | |||
| 491 | (build-system cmake-build-system) | 491 | (build-system cmake-build-system) |
| 492 | (arguments | 492 | (arguments |
| 493 | (list | 493 | (list |
| 494 | #:modules '((guix build cmake-build-system) | ||
| 495 | ((guix build gnu-build-system) #:prefix gnu:) | ||
| 496 | (guix build utils)) | ||
| 494 | #:phases | 497 | #:phases |
| 495 | #~(modify-phases %standard-phases | 498 | #~(modify-phases %standard-phases |
| 496 | (add-before 'configure 'generate-fonts&hardcode-libvulkan-path | 499 | (add-before 'configure 'generate-fonts&hardcode-libvulkan-path |
| @@ -512,6 +515,10 @@ It aims to support Nintendo DSi and 3DS as well.") | |||
| 512 | (("\"vulkan\", 1") (string-append "\"vulkan\"")) | 515 | (("\"vulkan\", 1") (string-append "\"vulkan\"")) |
| 513 | (("\"vulkan\"") (string-append "\"" libvulkan "\"")) | 516 | (("\"vulkan\"") (string-append "\"" libvulkan "\"")) |
| 514 | (("Common::DynamicLibrary::GetVersionedFilename") ""))))) | 517 | (("Common::DynamicLibrary::GetVersionedFilename") ""))))) |
| 518 | (replace 'check | ||
| 519 | (lambda* (#:rest args) | ||
| 520 | (apply (assoc-ref gnu:%standard-phases 'check) | ||
| 521 | #:test-target "unittests" args))) | ||
| 515 | (add-before 'install 'build-codeloader.bin | 522 | (add-before 'install 'build-codeloader.bin |
| 516 | (lambda _ | 523 | (lambda _ |
| 517 | (with-directory-excursion "../source/docs" | 524 | (with-directory-excursion "../source/docs" |
| @@ -537,8 +544,7 @@ It aims to support Nintendo DSi and 3DS as well.") | |||
| 537 | (rename-file "dsp_coef.bin" "Data/Sys/GC/dsp_coef.bin"))))) | 544 | (rename-file "dsp_coef.bin" "Data/Sys/GC/dsp_coef.bin"))))) |
| 538 | #:configure-flags | 545 | #:configure-flags |
| 539 | #~(list "-DUSE_DISCORD_PRESENCE=OFF" ;avoid bundled discord-rpc lib | 546 | #~(list "-DUSE_DISCORD_PRESENCE=OFF" ;avoid bundled discord-rpc lib |
| 540 | "-DDSPTOOL=ON") | 547 | "-DDSPTOOL=ON"))) |
| 541 | #:test-target "unittests")) | ||
| 542 | (native-inputs | 548 | (native-inputs |
| 543 | (list (cross-gcc "powerpc-linux-gnu") | 549 | (list (cross-gcc "powerpc-linux-gnu") |
| 544 | gettext-minimal | 550 | gettext-minimal |
diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm index 0a4de600652..d945e807dee 100644 --- a/gnu/packages/engineering.scm +++ b/gnu/packages/engineering.scm | |||
| @@ -1155,12 +1155,12 @@ fonts to gEDA.") | |||
| 1155 | (build-system cmake-build-system) | 1155 | (build-system cmake-build-system) |
| 1156 | (arguments | 1156 | (arguments |
| 1157 | (list | 1157 | (list |
| 1158 | #:tests? #f ; Several tests fail due to floating point error. | ||
| 1158 | #:imported-modules `((guix build guile-build-system) | 1159 | #:imported-modules `((guix build guile-build-system) |
| 1159 | ,@%cmake-build-system-modules) | 1160 | ,@%cmake-build-system-modules) |
| 1160 | #:modules '((guix build cmake-build-system) | 1161 | #:modules '((guix build cmake-build-system) |
| 1161 | ((guix build guile-build-system) #:prefix guile:) | 1162 | ((guix build guile-build-system) #:prefix guile:) |
| 1162 | (guix build utils)) | 1163 | (guix build utils)) |
| 1163 | #:test-target "libfive-test" | ||
| 1164 | #:configure-flags #~(list | 1164 | #:configure-flags #~(list |
| 1165 | (string-append | 1165 | (string-append |
| 1166 | "-DPYTHON_SITE_PACKAGES_DIR=" | 1166 | "-DPYTHON_SITE_PACKAGES_DIR=" |
diff --git a/gnu/packages/fpga.scm b/gnu/packages/fpga.scm index 805983f6c7f..74510822323 100644 --- a/gnu/packages/fpga.scm +++ b/gnu/packages/fpga.scm | |||
| @@ -715,7 +715,14 @@ automated testing of HDL code.") | |||
| 715 | (base32 "1v5fg3h9ffdzq9f6zplvr9all00ssc1gpdvbg129xahkrbl53kvw")))) | 715 | (base32 "1v5fg3h9ffdzq9f6zplvr9all00ssc1gpdvbg129xahkrbl53kvw")))) |
| 716 | (native-inputs (list perl)) | 716 | (native-inputs (list perl)) |
| 717 | (build-system cmake-build-system) | 717 | (build-system cmake-build-system) |
| 718 | (arguments '(#:test-target "check")) | 718 | (arguments |
| 719 | (list | ||
| 720 | #:modules '((guix build cmake-build-system) | ||
| 721 | ((guix build gnu-build-system) #:prefix gnu:) | ||
| 722 | (guix build utils)) | ||
| 723 | #:phases | ||
| 724 | #~(modify-phases %standard-phases | ||
| 725 | (replace 'check (assoc-ref gnu:%standard-phases 'check))))) | ||
| 719 | (home-page "https://accellera.org/community/systemc") | 726 | (home-page "https://accellera.org/community/systemc") |
| 720 | (synopsis "Library for event-driven simulation") | 727 | (synopsis "Library for event-driven simulation") |
| 721 | (description | 728 | (description |
diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm index d82af433d81..231589ca83e 100644 --- a/gnu/packages/game-development.scm +++ b/gnu/packages/game-development.scm | |||
| @@ -3357,9 +3357,19 @@ rigid body physics library written in C.") | |||
| 3357 | "include <doctest/doctest.h>")))))) | 3357 | "include <doctest/doctest.h>")))))) |
| 3358 | (build-system cmake-build-system) | 3358 | (build-system cmake-build-system) |
| 3359 | (arguments | 3359 | (arguments |
| 3360 | `(#:test-target "unit_test" | 3360 | (list #:configure-flags #~'("-DBUILD_SHARED_LIBS=ON" |
| 3361 | #:configure-flags '("-DBUILD_SHARED_LIBS=ON" | 3361 | "-DBOX2D_BUILD_TESTBED=OFF") |
| 3362 | "-DBOX2D_BUILD_TESTBED=OFF"))) | 3362 | #:modules '((guix build cmake-build-system) |
| 3363 | ((guix build gnu-build-system) #:prefix gnu:) | ||
| 3364 | (guix build utils)) | ||
| 3365 | #:phases | ||
| 3366 | #~(modify-phases %standard-phases | ||
| 3367 | (replace 'check | ||
| 3368 | (lambda* (#:key tests? #:allow-other-keys #:rest args) | ||
| 3369 | (when tests? | ||
| 3370 | (apply (assoc-ref gnu:%standard-phases 'check) | ||
| 3371 | #:tests? tests? #:test-target "unit_test" args) | ||
| 3372 | (invoke "bin/unit_test"))))))) | ||
| 3363 | (native-inputs | 3373 | (native-inputs |
| 3364 | (list doctest)) ;for tests | 3374 | (list doctest)) ;for tests |
| 3365 | (inputs | 3375 | (inputs |
| @@ -3390,11 +3400,13 @@ physics engine is just a system for procedural animation.") | |||
| 3390 | (arguments | 3400 | (arguments |
| 3391 | (substitute-keyword-arguments | 3401 | (substitute-keyword-arguments |
| 3392 | (package-arguments box2d) | 3402 | (package-arguments box2d) |
| 3393 | ((#:test-target _) "") ; no check | ||
| 3394 | ((#:configure-flags original-flags) | 3403 | ((#:configure-flags original-flags) |
| 3395 | `(cons* "-DBOX2D_UNIT_TESTS=OFF" ; enkiTS need for all test apps | 3404 | #~(cons* "-DBOX2D_UNIT_TESTS=OFF" ; enkiTS need for all test apps |
| 3396 | "-DBOX2D_SAMPLES=OFF" | 3405 | "-DBOX2D_SAMPLES=OFF" |
| 3397 | (delete "-DBOX2D_BUILD_TESTBED=OFF" ,original-flags))))))) | 3406 | (delete "-DBOX2D_BUILD_TESTBED=OFF" #$original-flags))) |
| 3407 | ((#:phases phases) | ||
| 3408 | #~(modify-phases #$phases | ||
| 3409 | (delete 'check))))))) ; no check | ||
| 3398 | 3410 | ||
| 3399 | (define-public libtcod | 3411 | (define-public libtcod |
| 3400 | (package | 3412 | (package |
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 25555590c14..dcc31bf622e 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm | |||
| @@ -7603,22 +7603,31 @@ screensaver."))) | |||
| 7603 | (native-inputs | 7603 | (native-inputs |
| 7604 | (list cppunit pkg-config)) | 7604 | (list cppunit pkg-config)) |
| 7605 | (arguments | 7605 | (arguments |
| 7606 | `(#:configure-flags | 7606 | (list |
| 7607 | (list "-DCMAKE_CXX_FLAGS=-fcommon" | 7607 | #:modules '((guix build cmake-build-system) |
| 7608 | "-DCMAKE_C_FLAGS=-fcommon" | 7608 | ((guix build gnu-build-system) #:prefix gnu:) |
| 7609 | (string-append "-DCUSTOM_DATA_INSTALL_PATH=" | 7609 | (guix build utils)) |
| 7610 | (search-input-directory %build-inputs | 7610 | #:configure-flags |
| 7611 | "share/megaglest")) | 7611 | #~(list "-DCMAKE_CXX_FLAGS=-fcommon" |
| 7612 | "-DBUILD_MEGAGLEST_TESTS=ON") | 7612 | "-DCMAKE_C_FLAGS=-fcommon" |
| 7613 | #:phases | 7613 | (string-append "-DCUSTOM_DATA_INSTALL_PATH=" |
| 7614 | (modify-phases %standard-phases | 7614 | (search-input-directory %build-inputs |
| 7615 | (add-after 'unpack 'fix-ini-search-path | 7615 | "share/megaglest")) |
| 7616 | (lambda* (#:key outputs #:allow-other-keys) | 7616 | "-DBUILD_MEGAGLEST_TESTS=ON") |
| 7617 | (substitute* "source/glest_game/global/config.cpp" | 7617 | #:phases |
| 7618 | (("/usr/share/megaglest/") | 7618 | #~(modify-phases %standard-phases |
| 7619 | (string-append (assoc-ref outputs "out") | 7619 | (add-after 'unpack 'fix-ini-search-path |
| 7620 | "/share/megaglest/")))))) | 7620 | (lambda* (#:key outputs #:allow-other-keys) |
| 7621 | #:test-target "megaglest_tests")) | 7621 | (substitute* "source/glest_game/global/config.cpp" |
| 7622 | (("/usr/share/megaglest/") | ||
| 7623 | (string-append (assoc-ref outputs "out") | ||
| 7624 | "/share/megaglest/"))))) | ||
| 7625 | (replace 'check | ||
| 7626 | (lambda* (#:key tests? #:allow-other-keys #:rest args) | ||
| 7627 | (when tests? | ||
| 7628 | (apply (assoc-ref gnu:%standard-phases 'check) | ||
| 7629 | #:tests? tests? #:test-target "megaglest_tests" args) | ||
| 7630 | (invoke "source/tests/megaglest_tests"))))))) | ||
| 7622 | (home-page "https://megaglest.org/") | 7631 | (home-page "https://megaglest.org/") |
| 7623 | (synopsis "3D real-time strategy (RTS) game") | 7632 | (synopsis "3D real-time strategy (RTS) game") |
| 7624 | (description "MegaGlest is a cross-platform 3D real-time strategy (RTS) | 7633 | (description "MegaGlest is a cross-platform 3D real-time strategy (RTS) |
| @@ -7844,26 +7853,31 @@ small robot living in the nano world, repair its maker.") | |||
| 7844 | #t)))) | 7853 | #t)))) |
| 7845 | (build-system cmake-build-system) | 7854 | (build-system cmake-build-system) |
| 7846 | (arguments | 7855 | (arguments |
| 7847 | `(#:test-target "run_tests" | 7856 | (list |
| 7857 | #:modules '((guix build cmake-build-system) | ||
| 7858 | ((guix build gnu-build-system) #:prefix gnu:) | ||
| 7859 | (guix build utils)) | ||
| 7848 | #:phases | 7860 | #:phases |
| 7849 | (modify-phases %standard-phases | 7861 | #~(modify-phases %standard-phases |
| 7850 | (add-after 'unpack 'patch-paths | 7862 | (add-after 'unpack 'patch-paths |
| 7851 | (lambda* (#:key outputs #:allow-other-keys) | 7863 | (lambda* (#:key outputs #:allow-other-keys) |
| 7852 | ;; Embed path to assets. | 7864 | ;; Embed path to assets. |
| 7853 | (substitute* "src/engine/shared/storage.cpp" | 7865 | (substitute* "src/engine/shared/storage.cpp" |
| 7854 | (("#define DATA_DIR.*") | 7866 | (("#define DATA_DIR.*") |
| 7855 | (string-append "#define DATA_DIR \"" | 7867 | (string-append "#define DATA_DIR \"" |
| 7856 | (assoc-ref outputs "out") | 7868 | (assoc-ref outputs "out") |
| 7857 | "/share/teeworlds/data" | 7869 | "/share/teeworlds/data" |
| 7858 | "\""))) | 7870 | "\""))))) |
| 7859 | #t)) | 7871 | (add-after 'unpack 'replace-font |
| 7860 | (add-after 'unpack 'replace-font | 7872 | (lambda* (#:key inputs #:allow-other-keys) |
| 7861 | (lambda* (#:key inputs #:allow-other-keys) | 7873 | (delete-file "datasrc/fonts/DejaVuSans.ttf") |
| 7862 | (delete-file "datasrc/fonts/DejaVuSans.ttf") | 7874 | (symlink (string-append (assoc-ref inputs "font-dejavu") |
| 7863 | (symlink (string-append (assoc-ref inputs "font-dejavu") | 7875 | "/share/fonts/truetype/DejaVuSans.ttf") |
| 7864 | "/share/fonts/truetype/DejaVuSans.ttf") | 7876 | "datasrc/fonts/DejaVuSans.ttf"))) |
| 7865 | "datasrc/fonts/DejaVuSans.ttf") | 7877 | (replace 'check |
| 7866 | #t))))) | 7878 | (lambda* (#:rest args) |
| 7879 | (apply (assoc-ref gnu:%standard-phases 'check) | ||
| 7880 | #:test-target "run_tests" args)))))) | ||
| 7867 | (inputs | 7881 | (inputs |
| 7868 | (list freetype | 7882 | (list freetype |
| 7869 | font-dejavu | 7883 | font-dejavu |
| @@ -10808,7 +10822,9 @@ a fortress beyond the forbidden swamp.") | |||
| 10808 | (list | 10822 | (list |
| 10809 | #:configure-flags | 10823 | #:configure-flags |
| 10810 | #~(list "-DAudio_TK=OpenAL") | 10824 | #~(list "-DAudio_TK=OpenAL") |
| 10811 | #:test-target "tests" | 10825 | #:modules '((guix build cmake-build-system) |
| 10826 | ((guix build gnu-build-system) #:prefix gnu:) | ||
| 10827 | (guix build utils)) | ||
| 10812 | #:phases | 10828 | #:phases |
| 10813 | #~(modify-phases %standard-phases | 10829 | #~(modify-phases %standard-phases |
| 10814 | (add-after 'unpack 'prepare-gmock | 10830 | (add-after 'unpack 'prepare-gmock |
| @@ -10839,7 +10855,13 @@ a fortress beyond the forbidden swamp.") | |||
| 10839 | (substitute* "CMakeLists.txt" | 10855 | (substitute* "CMakeLists.txt" |
| 10840 | (("share/games/openclonk") "share/openclonk") | 10856 | (("share/games/openclonk") "share/openclonk") |
| 10841 | (("TARGETS openclonk DESTINATION games") | 10857 | (("TARGETS openclonk DESTINATION games") |
| 10842 | "TARGETS openclonk DESTINATION bin"))))))) | 10858 | "TARGETS openclonk DESTINATION bin")))) |
| 10859 | (replace 'check | ||
| 10860 | (lambda* (#:key tests? #:allow-other-keys #:rest args) | ||
| 10861 | (when tests? | ||
| 10862 | (apply (assoc-ref gnu:%standard-phases 'check) | ||
| 10863 | #:tests? tests? #:test-target "tests" args) | ||
| 10864 | (invoke "tests/tests"))))))) | ||
| 10843 | (native-inputs | 10865 | (native-inputs |
| 10844 | (list (package-source googletest) | 10866 | (list (package-source googletest) |
| 10845 | googletest | 10867 | googletest |
diff --git a/gnu/packages/glib.scm b/gnu/packages/glib.scm index db9f9651252..068bb639390 100644 --- a/gnu/packages/glib.scm +++ b/gnu/packages/glib.scm | |||
| @@ -1312,18 +1312,24 @@ Some codes examples can be find at: | |||
| 1312 | (arguments | 1312 | (arguments |
| 1313 | (list | 1313 | (list |
| 1314 | ;; Avoid the integration test, which requires a system bus. | 1314 | ;; Avoid the integration test, which requires a system bus. |
| 1315 | #:test-target "sdbus-c++-unit-tests" | ||
| 1316 | #:configure-flags #~(list "-DSDBUSCPP_BUILD_CODEGEN=ON" | 1315 | #:configure-flags #~(list "-DSDBUSCPP_BUILD_CODEGEN=ON" |
| 1317 | "-DSDBUSCPP_BUILD_TESTS=ON" | 1316 | "-DSDBUSCPP_BUILD_TESTS=ON" |
| 1318 | ;; Do not install tests. | 1317 | ;; Do not install tests. |
| 1319 | "-DSDBUSCPP_TESTS_INSTALL_PATH=/tmp" | 1318 | "-DSDBUSCPP_TESTS_INSTALL_PATH=/tmp" |
| 1320 | "-DCMAKE_VERBOSE_MAKEFILE=ON") | 1319 | "-DCMAKE_VERBOSE_MAKEFILE=ON") |
| 1320 | #:modules '((guix build cmake-build-system) | ||
| 1321 | ((guix build gnu-build-system) #:prefix gnu:) | ||
| 1322 | (guix build utils)) | ||
| 1321 | #:phases | 1323 | #:phases |
| 1322 | #~(modify-phases %standard-phases | 1324 | #~(modify-phases %standard-phases |
| 1323 | (add-after 'unpack 'do-not-install-tests | 1325 | (add-after 'unpack 'do-not-install-tests |
| 1324 | (lambda _ | 1326 | (lambda _ |
| 1325 | (substitute* "tests/CMakeLists.txt" | 1327 | (substitute* "tests/CMakeLists.txt" |
| 1326 | (("/etc/dbus-1/system.d") "/tmp"))))))) | 1328 | (("/etc/dbus-1/system.d") "/tmp")))) |
| 1329 | (replace 'check | ||
| 1330 | (lambda* (#:rest args) | ||
| 1331 | (apply (assoc-ref gnu:%standard-phases 'check) | ||
| 1332 | #:test-target "sdbus-c++-unit-tests" args)))))) | ||
| 1327 | (native-inputs (list googletest-1.17 pkg-config)) | 1333 | (native-inputs (list googletest-1.17 pkg-config)) |
| 1328 | (inputs (list expat)) | 1334 | (inputs (list expat)) |
| 1329 | (propagated-inputs (list elogind)) ;required by sdbus-c++.pc | 1335 | (propagated-inputs (list elogind)) ;required by sdbus-c++.pc |
diff --git a/gnu/packages/gnucash.scm b/gnu/packages/gnucash.scm index 9f2f677968b..ee9fe5a366d 100644 --- a/gnu/packages/gnucash.scm +++ b/gnu/packages/gnucash.scm | |||
| @@ -78,13 +78,13 @@ | |||
| 78 | (build-system cmake-build-system) | 78 | (build-system cmake-build-system) |
| 79 | (arguments | 79 | (arguments |
| 80 | (list | 80 | (list |
| 81 | #:test-target "check" | ||
| 82 | #:configure-flags #~(list "-DWITH_PYTHON=ON") | 81 | #:configure-flags #~(list "-DWITH_PYTHON=ON") |
| 83 | #:make-flags #~(list "GUILE_AUTO_COMPILE=0") | 82 | #:make-flags #~(list "GUILE_AUTO_COMPILE=0") |
| 84 | #:imported-modules `(,@%default-gnu-imported-modules | 83 | #:imported-modules `(,@%default-gnu-imported-modules |
| 85 | (guix build cmake-build-system) | 84 | (guix build cmake-build-system) |
| 86 | (guix build glib-or-gtk-build-system)) | 85 | (guix build glib-or-gtk-build-system)) |
| 87 | #:modules '((guix build cmake-build-system) | 86 | #:modules '((guix build cmake-build-system) |
| 87 | ((guix build gnu-build-system) #:prefix gnu:) | ||
| 88 | ((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:) | 88 | ((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:) |
| 89 | (guix build utils)) | 89 | (guix build utils)) |
| 90 | #:phases | 90 | #:phases |
| @@ -114,6 +114,7 @@ | |||
| 114 | (invoke "localedef" "-i" "en_US" "-f" "UTF-8" "./en_US.UTF-8") | 114 | (invoke "localedef" "-i" "en_US" "-f" "UTF-8" "./en_US.UTF-8") |
| 115 | (invoke "localedef" "-i" "en_GB" "-f" "UTF-8" "./en_GB.UTF-8") | 115 | (invoke "localedef" "-i" "en_GB" "-f" "UTF-8" "./en_GB.UTF-8") |
| 116 | (invoke "localedef" "-i" "fr_FR" "-f" "UTF-8" "./fr_FR.UTF-8"))) | 116 | (invoke "localedef" "-i" "fr_FR" "-f" "UTF-8" "./fr_FR.UTF-8"))) |
| 117 | (replace 'check (assoc-ref gnu:%standard-phases 'check)) | ||
| 117 | ;; There is about 100 MiB of documentation. | 118 | ;; There is about 100 MiB of documentation. |
| 118 | (add-after 'install 'install-docs | 119 | (add-after 'install 'install-docs |
| 119 | (lambda _ | 120 | (lambda _ |
diff --git a/gnu/packages/graph.scm b/gnu/packages/graph.scm index 2549889a11a..c0a3945dfc1 100644 --- a/gnu/packages/graph.scm +++ b/gnu/packages/graph.scm | |||
| @@ -146,7 +146,9 @@ distributions in empirical data. SIAM Review 51, 661-703 (2009)}).") | |||
| 146 | ;; Use the same integer width as suitesparse-cxsparse, which | 146 | ;; Use the same integer width as suitesparse-cxsparse, which |
| 147 | ;; uses int64_t in SuiteSparse v6.0.0 and later. | 147 | ;; uses int64_t in SuiteSparse v6.0.0 and later. |
| 148 | "-DIGRAPH_INTEGER_SIZE=64") | 148 | "-DIGRAPH_INTEGER_SIZE=64") |
| 149 | #:test-target "check" | 149 | #:modules '((guix build cmake-build-system) |
| 150 | ((guix build gnu-build-system) #:prefix gnu:) | ||
| 151 | (guix build utils)) | ||
| 150 | #:phases | 152 | #:phases |
| 151 | #~(modify-phases %standard-phases | 153 | #~(modify-phases %standard-phases |
| 152 | (add-after 'unpack 'version-file | 154 | (add-after 'unpack 'version-file |
| @@ -178,6 +180,7 @@ distributions in empirical data. SIAM Review 51, 661-703 (2009)}).") | |||
| 178 | (add-after 'build 'build-doc | 180 | (add-after 'build 'build-doc |
| 179 | (lambda _ | 181 | (lambda _ |
| 180 | (invoke "cmake" "--build" "." "--target" "html"))) | 182 | (invoke "cmake" "--build" "." "--target" "html"))) |
| 183 | (replace 'check (assoc-ref gnu:%standard-phases 'check)) | ||
| 181 | (add-after 'install 'install-doc | 184 | (add-after 'install 'install-doc |
| 182 | (lambda _ | 185 | (lambda _ |
| 183 | (copy-recursively | 186 | (copy-recursively |
diff --git a/gnu/packages/hyperledger.scm b/gnu/packages/hyperledger.scm index 49955f01216..91e9493ea9a 100644 --- a/gnu/packages/hyperledger.scm +++ b/gnu/packages/hyperledger.scm | |||
| @@ -172,9 +172,8 @@ link-time. New implementations can be added as well.") | |||
| 172 | '("-DTESTING=OFF" ; The tests fail to link correctly to googletest. | 172 | '("-DTESTING=OFF" ; The tests fail to link correctly to googletest. |
| 173 | ;; Don't install the shared libraries of the dependencies: | 173 | ;; Don't install the shared libraries of the dependencies: |
| 174 | "-DENABLE_LIBS_PACKAGING=OFF") | 174 | "-DENABLE_LIBS_PACKAGING=OFF") |
| 175 | #:tests? #f | ||
| 176 | ;; https://iroha.readthedocs.io/en/latest/build/index.html#running-tests-optional | 175 | ;; https://iroha.readthedocs.io/en/latest/build/index.html#running-tests-optional |
| 177 | #:test-target ".")) | 176 | #:tests? #f)) |
| 178 | ;; https://github.com/hyperledger/iroha/blob/master/vcpkg/VCPKG_DEPS_LIST | 177 | ;; https://github.com/hyperledger/iroha/blob/master/vcpkg/VCPKG_DEPS_LIST |
| 179 | (native-inputs | 178 | (native-inputs |
| 180 | (list fmt-8 | 179 | (list fmt-8 |
diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm index a0967bc5a7b..5651a245feb 100644 --- a/gnu/packages/image.scm +++ b/gnu/packages/image.scm | |||
| @@ -1617,38 +1617,46 @@ channels.") | |||
| 1617 | (base32 "1qm6bvj28l42km009nc60gffn1qhngc0m2wjlhf90si3mcc8d99m")))) | 1617 | (base32 "1qm6bvj28l42km009nc60gffn1qhngc0m2wjlhf90si3mcc8d99m")))) |
| 1618 | (build-system cmake-build-system) | 1618 | (build-system cmake-build-system) |
| 1619 | (arguments | 1619 | (arguments |
| 1620 | `(#:test-target "tests" | 1620 | (list |
| 1621 | #:configure-flags (list "-DEXIV2_BUILD_UNIT_TESTS=ON" | 1621 | #:configure-flags |
| 1622 | ;; darktable needs BMFF to support | 1622 | #~(list "-DEXIV2_BUILD_UNIT_TESTS=ON" |
| 1623 | ;; CR3 files. | 1623 | ;; darktable needs BMFF to support |
| 1624 | "-DEXIV2_ENABLE_BMFF=ON") | 1624 | ;; CR3 files. |
| 1625 | #:phases | 1625 | "-DEXIV2_ENABLE_BMFF=ON") |
| 1626 | (modify-phases %standard-phases | 1626 | #:modules '((guix build cmake-build-system) |
| 1627 | (add-after 'unpack 'patch-gcc-reference | 1627 | ((guix build gnu-build-system) #:prefix gnu:) |
| 1628 | (lambda _ | 1628 | (guix build utils)) |
| 1629 | ;; _GLIBCXX_ASSERTIONS brings reference to GCC. | 1629 | #:phases |
| 1630 | (substitute* "cmake/compilerFlags.cmake" | 1630 | #~(modify-phases %standard-phases |
| 1631 | (("add_compile_options[(]-Wp,-D_GLIBCXX_ASSERTIONS[)]") | 1631 | (add-after 'unpack 'patch-gcc-reference |
| 1632 | "")))) | 1632 | (lambda _ |
| 1633 | (add-after 'install 'delete-static-libraries | 1633 | ;; _GLIBCXX_ASSERTIONS brings reference to GCC. |
| 1634 | (lambda* (#:key outputs #:allow-other-keys) | 1634 | (substitute* "cmake/compilerFlags.cmake" |
| 1635 | (let* ((out (assoc-ref outputs "out")) | 1635 | (("add_compile_options[(]-Wp,-D_GLIBCXX_ASSERTIONS[)]") |
| 1636 | (lib (string-append out "/lib"))) | 1636 | "")))) |
| 1637 | (for-each delete-file (find-files lib "\\.a$"))))) | 1637 | (add-after 'install 'delete-static-libraries |
| 1638 | 1638 | (lambda* (#:key outputs #:allow-other-keys) | |
| 1639 | ,@(if (or (target-ppc64le?) | 1639 | (let* ((out (assoc-ref outputs "out")) |
| 1640 | (target-aarch64?) | 1640 | (lib (string-append out "/lib"))) |
| 1641 | (target-riscv64?)) | 1641 | (for-each delete-file (find-files lib "\\.a$"))))) |
| 1642 | '((add-after 'unpack 'adjust-tests | 1642 | (replace 'check |
| 1643 | (lambda _ | 1643 | (lambda* (#:rest args) |
| 1644 | ;; Adjust test on ppc64 and aarch64, where no exception | 1644 | (apply (assoc-ref gnu:%standard-phases 'check) |
| 1645 | ;; is raised and thus the return value is different. See | 1645 | #:test-target "tests" args))) |
| 1646 | ;; <https://github.com/Exiv2/exiv2/issues/365> and | 1646 | |
| 1647 | ;; <https://github.com/Exiv2/exiv2/issues/933>. | 1647 | #$@(if (or (target-ppc64le?) |
| 1648 | (substitute* "tests/bugfixes/github/test_CVE_2018_12265.py" | 1648 | (target-aarch64?) |
| 1649 | (("\\$uncaught_exception \\$addition_overflow_message\n") "") | 1649 | (target-riscv64?)) |
| 1650 | (("retval = \\[1\\]") "retval = [0]"))))) | 1650 | '((add-after 'unpack 'adjust-tests |
| 1651 | '())))) | 1651 | (lambda _ |
| 1652 | ;; Adjust test on ppc64 and aarch64, where no exception | ||
| 1653 | ;; is raised and thus the return value is different. See | ||
| 1654 | ;; <https://github.com/Exiv2/exiv2/issues/365> and | ||
| 1655 | ;; <https://github.com/Exiv2/exiv2/issues/933>. | ||
| 1656 | (substitute* "tests/bugfixes/github/test_CVE_2018_12265.py" | ||
| 1657 | (("\\$uncaught_exception \\$addition_overflow_message\n") "") | ||
| 1658 | (("retval = \\[1\\]") "retval = [0]"))))) | ||
| 1659 | '())))) | ||
| 1652 | (propagated-inputs | 1660 | (propagated-inputs |
| 1653 | (list expat zlib)) | 1661 | (list expat zlib)) |
| 1654 | (native-inputs | 1662 | (native-inputs |
diff --git a/gnu/packages/inkscape.scm b/gnu/packages/inkscape.scm index 33a57354dcb..e3acf3fd71b 100644 --- a/gnu/packages/inkscape.scm +++ b/gnu/packages/inkscape.scm | |||
| @@ -160,7 +160,6 @@ endif()~%~%" | |||
| 160 | (build-system cmake-build-system) | 160 | (build-system cmake-build-system) |
| 161 | (arguments | 161 | (arguments |
| 162 | (list | 162 | (list |
| 163 | #:test-target "check" ;otherwise some test binaries are missing | ||
| 164 | #:disallowed-references (list imagemagick/stable) | 163 | #:disallowed-references (list imagemagick/stable) |
| 165 | #:imported-modules `(,@%cmake-build-system-modules | 164 | #:imported-modules `(,@%cmake-build-system-modules |
| 166 | (guix build glib-or-gtk-build-system)) | 165 | (guix build glib-or-gtk-build-system)) |
| @@ -358,6 +357,8 @@ as the native format.") | |||
| 358 | (build-system cmake-build-system) | 357 | (build-system cmake-build-system) |
| 359 | (arguments | 358 | (arguments |
| 360 | (substitute-keyword-arguments (package-arguments inkscape/pinned) | 359 | (substitute-keyword-arguments (package-arguments inkscape/pinned) |
| 360 | ((#:modules modules) | ||
| 361 | (append '(((guix build gnu-build-system) #:prefix gnu:)) modules)) | ||
| 361 | ((#:configure-flags flags ''()) | 362 | ((#:configure-flags flags ''()) |
| 362 | ;; Enable ImageMagick support. | 363 | ;; Enable ImageMagick support. |
| 363 | #~(delete "-DWITH_IMAGE_MAGICK=OFF" #$flags)) | 364 | #~(delete "-DWITH_IMAGE_MAGICK=OFF" #$flags)) |
| @@ -371,11 +372,9 @@ as the native format.") | |||
| 371 | #$%inkscape-release-year))))) | 372 | #$%inkscape-release-year))))) |
| 372 | #$@(if (target-x86-32?) | 373 | #$@(if (target-x86-32?) |
| 373 | #~() ;XXX: there are remaining failures on i686 | 374 | #~() ;XXX: there are remaining failures on i686 |
| 374 | #~((replace 'check | 375 | ;; Re-instate the tests disabled in inkscape/pinned, now that |
| 375 | ;; Re-instate the tests disabled in inkscape/pinned, now that | 376 | ;; their ImageMagick requirement is satisfied. |
| 376 | ;; their ImageMagick requirement is satisfied. | 377 | #~((replace 'check (assoc-ref gnu:%standard-phases 'check)))) |
| 377 | (assoc-ref %standard-phases 'check)))) | ||
| 378 | |||
| 379 | (replace 'wrap-program | 378 | (replace 'wrap-program |
| 380 | ;; Ensure Python is available at runtime. | 379 | ;; Ensure Python is available at runtime. |
| 381 | (lambda _ | 380 | (lambda _ |
diff --git a/gnu/packages/instrumentation.scm b/gnu/packages/instrumentation.scm index 81bbd5118eb..be6373225ec 100644 --- a/gnu/packages/instrumentation.scm +++ b/gnu/packages/instrumentation.scm | |||
| @@ -698,7 +698,14 @@ bundled with python-3 and luajit that you can delete in a package variant.") | |||
| 698 | (base32 | 698 | (base32 |
| 699 | "1p4nqsq689hr2srdvg59v9yfig2aaq9psdy6fhwnya0vszssyvn5")))) | 699 | "1p4nqsq689hr2srdvg59v9yfig2aaq9psdy6fhwnya0vszssyvn5")))) |
| 700 | (build-system cmake-build-system) | 700 | (build-system cmake-build-system) |
| 701 | (arguments `(#:test-target "check")) | 701 | (arguments |
| 702 | (list | ||
| 703 | #:modules '((guix build cmake-build-system) | ||
| 704 | ((guix build gnu-build-system) #:prefix gnu:) | ||
| 705 | (guix build utils)) | ||
| 706 | #:phases | ||
| 707 | #~(modify-phases %standard-phases | ||
| 708 | (replace 'check (assoc-ref gnu:%standard-phases 'check))))) | ||
| 702 | (native-inputs (list boost python-pytest)) | 709 | (native-inputs (list boost python-pytest)) |
| 703 | (home-page "https://github.com/eepp/yactfr") | 710 | (home-page "https://github.com/eepp/yactfr") |
| 704 | (synopsis "CTF reading library offering a C++14 API") | 711 | (synopsis "CTF reading library offering a C++14 API") |
diff --git a/gnu/packages/kde-multimedia.scm b/gnu/packages/kde-multimedia.scm index f258da37236..1c3db87d953 100644 --- a/gnu/packages/kde-multimedia.scm +++ b/gnu/packages/kde-multimedia.scm | |||
| @@ -254,10 +254,10 @@ This package is part of the KDE multimedia module.") | |||
| 254 | (system "Xvfb :1 -screen 0 640x480x24 &") | 254 | (system "Xvfb :1 -screen 0 640x480x24 &") |
| 255 | (setenv "DISPLAY" ":1"))) | 255 | (setenv "DISPLAY" ":1"))) |
| 256 | (replace 'check | 256 | (replace 'check |
| 257 | (lambda* (#:key tests? test-target #:allow-other-keys) | 257 | (lambda* (#:key tests? #:allow-other-keys) |
| 258 | (when tests? | 258 | (when tests? |
| 259 | (setenv "CTEST_OUTPUT_ON_FAILURE" "1") | 259 | (setenv "CTEST_OUTPUT_ON_FAILURE" "1") |
| 260 | (invoke "dbus-launch" "make" test-target))))))) | 260 | (invoke "dbus-launch" "make" "test"))))))) |
| 261 | (home-page "https://apps.kde.org/elisa/") | 261 | (home-page "https://apps.kde.org/elisa/") |
| 262 | (synopsis "Powerful music player for Plasma 5") | 262 | (synopsis "Powerful music player for Plasma 5") |
| 263 | (description "Elisa is a simple music player aiming to provide a nice | 263 | (description "Elisa is a simple music player aiming to provide a nice |
diff --git a/gnu/packages/libftdi.scm b/gnu/packages/libftdi.scm index 02efcbbbc0a..25db26793de 100644 --- a/gnu/packages/libftdi.scm +++ b/gnu/packages/libftdi.scm | |||
| @@ -87,7 +87,6 @@ | |||
| 87 | (string-append share "/doc/" | 87 | (string-append share "/doc/" |
| 88 | #$name "-" #$version | 88 | #$name "-" #$version |
| 89 | "/html")))))) | 89 | "/html")))))) |
| 90 | #:test-target "check" | ||
| 91 | #:tests? #f)) ; tests fail without access to USB | 90 | #:tests? #f)) ; tests fail without access to USB |
| 92 | (native-inputs | 91 | (native-inputs |
| 93 | (list doxygen graphviz pkg-config python swig)) | 92 | (list doxygen graphviz pkg-config python swig)) |
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index cca4290e072..b78342efab2 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm | |||
| @@ -10757,7 +10757,9 @@ set as @code{LD_PRELOAD} to override the C library file system functions.") | |||
| 10757 | #$(string-append "-DFALCOSECURITY_LIBS_VERSION=" version)) | 10757 | #$(string-append "-DFALCOSECURITY_LIBS_VERSION=" version)) |
| 10758 | ;; Only the libsinsp test suite is run, as the one for libscap requires | 10758 | ;; Only the libsinsp test suite is run, as the one for libscap requires |
| 10759 | ;; elevated privileges. | 10759 | ;; elevated privileges. |
| 10760 | #:test-target "run-unit-test-libsinsp" | 10760 | #:modules '((guix build cmake-build-system) |
| 10761 | ((guix build gnu-build-system) #:prefix gnu:) | ||
| 10762 | (guix build utils)) | ||
| 10761 | #:phases | 10763 | #:phases |
| 10762 | #~(modify-phases %standard-phases | 10764 | #~(modify-phases %standard-phases |
| 10763 | (add-after 'unpack 'disable-problematic-tests | 10765 | (add-after 'unpack 'disable-problematic-tests |
| @@ -10767,6 +10769,10 @@ set as @code{LD_PRELOAD} to override the C library file system functions.") | |||
| 10767 | ;; exists in the build environment. | 10769 | ;; exists in the build environment. |
| 10768 | (("TEST_F\\(usergroup_manager_test, system_lookup)") | 10770 | (("TEST_F\\(usergroup_manager_test, system_lookup)") |
| 10769 | "TEST_F(usergroup_manager_test, DISABLED_system_lookup)")))) | 10771 | "TEST_F(usergroup_manager_test, DISABLED_system_lookup)")))) |
| 10772 | (replace 'check | ||
| 10773 | (lambda* (#:rest args) | ||
| 10774 | (apply (assoc-ref gnu:%standard-phases 'check) | ||
| 10775 | #:test-target "run-unit-test-libsinsp" args))) | ||
| 10770 | (add-after 'install 'delete-src | 10776 | (add-after 'install 'delete-src |
| 10771 | (lambda _ | 10777 | (lambda _ |
| 10772 | (delete-file-recursively | 10778 | (delete-file-recursively |
diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm index 0c52fdf24bd..dd4f0ef7916 100644 --- a/gnu/packages/llvm.scm +++ b/gnu/packages/llvm.scm | |||
| @@ -817,14 +817,20 @@ of programming tools as well as libraries with equivalent functionality.") | |||
| 817 | #~(list "-DLIBOMP_USE_HWLOC=ON" | 817 | #~(list "-DLIBOMP_USE_HWLOC=ON" |
| 818 | "-DOPENMP_TEST_C_COMPILER=clang" | 818 | "-DOPENMP_TEST_C_COMPILER=clang" |
| 819 | "-DOPENMP_TEST_CXX_COMPILER=clang++") | 819 | "-DOPENMP_TEST_CXX_COMPILER=clang++") |
| 820 | #:test-target "check-libomp" | 820 | #:modules '((guix build cmake-build-system) |
| 821 | ((guix build gnu-build-system) #:prefix gnu:) | ||
| 822 | (guix build utils)) | ||
| 821 | #:phases | 823 | #:phases |
| 822 | #~(modify-phases %standard-phases | 824 | #~(modify-phases %standard-phases |
| 823 | (add-after 'unpack 'chdir-to-source-and-install-license | 825 | (add-after 'unpack 'chdir-to-source-and-install-license |
| 824 | (lambda _ | 826 | (lambda _ |
| 825 | (chdir "openmp") | 827 | (chdir "openmp") |
| 826 | (install-file "LICENSE.TXT" | 828 | (install-file "LICENSE.TXT" |
| 827 | (string-append #$output "/share/doc"))))))) | 829 | (string-append #$output "/share/doc")))) |
| 830 | (replace 'check | ||
| 831 | (lambda* (#:rest args) | ||
| 832 | (apply (assoc-ref gnu:%standard-phases 'check) | ||
| 833 | #:test-target "check-libomp" args)))))) | ||
| 828 | (native-inputs (list clang-15 llvm-15 perl pkg-config python)) | 834 | (native-inputs (list clang-15 llvm-15 perl pkg-config python)) |
| 829 | (inputs (list `(,hwloc "lib"))) | 835 | (inputs (list `(,hwloc "lib"))) |
| 830 | (home-page "https://openmp.llvm.org") | 836 | (home-page "https://openmp.llvm.org") |
| @@ -921,14 +927,14 @@ Library.") | |||
| 921 | "0kvbr4j6ldpssiv7chgqra5y77n7jwbyxlwcl7z32v31f49jcybb")) | 927 | "0kvbr4j6ldpssiv7chgqra5y77n7jwbyxlwcl7z32v31f49jcybb")) |
| 922 | (file-name (string-append "libomp-" version ".tar.xz")))) | 928 | (file-name (string-append "libomp-" version ".tar.xz")))) |
| 923 | (arguments | 929 | (arguments |
| 924 | '(#:configure-flags '("-DLIBOMP_USE_HWLOC=ON" | 930 | (substitute-keyword-arguments (package-arguments libomp-14) |
| 925 | "-DOPENMP_TEST_C_COMPILER=clang" | 931 | ((#:configure-flags flags) |
| 926 | "-DOPENMP_TEST_CXX_COMPILER=clang++" | 932 | ;; Work around faulty target detection, fixed in 14: |
| 927 | 933 | ;; https://github.com/llvm/llvm-project/issues/52910 | |
| 928 | ;; Work around faulty target detection, fixed in 14: | 934 | #~(cons* "-DLIBOMPTARGET_BUILD_AMDGCN_BCLIB=OFF" #$flags)) |
| 929 | ;; https://github.com/llvm/llvm-project/issues/52910 | 935 | ((#:phases phases) |
| 930 | "-DLIBOMPTARGET_BUILD_AMDGCN_BCLIB=OFF") | 936 | #~(modify-phases #$phases |
| 931 | #:test-target "check-libomp")) | 937 | (delete 'chdir-to-source-and-install-license))))) |
| 932 | (native-inputs | 938 | (native-inputs |
| 933 | (modify-inputs (package-native-inputs libomp-14) | 939 | (modify-inputs (package-native-inputs libomp-14) |
| 934 | (replace "clang" clang-13) | 940 | (replace "clang" clang-13) |
| @@ -1007,10 +1013,9 @@ Library.") | |||
| 1007 | "14dh0r6h2xh747ffgnsl4z08h0ri04azi9vf79cbz7ma1r27kzk0")) | 1013 | "14dh0r6h2xh747ffgnsl4z08h0ri04azi9vf79cbz7ma1r27kzk0")) |
| 1008 | (file-name (string-append "libomp-" version ".tar.xz")))) | 1014 | (file-name (string-append "libomp-" version ".tar.xz")))) |
| 1009 | (arguments | 1015 | (arguments |
| 1010 | '(#:configure-flags '("-DLIBOMP_USE_HWLOC=ON" | 1016 | (substitute-keyword-arguments (package-arguments libomp-13) |
| 1011 | "-DOPENMP_TEST_C_COMPILER=clang" | 1017 | ((#:configure-flags flags) |
| 1012 | "-DOPENMP_TEST_CXX_COMPILER=clang++") | 1018 | #~`(,@(delete "-DLIBOMPTARGET_BUILD_AMDGCN_BCLIB=OFF" #$flags))))) |
| 1013 | #:test-target "check-libomp")) | ||
| 1014 | (native-inputs | 1019 | (native-inputs |
| 1015 | (modify-inputs (package-native-inputs libomp-13) | 1020 | (modify-inputs (package-native-inputs libomp-13) |
| 1016 | (replace "clang" clang-12) | 1021 | (replace "clang" clang-12) |
| @@ -1952,7 +1957,6 @@ which highly leverage existing libraries in the larger LLVM project.") | |||
| 1952 | (build-system cmake-build-system) | 1957 | (build-system cmake-build-system) |
| 1953 | (arguments | 1958 | (arguments |
| 1954 | (list | 1959 | (list |
| 1955 | #:test-target "check-cxx" | ||
| 1956 | #:tests? #f ;prohibitively expensive to run | 1960 | #:tests? #f ;prohibitively expensive to run |
| 1957 | #:implicit-inputs? #f ;to avoid conflicting GCC headers | 1961 | #:implicit-inputs? #f ;to avoid conflicting GCC headers |
| 1958 | #:configure-flags | 1962 | #:configure-flags |
| @@ -1965,11 +1969,18 @@ which highly leverage existing libraries in the larger LLVM project.") | |||
| 1965 | ;; as RUNPATH and don't attempt to patch it. | 1969 | ;; as RUNPATH and don't attempt to patch it. |
| 1966 | ;; See also: https://gitlab.kitware.com/cmake/cmake/-/issues/22963 | 1970 | ;; See also: https://gitlab.kitware.com/cmake/cmake/-/issues/22963 |
| 1967 | "-DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE") | 1971 | "-DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE") |
| 1972 | #:modules '((guix build cmake-build-system) | ||
| 1973 | ((guix build gnu-build-system) #:prefix gnu:) | ||
| 1974 | (guix build utils)) | ||
| 1968 | #:phases | 1975 | #:phases |
| 1969 | #~(modify-phases %standard-phases | 1976 | #~(modify-phases %standard-phases |
| 1970 | (add-after 'unpack 'enter-subdirectory | 1977 | (add-after 'unpack 'enter-subdirectory |
| 1971 | (lambda _ | 1978 | (lambda _ |
| 1972 | (chdir "runtimes")))))) | 1979 | (chdir "runtimes"))) |
| 1980 | (replace 'check | ||
| 1981 | (lambda* (#:rest args) | ||
| 1982 | (apply (assoc-ref gnu:%standard-phases 'check) | ||
| 1983 | #:test-target "check-cxx" args)))))) | ||
| 1973 | (native-inputs | 1984 | (native-inputs |
| 1974 | (modify-inputs (standard-packages) | 1985 | (modify-inputs (standard-packages) |
| 1975 | ;; Remove GCC from the build environment, to avoid its C++ | 1986 | ;; Remove GCC from the build environment, to avoid its C++ |
| @@ -2511,7 +2522,6 @@ LLVM bitcode files.") | |||
| 2511 | ;; FIXME: 79 tests fail, out of ~200 (see: | 2522 | ;; FIXME: 79 tests fail, out of ~200 (see: |
| 2512 | ;; https://github.com/root-project/cling/issues/534) | 2523 | ;; https://github.com/root-project/cling/issues/534) |
| 2513 | #:tests? #f | 2524 | #:tests? #f |
| 2514 | #:test-target "check-cling" | ||
| 2515 | #:configure-flags | 2525 | #:configure-flags |
| 2516 | #~(list (string-append "-DCLING_CXX_PATH=" | 2526 | #~(list (string-append "-DCLING_CXX_PATH=" |
| 2517 | (search-input-file %build-inputs "bin/g++")) | 2527 | (search-input-file %build-inputs "bin/g++")) |
diff --git a/gnu/packages/lua.scm b/gnu/packages/lua.scm index 59598f20c55..7ebd79e6f66 100644 --- a/gnu/packages/lua.scm +++ b/gnu/packages/lua.scm | |||
| @@ -984,7 +984,6 @@ spirit of the Lua C API and thus degrade performance.") | |||
| 984 | `(#:configure-flags | 984 | `(#:configure-flags |
| 985 | ;; lua pc file in CMakeLists.txt is lua5.3.pc | 985 | ;; lua pc file in CMakeLists.txt is lua5.3.pc |
| 986 | '("-DLUA_PC_CFG=lua;lua-5.3;lua-5.1") | 986 | '("-DLUA_PC_CFG=lua;lua-5.3;lua-5.1") |
| 987 | #:test-target "all" | ||
| 988 | #:phases | 987 | #:phases |
| 989 | ;; This is a header only library | 988 | ;; This is a header only library |
| 990 | (modify-phases %standard-phases | 989 | (modify-phases %standard-phases |
diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm index 1865b228950..51e53772cf9 100644 --- a/gnu/packages/machine-learning.scm +++ b/gnu/packages/machine-learning.scm | |||
| @@ -4888,7 +4888,6 @@ the tensors contained therein.") | |||
| 4888 | (build-system cmake-build-system) | 4888 | (build-system cmake-build-system) |
| 4889 | (arguments | 4889 | (arguments |
| 4890 | (list | 4890 | (list |
| 4891 | #:test-target "cpptest" | ||
| 4892 | #:configure-flags | 4891 | #:configure-flags |
| 4893 | #~(list "-DUSE_OPENCL=ON" | 4892 | #~(list "-DUSE_OPENCL=ON" |
| 4894 | "-DUSE_VULKAN=ON" | 4893 | "-DUSE_VULKAN=ON" |
| @@ -4908,11 +4907,11 @@ the tensors contained therein.") | |||
| 4908 | #:phases | 4907 | #:phases |
| 4909 | #~(modify-phases %standard-phases | 4908 | #~(modify-phases %standard-phases |
| 4910 | (replace 'check | 4909 | (replace 'check |
| 4911 | (lambda* (#:key source test-target tests? #:allow-other-keys) | 4910 | (lambda* (#:key source tests? #:allow-other-keys) |
| 4912 | (when tests? | 4911 | (when tests? |
| 4913 | (begin | 4912 | (begin |
| 4914 | (invoke "make" "-j" | 4913 | (invoke "make" "-j" |
| 4915 | (number->string (parallel-job-count)) test-target) | 4914 | (number->string (parallel-job-count)) "cpptest") |
| 4916 | ;; Disable below the actual run of the tests because | 4915 | ;; Disable below the actual run of the tests because |
| 4917 | ;; several fail due to platform variations (for example, | 4916 | ;; several fail due to platform variations (for example, |
| 4918 | ;; fp16 tests fail because not supported on CPUs). | 4917 | ;; fp16 tests fail because not supported on CPUs). |
| @@ -6384,7 +6383,6 @@ Jax, PyTorch and TensorFlow — with a seamless integration between them.") | |||
| 6384 | (build-system cmake-build-system) | 6383 | (build-system cmake-build-system) |
| 6385 | (arguments | 6384 | (arguments |
| 6386 | (list | 6385 | (list |
| 6387 | #:test-target "ctranslate2_test" | ||
| 6388 | ;; XXX: mkl and openblas seem incompatible. | 6386 | ;; XXX: mkl and openblas seem incompatible. |
| 6389 | #:configure-flags `(list "-DBUILD_TESTS=ON" | 6387 | #:configure-flags `(list "-DBUILD_TESTS=ON" |
| 6390 | "-DWITH_ACCELERATE=OFF" | 6388 | "-DWITH_ACCELERATE=OFF" |
| @@ -6393,7 +6391,16 @@ Jax, PyTorch and TensorFlow — with a seamless integration between them.") | |||
| 6393 | "-DWITH_CUDA=OFF" | 6391 | "-DWITH_CUDA=OFF" |
| 6394 | "-DWITH_CUDNN=OFF" | 6392 | "-DWITH_CUDNN=OFF" |
| 6395 | "-DWITH_MKL=OFF" | 6393 | "-DWITH_MKL=OFF" |
| 6396 | "-DWITH_OPENBLAS=ON"))) | 6394 | "-DWITH_OPENBLAS=ON") |
| 6395 | #:modules '((guix build cmake-build-system) | ||
| 6396 | ((guix build gnu-build-system) #:prefix gnu:) | ||
| 6397 | (guix build utils)) | ||
| 6398 | #:phases | ||
| 6399 | #~(modify-phases %standard-phases | ||
| 6400 | (replace 'check | ||
| 6401 | (lambda* (#:rest args) | ||
| 6402 | (apply (assoc-ref gnu:%standard-phases 'check) | ||
| 6403 | #:test-target "ctranslate2_test" args)))))) | ||
| 6397 | (native-inputs (list libomp | 6404 | (native-inputs (list libomp |
| 6398 | cxxopts | 6405 | cxxopts |
| 6399 | spdlog | 6406 | spdlog |
diff --git a/gnu/packages/markup.scm b/gnu/packages/markup.scm index 85a9db1a3cf..a85b6958836 100644 --- a/gnu/packages/markup.scm +++ b/gnu/packages/markup.scm | |||
| @@ -485,8 +485,6 @@ convert HTML to Markdown.") | |||
| 485 | (base32 | 485 | (base32 |
| 486 | "0llj68l9rxdhral0zyv0bz6yzqsxgq8d3730082sl3kx78lsq5qq")))) | 486 | "0llj68l9rxdhral0zyv0bz6yzqsxgq8d3730082sl3kx78lsq5qq")))) |
| 487 | (build-system cmake-build-system) | 487 | (build-system cmake-build-system) |
| 488 | (arguments | ||
| 489 | '(#:test-target "test")) | ||
| 490 | (native-inputs (list python)) | 488 | (native-inputs (list python)) |
| 491 | (synopsis "CommonMark Markdown reference implementation") | 489 | (synopsis "CommonMark Markdown reference implementation") |
| 492 | (description | 490 | (description |
| @@ -543,8 +541,7 @@ CommonMark C library libcmark. It closely follows the original API.") | |||
| 543 | (base32 | 541 | (base32 |
| 544 | "1apy9i76rgs0bmgdlpjszv0fpqhlap2s12m68wvnsv8j3fsqc90y")))) | 542 | "1apy9i76rgs0bmgdlpjszv0fpqhlap2s12m68wvnsv8j3fsqc90y")))) |
| 545 | (arguments | 543 | (arguments |
| 546 | (list #:test-target "test" | 544 | (list #:phases #~(modify-phases %standard-phases |
| 547 | #:phases #~(modify-phases %standard-phases | ||
| 548 | (add-after 'install 'install-config | 545 | (add-after 'install 'install-config |
| 549 | (lambda _ | 546 | (lambda _ |
| 550 | ;; XXX: cmark-gfm-core-extensions.h includes this file. | 547 | ;; XXX: cmark-gfm-core-extensions.h includes this file. |
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 5fade6baba9..c85800447b1 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm | |||
| @@ -481,8 +481,7 @@ enough to be used effectively as a scientific calculator.") | |||
| 481 | "0csy4pjw1p8rp6g5qxi2h0ychhhp1fldv7gb761627fs2mclw9gv")))) | 481 | "0csy4pjw1p8rp6g5qxi2h0ychhhp1fldv7gb761627fs2mclw9gv")))) |
| 482 | (build-system cmake-build-system) | 482 | (build-system cmake-build-system) |
| 483 | (arguments | 483 | (arguments |
| 484 | '(#:test-target "test" | 484 | '(#:configure-flags '("-DBUILD_SHARED_LIBS=ON" |
| 485 | #:configure-flags '("-DBUILD_SHARED_LIBS=ON" | ||
| 486 | "-DBUILD_TESTING=ON"))) | 485 | "-DBUILD_TESTING=ON"))) |
| 487 | (synopsis "Conversion routines for IEEE doubles") | 486 | (synopsis "Conversion routines for IEEE doubles") |
| 488 | (description | 487 | (description |
| @@ -10332,7 +10331,6 @@ community detection algorithm.") | |||
| 10332 | (arguments | 10331 | (arguments |
| 10333 | (list | 10332 | (list |
| 10334 | #:build-type "Release" | 10333 | #:build-type "Release" |
| 10335 | #:test-target "test" | ||
| 10336 | #:configure-flags #~(list "-DENABLE_TESTING=ON" "-DSTATS=ON") | 10334 | #:configure-flags #~(list "-DENABLE_TESTING=ON" "-DSTATS=ON") |
| 10337 | #:phases | 10335 | #:phases |
| 10338 | #~(modify-phases %standard-phases | 10336 | #~(modify-phases %standard-phases |
| @@ -10648,16 +10646,24 @@ projects up to the certification of critical software.") | |||
| 10648 | (base32 "0c88gc72j3zggyk4yrrip6i0v7xkx97l140vpy3xhxs2i7xy1461")))) | 10646 | (base32 "0c88gc72j3zggyk4yrrip6i0v7xkx97l140vpy3xhxs2i7xy1461")))) |
| 10649 | (build-system cmake-build-system) | 10647 | (build-system cmake-build-system) |
| 10650 | (arguments | 10648 | (arguments |
| 10651 | `(#:configure-flags '("-DBUILD_DOC=ON" | 10649 | (list |
| 10652 | "-DBUILD_TESTING=ON") | 10650 | #:configure-flags #~(list "-DBUILD_DOC=ON" |
| 10653 | ;; The default "check" target also includes examples and benchmarks. | 10651 | "-DBUILD_TESTING=ON") |
| 10654 | #:test-target "check-testsuite" | 10652 | #:modules '((guix build cmake-build-system) |
| 10655 | #:phases | 10653 | ((guix build gnu-build-system) #:prefix gnu:) |
| 10656 | (modify-phases %standard-phases | 10654 | (guix build utils)) |
| 10657 | (add-after 'build 'build-doc | 10655 | #:phases |
| 10658 | (lambda _ | 10656 | #~(modify-phases %standard-phases |
| 10659 | (invoke "make" "-j" (number->string (parallel-job-count)) | 10657 | (add-after 'build 'build-doc |
| 10660 | "blitz-doc")))))) | 10658 | (lambda _ |
| 10659 | (invoke "make" "-j" (number->string (parallel-job-count)) | ||
| 10660 | "blitz-doc"))) | ||
| 10661 | (replace 'check | ||
| 10662 | (lambda* (#:rest args) | ||
| 10663 | (apply (assoc-ref gnu:%standard-phases 'check) | ||
| 10664 | ;; The default "check" target also includes examples and | ||
| 10665 | ;; benchmarks. | ||
| 10666 | #:test-target "check-testsuite" args)))))) | ||
| 10661 | (native-inputs | 10667 | (native-inputs |
| 10662 | (list python texinfo)) | 10668 | (list python texinfo)) |
| 10663 | (synopsis "C++ template class library for multidimensional arrays") | 10669 | (synopsis "C++ template class library for multidimensional arrays") |
diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm index c08aed16bbc..77deb1da269 100644 --- a/gnu/packages/messaging.scm +++ b/gnu/packages/messaging.scm | |||
| @@ -2875,11 +2875,18 @@ asynchronicity.") | |||
| 2875 | (base32 | 2875 | (base32 |
| 2876 | "06y3mh1d1mks6d0ynxp3980g712nkf8l5nyljpybsk326b246hg9")))) | 2876 | "06y3mh1d1mks6d0ynxp3980g712nkf8l5nyljpybsk326b246hg9")))) |
| 2877 | (arguments | 2877 | (arguments |
| 2878 | `(#:test-target "tests" | 2878 | (list |
| 2879 | #:phases | 2879 | #:modules '((guix build cmake-build-system) |
| 2880 | (modify-phases %standard-phases | 2880 | ((guix build gnu-build-system) #:prefix gnu:) |
| 2881 | (add-after 'unpack 'change-directory | 2881 | (guix build utils)) |
| 2882 | (lambda _ (chdir "cpp")))))) | 2882 | #:phases |
| 2883 | #~(modify-phases %standard-phases | ||
| 2884 | (add-after 'unpack 'change-directory | ||
| 2885 | (lambda _ (chdir "cpp"))) | ||
| 2886 | (replace 'check | ||
| 2887 | (lambda* (#:rest args) | ||
| 2888 | (apply (assoc-ref gnu:%standard-phases 'check) | ||
| 2889 | #:test-target "tests" args)))))) | ||
| 2883 | (build-system cmake-build-system) | 2890 | (build-system cmake-build-system) |
| 2884 | (native-inputs | 2891 | (native-inputs |
| 2885 | (list googletest pkg-config)) | 2892 | (list googletest pkg-config)) |
diff --git a/gnu/packages/mp3.scm b/gnu/packages/mp3.scm index d2b97372d10..885e9fc68b7 100644 --- a/gnu/packages/mp3.scm +++ b/gnu/packages/mp3.scm | |||
| @@ -668,8 +668,7 @@ command-line tool.") | |||
| 668 | (arguments | 668 | (arguments |
| 669 | `(#:tests? #f ; tests require googletest *sources* | 669 | `(#:tests? #f ; tests require googletest *sources* |
| 670 | ;;#:configure-flags '("-DBUILD_TESTS=ON") ; for building the tests | 670 | ;;#:configure-flags '("-DBUILD_TESTS=ON") ; for building the tests |
| 671 | #:configure-flags '("-DBUILD_TOOLS=ON") ; for fpcalc | 671 | #:configure-flags '("-DBUILD_TOOLS=ON"))) ; for fpcalc |
| 672 | #:test-target "check")) | ||
| 673 | (inputs | 672 | (inputs |
| 674 | ;; requires one of FFmpeg (prefered), FFTW3 or vDSP | 673 | ;; requires one of FFmpeg (prefered), FFTW3 or vDSP |
| 675 | ;; use the same ffmpeg version as for acoustid-fingerprinter | 674 | ;; use the same ffmpeg version as for acoustid-fingerprinter |
diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm index ecbbe456098..14c10372999 100644 --- a/gnu/packages/music.scm +++ b/gnu/packages/music.scm | |||
| @@ -537,27 +537,34 @@ enables iPod support in music players such as Clementine.") | |||
| 537 | #:directories? #t)))))) | 537 | #:directories? #t)))))) |
| 538 | (build-system cmake-build-system) | 538 | (build-system cmake-build-system) |
| 539 | (arguments | 539 | (arguments |
| 540 | '(#:test-target "clementine_test" | 540 | (list |
| 541 | #:configure-flags | 541 | #:configure-flags |
| 542 | (list ;; Requires unpackaged "projectm" | 542 | #~(list ;; Requires unpackaged "projectm" |
| 543 | "-DENABLE_VISUALISATIONS=OFF" | 543 | "-DENABLE_VISUALISATIONS=OFF" |
| 544 | ;; Otherwise it may try to download a non-free library at run-time. | 544 | ;; Otherwise it may try to download a non-free library at run-time. |
| 545 | ;; TODO In an origin snippet, remove the code that performs the | 545 | ;; TODO In an origin snippet, remove the code that performs the |
| 546 | ;; download. | 546 | ;; download. |
| 547 | "-DHAVE_SPOTIFY_DOWNLOADER=FALSE" | 547 | "-DHAVE_SPOTIFY_DOWNLOADER=FALSE" |
| 548 | ;; Clementine checks that the taglib version is higher than 1.11, | 548 | ;; Clementine checks that the taglib version is higher than 1.11, |
| 549 | ;; because of https://github.com/taglib/taglib/issues/864. Remove | 549 | ;; because of https://github.com/taglib/taglib/issues/864. Remove |
| 550 | ;; this flag when 1.12 is released. | 550 | ;; this flag when 1.12 is released. |
| 551 | "-DUSE_SYSTEM_TAGLIB=TRUE") | 551 | "-DUSE_SYSTEM_TAGLIB=TRUE") |
| 552 | #:phases | 552 | #:modules '((guix build cmake-build-system) |
| 553 | (modify-phases %standard-phases | 553 | ((guix build gnu-build-system) #:prefix gnu:) |
| 554 | (add-after 'install 'wrap-program | 554 | (guix build utils)) |
| 555 | (lambda* (#:key inputs outputs #:allow-other-keys) | 555 | #:phases |
| 556 | (let ((out (assoc-ref outputs "out")) | 556 | #~(modify-phases %standard-phases |
| 557 | (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH"))) | 557 | (replace 'check |
| 558 | (wrap-program (string-append out "/bin/clementine") | 558 | (lambda* (#:rest args) |
| 559 | `("GST_PLUGIN_SYSTEM_PATH" ":" prefix | 559 | (apply (assoc-ref gnu:%standard-phases 'check) |
| 560 | (,gst-plugin-path))))))))) | 560 | #:test-target "clementine_test" args))) |
| 561 | (add-after 'install 'wrap-program | ||
| 562 | (lambda* (#:key inputs outputs #:allow-other-keys) | ||
| 563 | (let ((out (assoc-ref outputs "out")) | ||
| 564 | (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH"))) | ||
| 565 | (wrap-program (string-append out "/bin/clementine") | ||
| 566 | `("GST_PLUGIN_SYSTEM_PATH" ":" prefix | ||
| 567 | (,gst-plugin-path))))))))) | ||
| 561 | (native-inputs | 568 | (native-inputs |
| 562 | (list gettext-minimal | 569 | (list gettext-minimal |
| 563 | googletest | 570 | googletest |
| @@ -769,24 +776,31 @@ Winamp/XMMS skins.") | |||
| 769 | #:directories? #t)))))) | 776 | #:directories? #t)))))) |
| 770 | (build-system qt-build-system) | 777 | (build-system qt-build-system) |
| 771 | (arguments | 778 | (arguments |
| 772 | `(#:qtbase ,qtbase | 779 | (list |
| 773 | #:test-target "run_strawberry_tests" | 780 | #:qtbase qtbase |
| 774 | #:configure-flags | 781 | #:configure-flags |
| 775 | `("-DBUILD_WITH_QT6=ON") | 782 | #~(list "-DBUILD_WITH_QT6=ON") |
| 776 | #:phases | 783 | #:modules '((guix build qt-build-system) |
| 777 | (modify-phases %standard-phases | 784 | ((guix build gnu-build-system) #:prefix gnu:) |
| 778 | (add-after 'install 'wrap-program | 785 | (guix build utils)) |
| 779 | (lambda* (#:key outputs #:allow-other-keys) | 786 | #:phases |
| 780 | (wrap-program (search-input-file outputs "bin/strawberry") | 787 | #~(modify-phases %standard-phases |
| 781 | `("GST_PLUGIN_SYSTEM_PATH" ":" prefix | 788 | (add-before 'check 'pre-check |
| 782 | (,(getenv "GST_PLUGIN_SYSTEM_PATH")))))) | 789 | (lambda* (#:key native-inputs inputs #:allow-other-keys) |
| 783 | (add-before 'check 'pre-check | 790 | (system (format #f "~a :1 &" |
| 784 | (lambda* (#:key native-inputs inputs #:allow-other-keys) | 791 | (search-input-file (or native-inputs inputs) |
| 785 | (system (format #f "~a :1 &" | 792 | "bin/Xvfb"))) |
| 786 | (search-input-file (or native-inputs inputs) | 793 | (setenv "DISPLAY" ":1") |
| 787 | "bin/Xvfb"))) | 794 | (setenv "HOME" (getcwd)))) |
| 788 | (setenv "DISPLAY" ":1") | 795 | (replace 'check |
| 789 | (setenv "HOME" (getcwd))))))) | 796 | (lambda* (#:rest args) |
| 797 | (apply (assoc-ref gnu:%standard-phases 'check) | ||
| 798 | #:test-target "run_strawberry_tests" args))) | ||
| 799 | (add-after 'install 'wrap-program | ||
| 800 | (lambda* (#:key outputs #:allow-other-keys) | ||
| 801 | (wrap-program (search-input-file outputs "bin/strawberry") | ||
| 802 | `("GST_PLUGIN_SYSTEM_PATH" ":" prefix | ||
| 803 | (,(getenv "GST_PLUGIN_SYSTEM_PATH"))))))))) | ||
| 790 | (native-inputs | 804 | (native-inputs |
| 791 | (list bash-minimal | 805 | (list bash-minimal |
| 792 | gettext-minimal | 806 | gettext-minimal |
| @@ -6083,7 +6097,14 @@ for the DSSI Soft Synth Interface. A brief list of features: | |||
| 6083 | version ".tar.gz")) | 6097 | version ".tar.gz")) |
| 6084 | (sha256 | 6098 | (sha256 |
| 6085 | (base32 "10mj1hwv1598nsi7jw5di0pfcwk36g4rr6kl7gi45m7ak8f8ypnx")))) | 6099 | (base32 "10mj1hwv1598nsi7jw5di0pfcwk36g4rr6kl7gi45m7ak8f8ypnx")))) |
| 6086 | (arguments `(#:test-target "check")) | 6100 | (arguments |
| 6101 | (list | ||
| 6102 | #:modules '((guix build cmake-build-system) | ||
| 6103 | ((guix build gnu-build-system) #:prefix gnu:) | ||
| 6104 | (guix build utils)) | ||
| 6105 | #:phases | ||
| 6106 | #~(modify-phases %standard-phases | ||
| 6107 | (replace 'check (assoc-ref gnu:%standard-phases 'check))))) | ||
| 6087 | (build-system cmake-build-system) | 6108 | (build-system cmake-build-system) |
| 6088 | (home-page "https://musicbrainz.org/doc/libdiscid") | 6109 | (home-page "https://musicbrainz.org/doc/libdiscid") |
| 6089 | (synopsis "Disc id reader library") | 6110 | (synopsis "Disc id reader library") |
| @@ -7971,28 +7992,31 @@ midi devices to JACK midi devices.") | |||
| 7971 | (file-name (git-file-name name version)))) | 7992 | (file-name (git-file-name name version)))) |
| 7972 | (arguments | 7993 | (arguments |
| 7973 | (list | 7994 | (list |
| 7974 | #:test-target "check" | 7995 | #:modules '((guix build cmake-build-system) |
| 7996 | ((guix build gnu-build-system) #:prefix gnu:) | ||
| 7997 | (guix build utils)) | ||
| 7975 | #:phases | 7998 | #:phases |
| 7976 | #~(modify-phases %standard-phases | 7999 | #~(modify-phases %standard-phases |
| 7977 | ;; This package does not use the perl-build-system, so we have to | 8000 | ;; This package does not use the perl-build-system, so we have to |
| 7978 | ;; manually set up the Perl environment used by the test suite. | 8001 | ;; manually set up the Perl environment used by the test suite. |
| 7979 | (add-before 'check 'setup-perl-environment | 8002 | (add-before 'check 'setup-perl-environment |
| 7980 | (lambda* (#:key inputs #:allow-other-keys) | 8003 | (lambda* (#:key inputs #:allow-other-keys) |
| 7981 | (let* ((perl-list-moreutils-lib | 8004 | (let* ((perl-list-moreutils-lib |
| 7982 | (string-append #$(this-package-native-input "perl-list-moreutils") | 8005 | (string-append #$(this-package-native-input "perl-list-moreutils") |
| 7983 | "/lib/perl5/site_perl/" | 8006 | "/lib/perl5/site_perl/" |
| 7984 | #$(package-version perl))) | 8007 | #$(package-version perl))) |
| 7985 | (perl-exporter-tiny-lib | 8008 | (perl-exporter-tiny-lib |
| 7986 | (string-append #$(this-package-native-input "perl-exporter-tiny") | 8009 | (string-append #$(this-package-native-input "perl-exporter-tiny") |
| 7987 | "/lib/perl5/site_perl/" | 8010 | "/lib/perl5/site_perl/" |
| 7988 | #$(package-version perl))) | 8011 | #$(package-version perl))) |
| 7989 | (perl-test-deep-lib | 8012 | (perl-test-deep-lib |
| 7990 | (string-append #$(this-package-native-input "perl-test-deep") | 8013 | (string-append #$(this-package-native-input "perl-test-deep") |
| 7991 | "/lib/perl5/site_perl/" | 8014 | "/lib/perl5/site_perl/" |
| 7992 | #$(package-version perl)))) | 8015 | #$(package-version perl)))) |
| 7993 | (setenv "PERL5LIB" (string-append perl-list-moreutils-lib ":" | 8016 | (setenv "PERL5LIB" (string-append perl-list-moreutils-lib ":" |
| 7994 | perl-exporter-tiny-lib ":" | 8017 | perl-exporter-tiny-lib ":" |
| 7995 | perl-test-deep-lib)))))))) | 8018 | perl-test-deep-lib))))) |
| 8019 | (replace 'check (assoc-ref gnu:%standard-phases 'check))))) | ||
| 7996 | (build-system cmake-build-system) | 8020 | (build-system cmake-build-system) |
| 7997 | (inputs | 8021 | (inputs |
| 7998 | (list libogg)) | 8022 | (list libogg)) |
diff --git a/gnu/packages/opencog.scm b/gnu/packages/opencog.scm index 998d9b47ae5..722cc0ffb7f 100644 --- a/gnu/packages/opencog.scm +++ b/gnu/packages/opencog.scm | |||
| @@ -29,6 +29,7 @@ | |||
| 29 | #:use-module (gnu packages python) | 29 | #:use-module (gnu packages python) |
| 30 | #:use-module ((guix licenses) #:prefix license:) | 30 | #:use-module ((guix licenses) #:prefix license:) |
| 31 | #:use-module (guix packages) | 31 | #:use-module (guix packages) |
| 32 | #:use-module (guix gexp) | ||
| 32 | #:use-module (guix git-download) | 33 | #:use-module (guix git-download) |
| 33 | #:use-module (guix build-system cmake) | 34 | #:use-module (guix build-system cmake) |
| 34 | #:use-module (guix utils)) | 35 | #:use-module (guix utils)) |
| @@ -52,7 +53,21 @@ | |||
| 52 | "1ymmcrinp0prlxsmxmwdjjl4kgaj7wzq39d5b1q2apgg94yfdhqb")))) | 53 | "1ymmcrinp0prlxsmxmwdjjl4kgaj7wzq39d5b1q2apgg94yfdhqb")))) |
| 53 | (build-system cmake-build-system) | 54 | (build-system cmake-build-system) |
| 54 | (arguments | 55 | (arguments |
| 55 | `(#:test-target "tests")) | 56 | (list |
| 57 | #:modules '((guix build cmake-build-system) | ||
| 58 | ((guix build gnu-build-system) #:prefix gnu:) | ||
| 59 | (guix build utils)) | ||
| 60 | #:phases | ||
| 61 | #~(modify-phases %standard-phases | ||
| 62 | (replace 'check | ||
| 63 | (lambda* (#:key tests? #:allow-other-keys #:rest args) | ||
| 64 | (when tests? | ||
| 65 | (apply (assoc-ref gnu:%standard-phases 'check) | ||
| 66 | #:tests? tests? #:test-target "tests" args) | ||
| 67 | (for-each | ||
| 68 | (lambda (file) | ||
| 69 | (invoke file)) | ||
| 70 | (find-files "tests" "UTest$")))))))) | ||
| 56 | (inputs | 71 | (inputs |
| 57 | (list boost)) | 72 | (list boost)) |
| 58 | (native-inputs | 73 | (native-inputs |
| @@ -84,14 +99,29 @@ utilities use for typical programming tasks in multiple OpenCog projects.") | |||
| 84 | "0vxzhszb0z8081li38hid07a5axzxyflsmq1mcn4b1k4z1j8ggch")))) | 99 | "0vxzhszb0z8081li38hid07a5axzxyflsmq1mcn4b1k4z1j8ggch")))) |
| 85 | (build-system cmake-build-system) | 100 | (build-system cmake-build-system) |
| 86 | (arguments | 101 | (arguments |
| 87 | `(#:test-target "tests" | 102 | (list |
| 88 | #:configure-flags | 103 | #:configure-flags |
| 89 | (list (string-append "-DGUILE_INCLUDE_DIR=" | 104 | #~(list (string-append "-DGUILE_INCLUDE_DIR=" #$guile-2.2 |
| 90 | (assoc-ref %build-inputs "guile") | 105 | "/include/guile/2.2/") |
| 91 | "/include/guile/2.2/") | 106 | (string-append "-DGUILE_SITE_DIR=" #$output |
| 92 | (string-append "-DGUILE_SITE_DIR=" | 107 | "/share/guile/site/2.2/")) |
| 93 | (assoc-ref %outputs "out") | 108 | #:modules '((guix build cmake-build-system) |
| 94 | "/share/guile/site/2.2/")))) | 109 | ((guix build gnu-build-system) #:prefix gnu:) |
| 110 | (guix build utils)) | ||
| 111 | #:phases | ||
| 112 | #~(modify-phases %standard-phases | ||
| 113 | (replace 'check | ||
| 114 | (lambda* (#:key tests? #:allow-other-keys #:rest args) | ||
| 115 | (when tests? | ||
| 116 | (apply (assoc-ref gnu:%standard-phases 'check) | ||
| 117 | #:tests? tests? #:test-target "tests" args) | ||
| 118 | ;; Failing tests. | ||
| 119 | (for-each delete-file | ||
| 120 | '("tests/matrix/VectorAPIUTest" | ||
| 121 | "tests/scm/MultiAtomSpaceUTest")) | ||
| 122 | (setenv "GUILE_LOAD_PATH" ".:opencog/scm") | ||
| 123 | (for-each invoke | ||
| 124 | (find-files "tests" "UTest$")))))))) | ||
| 95 | (inputs | 125 | (inputs |
| 96 | (list boost cogutil gmp guile-2.2 postgresql)) | 126 | (list boost cogutil gmp guile-2.2 postgresql)) |
| 97 | (native-inputs | 127 | (native-inputs |
| @@ -126,14 +156,26 @@ features not otherwise available.") | |||
| 126 | "1h0vcxb6n5dc654xqinqcxc7dxwcs6bsywgir8rhrqiykk760mzl")))) | 156 | "1h0vcxb6n5dc654xqinqcxc7dxwcs6bsywgir8rhrqiykk760mzl")))) |
| 127 | (build-system cmake-build-system) | 157 | (build-system cmake-build-system) |
| 128 | (arguments | 158 | (arguments |
| 129 | `(#:test-target "tests" | 159 | (list |
| 130 | #:configure-flags | 160 | #:configure-flags |
| 131 | (list (string-append "-DGUILE_INCLUDE_DIR=" | 161 | #~(list (string-append "-DGUILE_INCLUDE_DIR=" #$guile-2.2 |
| 132 | (assoc-ref %build-inputs "guile") | 162 | "/include/guile/2.2/") |
| 133 | "/include/guile/2.2/") | 163 | (string-append "-DGUILE_SITE_DIR=" #$output |
| 134 | (string-append "-DGUILE_SITE_DIR=" | 164 | "/share/guile/site/2.2/")) |
| 135 | (assoc-ref %outputs "out") | 165 | #:modules '((guix build cmake-build-system) |
| 136 | "/share/guile/site/2.2/")))) | 166 | ((guix build gnu-build-system) #:prefix gnu:) |
| 167 | (guix build utils)) | ||
| 168 | #:phases | ||
| 169 | #~(modify-phases %standard-phases | ||
| 170 | (replace 'check | ||
| 171 | (lambda* (#:key tests? #:allow-other-keys #:rest args) | ||
| 172 | (when tests? | ||
| 173 | (apply (assoc-ref gnu:%standard-phases 'check) | ||
| 174 | #:tests? tests? #:test-target "tests" args) | ||
| 175 | ;; Failing test. | ||
| 176 | (delete-file "tests/shell/ShellUTest") | ||
| 177 | (for-each invoke | ||
| 178 | (find-files "tests" "UTest$")))))))) | ||
| 137 | (inputs | 179 | (inputs |
| 138 | (list atomspace boost cogutil gmp guile-2.2)) | 180 | (list atomspace boost cogutil gmp guile-2.2)) |
| 139 | (native-inputs | 181 | (native-inputs |
| @@ -164,15 +206,29 @@ OpenCog framework.") | |||
| 164 | "0sndslphicv6w9qpag168rqkxq5sf71l5qbfx6zhsd5bzlf5fhwv")))) | 206 | "0sndslphicv6w9qpag168rqkxq5sf71l5qbfx6zhsd5bzlf5fhwv")))) |
| 165 | (build-system cmake-build-system) | 207 | (build-system cmake-build-system) |
| 166 | (arguments | 208 | (arguments |
| 167 | `(#:test-target "tests" | 209 | (list |
| 168 | #:configure-flags | 210 | #:configure-flags |
| 169 | (list | 211 | #~(list (string-append "-DGUILE_INCLUDE_DIR=" #$guile-2.2 |
| 170 | (string-append "-DGUILE_INCLUDE_DIR=" | 212 | "/include/guile/2.2/") |
| 171 | (assoc-ref %build-inputs "guile") | 213 | (string-append "-DGUILE_SITE_DIR=" #$output |
| 172 | "/include/guile/2.2/") | 214 | "/share/guile/site/2.2/")) |
| 173 | (string-append "-DGUILE_SITE_DIR=" | 215 | #:modules '((guix build cmake-build-system) |
| 174 | (assoc-ref %outputs "out") | 216 | ((guix build gnu-build-system) #:prefix gnu:) |
| 175 | "/share/guile/site/2.2/")))) | 217 | (guix build utils)) |
| 218 | #:phases | ||
| 219 | #~(modify-phases %standard-phases | ||
| 220 | (replace 'check | ||
| 221 | (lambda* (#:key tests? #:allow-other-keys #:rest args) | ||
| 222 | (when tests? | ||
| 223 | (apply (assoc-ref gnu:%standard-phases 'check) | ||
| 224 | #:tests? tests? #:test-target "tests" args) | ||
| 225 | ;; Failing tests. | ||
| 226 | (for-each delete-file | ||
| 227 | '("tests/attention/AttentionParamQueryUTest" | ||
| 228 | "tests/attention/HebbianCreationModuleUTest" | ||
| 229 | "tests/attention/ImportanceDiffusionUTest")) | ||
| 230 | (for-each invoke | ||
| 231 | (find-files "tests" "UTest$")))))))) | ||
| 176 | (inputs | 232 | (inputs |
| 177 | (list atomspace | 233 | (list atomspace |
| 178 | boost | 234 | boost |
| @@ -209,15 +265,24 @@ tasks.") | |||
| 209 | "1j8wv910fvrmph370wv5pv2f4bc2s9vl6i7bw3pkmwbdhxkhjbhm")))) | 265 | "1j8wv910fvrmph370wv5pv2f4bc2s9vl6i7bw3pkmwbdhxkhjbhm")))) |
| 210 | (build-system cmake-build-system) | 266 | (build-system cmake-build-system) |
| 211 | (arguments | 267 | (arguments |
| 212 | `(#:test-target "tests" | 268 | (list |
| 213 | #:configure-flags | 269 | #:configure-flags |
| 214 | (list | 270 | #~(list (string-append "-DGUILE_INCLUDE_DIR=" #$guile-2.2 |
| 215 | (string-append "-DGUILE_INCLUDE_DIR=" | 271 | "/include/guile/2.2/") |
| 216 | (assoc-ref %build-inputs "guile") | 272 | (string-append "-DGUILE_SITE_DIR=" #$output |
| 217 | "/include/guile/2.2/") | 273 | "/share/guile/site/2.2/")) |
| 218 | (string-append "-DGUILE_SITE_DIR=" | 274 | #:modules '((guix build cmake-build-system) |
| 219 | (assoc-ref %outputs "out") | 275 | ((guix build gnu-build-system) #:prefix gnu:) |
| 220 | "/share/guile/site/2.2/")))) | 276 | (guix build utils)) |
| 277 | #:phases | ||
| 278 | #~(modify-phases %standard-phases | ||
| 279 | (replace 'check | ||
| 280 | (lambda* (#:key tests? #:allow-other-keys #:rest args) | ||
| 281 | (when tests? | ||
| 282 | (apply (assoc-ref gnu:%standard-phases 'check) | ||
| 283 | #:tests? tests? #:test-target "tests" args) | ||
| 284 | (for-each invoke | ||
| 285 | (find-files "tests" "UTest$")))))))) | ||
| 221 | (inputs | 286 | (inputs |
| 222 | `(("attention" ,attention) | 287 | `(("attention" ,attention) |
| 223 | ("atomspace" ,atomspace) | 288 | ("atomspace" ,atomspace) |
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 851917c26db..b55dfcd7fd7 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm | |||
| @@ -29491,23 +29491,28 @@ user-space file systems in Python.") | |||
| 29491 | ("catch" ,catch2-1) | 29491 | ("catch" ,catch2-1) |
| 29492 | ("eigen" ,eigen))) | 29492 | ("eigen" ,eigen))) |
| 29493 | (arguments | 29493 | (arguments |
| 29494 | `(#:configure-flags | 29494 | (list |
| 29495 | (list (string-append "-DCATCH_INCLUDE_DIR=" | 29495 | #:configure-flags |
| 29496 | (assoc-ref %build-inputs "catch") | 29496 | #~(list (string-append "-DCATCH_INCLUDE_DIR=" |
| 29497 | "/include/catch")) | 29497 | (assoc-ref %build-inputs "catch") |
| 29498 | 29498 | "/include/catch")) | |
| 29499 | #:phases (modify-phases %standard-phases | 29499 | #:modules '((guix build cmake-build-system) |
| 29500 | (add-after 'install 'install-python | 29500 | ((guix build gnu-build-system) #:prefix gnu:) |
| 29501 | (lambda* (#:key outputs #:allow-other-keys) | 29501 | (guix build utils)) |
| 29502 | (let ((out (assoc-ref outputs "out"))) | 29502 | #:phases |
| 29503 | (with-directory-excursion "../source" | 29503 | #~(modify-phases %standard-phases |
| 29504 | (setenv "PYBIND11_USE_CMAKE" "yes") | 29504 | (replace 'check |
| 29505 | (invoke "python" "setup.py" "install" | 29505 | (lambda* (#:rest args) |
| 29506 | "--single-version-externally-managed" | 29506 | (apply (assoc-ref gnu:%standard-phases 'check) args))) |
| 29507 | "--root=/" | 29507 | (add-after 'install 'install-python |
| 29508 | (string-append "--prefix=" out))))))) | 29508 | (lambda* (#:key outputs #:allow-other-keys) |
| 29509 | 29509 | (let ((out (assoc-ref outputs "out"))) | |
| 29510 | #:test-target "check")) | 29510 | (with-directory-excursion "../source" |
| 29511 | (setenv "PYBIND11_USE_CMAKE" "yes") | ||
| 29512 | (invoke "python" "setup.py" "install" | ||
| 29513 | "--single-version-externally-managed" | ||
| 29514 | "--root=/" | ||
| 29515 | (string-append "--prefix=" out))))))))) | ||
| 29511 | (home-page "https://github.com/pybind/pybind11/") | 29516 | (home-page "https://github.com/pybind/pybind11/") |
| 29512 | (synopsis "Seamless operability between C++11 and Python") | 29517 | (synopsis "Seamless operability between C++11 and Python") |
| 29513 | (description | 29518 | (description |
diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm index c6b72c09c35..6770d26ce14 100644 --- a/gnu/packages/qt.scm +++ b/gnu/packages/qt.scm | |||
| @@ -5197,8 +5197,7 @@ window docking system.") | |||
| 5197 | "0nsh6v5k4kdrrhcd6adz947n0dka4rrbx8f8rvm1175545nbi67s")))) | 5197 | "0nsh6v5k4kdrrhcd6adz947n0dka4rrbx8f8rvm1175545nbi67s")))) |
| 5198 | (build-system qt-build-system) | 5198 | (build-system qt-build-system) |
| 5199 | (arguments | 5199 | (arguments |
| 5200 | (list #:test-target "tests" | 5200 | (list #:phases |
| 5201 | #:phases | ||
| 5202 | #~(modify-phases %standard-phases | 5201 | #~(modify-phases %standard-phases |
| 5203 | (add-before 'install 'fix-include-path | 5202 | (add-before 'install 'fix-include-path |
| 5204 | (lambda _ | 5203 | (lambda _ |
diff --git a/gnu/packages/radio.scm b/gnu/packages/radio.scm index f81fa3e68ed..2f57e74a597 100644 --- a/gnu/packages/radio.scm +++ b/gnu/packages/radio.scm | |||
| @@ -147,8 +147,17 @@ | |||
| 147 | (base32 "0i6jhrdswr1wglyb9h39idpz5v9z13yhidvlbj34vxpyngrkhlvs")))) | 147 | (base32 "0i6jhrdswr1wglyb9h39idpz5v9z13yhidvlbj34vxpyngrkhlvs")))) |
| 148 | (build-system cmake-build-system) | 148 | (build-system cmake-build-system) |
| 149 | (arguments | 149 | (arguments |
| 150 | `(#:configure-flags '("-DBUILD_SHARED_LIBS=ON") | 150 | (list |
| 151 | #:test-target "test_all")) | 151 | #:configure-flags #~'("-DBUILD_SHARED_LIBS=ON") |
| 152 | #:modules '((guix build cmake-build-system) | ||
| 153 | ((guix build gnu-build-system) #:prefix gnu:) | ||
| 154 | (guix build utils)) | ||
| 155 | #:phases | ||
| 156 | #~(modify-phases %standard-phases | ||
| 157 | (replace 'check | ||
| 158 | (lambda* (#:rest args) | ||
| 159 | (apply (assoc-ref gnu:%standard-phases 'check) | ||
| 160 | #:test-target "test_all" args)))))) | ||
| 152 | (home-page "https://github.com/quiet/libfec") | 161 | (home-page "https://github.com/quiet/libfec") |
| 153 | (synopsis "Forward error correction algorithms library") | 162 | (synopsis "Forward error correction algorithms library") |
| 154 | (description | 163 | (description |
| @@ -175,12 +184,15 @@ useful in modems implemented with @dfn{digital signal processing} (DSP).") | |||
| 175 | (build-system cmake-build-system) | 184 | (build-system cmake-build-system) |
| 176 | (arguments | 185 | (arguments |
| 177 | (list | 186 | (list |
| 178 | #:test-target "check" | 187 | #:modules '((guix build cmake-build-system) |
| 188 | ((guix build gnu-build-system) #:prefix gnu:) | ||
| 189 | (guix build utils)) | ||
| 179 | #:phases | 190 | #:phases |
| 180 | #~(modify-phases %standard-phases | 191 | #~(modify-phases %standard-phases |
| 181 | (add-after 'build 'build-libfec-compatibility-layer | 192 | (add-after 'build 'build-libfec-compatibility-layer |
| 182 | (lambda _ | 193 | (lambda _ |
| 183 | (invoke "make" "shim"))) | 194 | (invoke "make" "shim"))) |
| 195 | (replace 'check (assoc-ref gnu:%standard-phases 'check)) | ||
| 184 | (add-after 'install 'delete-static-libraries | 196 | (add-after 'install 'delete-static-libraries |
| 185 | (lambda _ | 197 | (lambda _ |
| 186 | (delete-file (string-append #$output "/lib/libcorrect.a")) | 198 | (delete-file (string-append #$output "/lib/libcorrect.a")) |
diff --git a/gnu/packages/rdf.scm b/gnu/packages/rdf.scm index 869b0fc81fd..a9f74490430 100644 --- a/gnu/packages/rdf.scm +++ b/gnu/packages/rdf.scm | |||
| @@ -116,8 +116,7 @@ HTML and JSON.") | |||
| 116 | (list boost ; could also use bundled copy | 116 | (list boost ; could also use bundled copy |
| 117 | zlib)) | 117 | zlib)) |
| 118 | (arguments | 118 | (arguments |
| 119 | `(#:test-target "cl_test" | 119 | `(#:configure-flags '("-DBUILD_CONTRIBS_LIB=ON") |
| 120 | #:configure-flags '("-DBUILD_CONTRIBS_LIB=ON") | ||
| 121 | #:tests? #f)) ; Tests do not compile, as TestIndexSearcher.cpp uses | 120 | #:tests? #f)) ; Tests do not compile, as TestIndexSearcher.cpp uses |
| 122 | ; undeclared usleep. After fixing this, one needs to run | 121 | ; undeclared usleep. After fixing this, one needs to run |
| 123 | ; "make test" in addition to "make cl_test", then | 122 | ; "make test" in addition to "make cl_test", then |
diff --git a/gnu/packages/serialization.scm b/gnu/packages/serialization.scm index 87b621c2a7b..df5f8e379c7 100644 --- a/gnu/packages/serialization.scm +++ b/gnu/packages/serialization.scm | |||
| @@ -437,8 +437,17 @@ that implements both the msgpack and msgpack-rpc specifications.") | |||
| 437 | "1c9i93kr7wvpr01i4wixi9mf991nd3k2adg5fy0vxwwlvvc7dgdw")))) | 437 | "1c9i93kr7wvpr01i4wixi9mf991nd3k2adg5fy0vxwwlvvc7dgdw")))) |
| 438 | (build-system qt-build-system) | 438 | (build-system qt-build-system) |
| 439 | (arguments | 439 | (arguments |
| 440 | (list #:qtbase qtbase | 440 | (list #:modules '((guix build cmake-build-system) |
| 441 | #:test-target "tests")) | 441 | (guix build qt-build-system) |
| 442 | ((guix build gnu-build-system) #:prefix gnu:) | ||
| 443 | (guix build utils)) | ||
| 444 | #:qtbase qtbase | ||
| 445 | #:phases | ||
| 446 | #~(modify-phases %standard-phases | ||
| 447 | (replace 'check | ||
| 448 | (lambda* (#:rest args) | ||
| 449 | (apply (assoc-ref gnu:%standard-phases 'check) | ||
| 450 | #:test-target "tests" args)))))) | ||
| 442 | (home-page "https://github.com/iamantony/qtcsv") | 451 | (home-page "https://github.com/iamantony/qtcsv") |
| 443 | (synopsis "Library for reading and writing CSV files in Qt") | 452 | (synopsis "Library for reading and writing CSV files in Qt") |
| 444 | (description | 453 | (description |
diff --git a/gnu/packages/shells.scm b/gnu/packages/shells.scm index 2bfa4e83aff..0759a563852 100644 --- a/gnu/packages/shells.scm +++ b/gnu/packages/shells.scm | |||
| @@ -143,8 +143,12 @@ direct descendant of NetBSD's Almquist Shell (@command{ash}).") | |||
| 143 | (list doxygen groff ; for 'fish --help' | 143 | (list doxygen groff ; for 'fish --help' |
| 144 | procps)) ; for the test suite | 144 | procps)) ; for the test suite |
| 145 | (arguments | 145 | (arguments |
| 146 | '(#:phases | 146 | (list |
| 147 | (modify-phases %standard-phases | 147 | #:modules '((guix build cmake-build-system) |
| 148 | ((guix build gnu-build-system) #:prefix gnu:) | ||
| 149 | (guix build utils)) | ||
| 150 | #:phases | ||
| 151 | #~(modify-phases %standard-phases | ||
| 148 | (add-after 'unpack 'set-env | 152 | (add-after 'unpack 'set-env |
| 149 | (lambda _ | 153 | (lambda _ |
| 150 | ;; some tests write to $HOME | 154 | ;; some tests write to $HOME |
| @@ -244,6 +248,10 @@ direct descendant of NetBSD's Almquist Shell (@command{ash}).") | |||
| 244 | port) | 248 | port) |
| 245 | (close-port port)) | 249 | (close-port port)) |
| 246 | #t)) | 250 | #t)) |
| 251 | (replace 'check | ||
| 252 | (lambda* (#:rest args) | ||
| 253 | (apply (assoc-ref gnu:%standard-phases 'check) | ||
| 254 | #:test-target "test" args))) | ||
| 247 | ;; Use fish-foreign-env to source /etc/profile. | 255 | ;; Use fish-foreign-env to source /etc/profile. |
| 248 | (add-before 'install 'source-etc-profile | 256 | (add-before 'install 'source-etc-profile |
| 249 | (lambda* (#:key inputs #:allow-other-keys) | 257 | (lambda* (#:key inputs #:allow-other-keys) |
diff --git a/gnu/packages/sync.scm b/gnu/packages/sync.scm index 7adb604ce51..a3234576151 100644 --- a/gnu/packages/sync.scm +++ b/gnu/packages/sync.scm | |||
| @@ -439,7 +439,6 @@ and securely connects to Microsoft OneDrive services.") | |||
| 439 | `(;; The "tests" target is broken and assumes that tests are run in the | 439 | `(;; The "tests" target is broken and assumes that tests are run in the |
| 440 | ;; root directory. | 440 | ;; root directory. |
| 441 | #:tests? #f | 441 | #:tests? #f |
| 442 | #:test-target "tests" | ||
| 443 | #:phases | 442 | #:phases |
| 444 | (modify-phases %standard-phases | 443 | (modify-phases %standard-phases |
| 445 | (add-after 'unpack 'search-$PATH-for-binaries | 444 | (add-after 'unpack 'search-$PATH-for-binaries |
diff --git a/gnu/packages/tls.scm b/gnu/packages/tls.scm index 282ef82aa07..7eefc31928e 100644 --- a/gnu/packages/tls.scm +++ b/gnu/packages/tls.scm | |||
| @@ -1231,9 +1231,18 @@ ciphers such as ChaCha20, Curve25519, NTRU, and Blake2b.") | |||
| 1231 | (build-system cmake-build-system) | 1231 | (build-system cmake-build-system) |
| 1232 | (native-inputs (list perl)) | 1232 | (native-inputs (list perl)) |
| 1233 | (arguments | 1233 | (arguments |
| 1234 | '(#:test-target "run_minimal_tests" | 1234 | (list |
| 1235 | #:configure-flags | 1235 | #:configure-flags |
| 1236 | '("-DBUILD_SHARED_LIBS=ON" "-DDISABLE_GO=ON"))) | 1236 | #~(list "-DBUILD_SHARED_LIBS=ON" "-DDISABLE_GO=ON") |
| 1237 | #:modules '((guix build cmake-build-system) | ||
| 1238 | ((guix build gnu-build-system) #:prefix gnu:) | ||
| 1239 | (guix build utils)) | ||
| 1240 | #:phases | ||
| 1241 | #~(modify-phases %standard-phases | ||
| 1242 | (replace 'check | ||
| 1243 | (lambda* (#:rest args) | ||
| 1244 | (apply (assoc-ref gnu:%standard-phases 'check) | ||
| 1245 | #:test-target "run_minimal_tests" args)))))) | ||
| 1237 | (synopsis "General purpose cryptographic library") | 1246 | (synopsis "General purpose cryptographic library") |
| 1238 | (description "AWS libcrypto (aws-lc) contains portable C implementations | 1247 | (description "AWS libcrypto (aws-lc) contains portable C implementations |
| 1239 | of algorithms needed for TLS and common applications, and includes optimized | 1248 | of algorithms needed for TLS and common applications, and includes optimized |
diff --git a/gnu/packages/vulkan.scm b/gnu/packages/vulkan.scm index a866d7b3a38..2f609c787c4 100644 --- a/gnu/packages/vulkan.scm +++ b/gnu/packages/vulkan.scm | |||
| @@ -190,7 +190,16 @@ SPIR-V, aiming to emit GLSL or MSL that looks like human-written code.") | |||
| 190 | (string-append "-DCMAKE_EXE_LINKER_FLAGS=-Wl,-rpath=" | 190 | (string-append "-DCMAKE_EXE_LINKER_FLAGS=-Wl,-rpath=" |
| 191 | #$output "/lib") | 191 | #$output "/lib") |
| 192 | "-DBUILD_SHARED_LIBS=ON" | 192 | "-DBUILD_SHARED_LIBS=ON" |
| 193 | "-DLLVM_SPIRV_INCLUDE_TESTS=ON"))) | 193 | "-DLLVM_SPIRV_INCLUDE_TESTS=ON") |
| 194 | #:modules '((guix build cmake-build-system) | ||
| 195 | ((guix build gnu-build-system) #:prefix gnu:) | ||
| 196 | (guix build utils)) | ||
| 197 | #:phases | ||
| 198 | #~(modify-phases %standard-phases | ||
| 199 | (replace 'check | ||
| 200 | (lambda* (#:rest args) | ||
| 201 | (apply (assoc-ref gnu:%standard-phases 'check) | ||
| 202 | #:test-target "test" args)))))) | ||
| 194 | (inputs (list llvm-18)) | 203 | (inputs (list llvm-18)) |
| 195 | (native-inputs (list clang-18 llvm-18 python-lit spirv-headers)) | 204 | (native-inputs (list clang-18 llvm-18 python-lit spirv-headers)) |
| 196 | (home-page "https://github.com/KhronosGroup/SPIRV-LLVM-Translator") | 205 | (home-page "https://github.com/KhronosGroup/SPIRV-LLVM-Translator") |
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 0080c9b4590..6354b112f5f 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm | |||
| @@ -1854,8 +1854,10 @@ for efficient socket-like bidirectional reliable communication channels.") | |||
| 1854 | (list | 1854 | (list |
| 1855 | ;; Tests on non-x86_64 architectures are not well supported upstream. | 1855 | ;; Tests on non-x86_64 architectures are not well supported upstream. |
| 1856 | #:tests? (target-x86-64?) | 1856 | #:tests? (target-x86-64?) |
| 1857 | #:test-target "run-tests" | ||
| 1858 | #:configure-flags '(list "-DUSE_SYSTEM_GTEST=ON") | 1857 | #:configure-flags '(list "-DUSE_SYSTEM_GTEST=ON") |
| 1858 | #:modules '((guix build cmake-build-system) | ||
| 1859 | ((guix build gnu-build-system) #:prefix gnu:) | ||
| 1860 | (guix build utils)) | ||
| 1859 | #:phases | 1861 | #:phases |
| 1860 | '(modify-phases %standard-phases | 1862 | '(modify-phases %standard-phases |
| 1861 | (add-after 'unpack 'use-gcc | 1863 | (add-after 'unpack 'use-gcc |
| @@ -1863,7 +1865,11 @@ for efficient socket-like bidirectional reliable communication channels.") | |||
| 1863 | ;; XXX This is the only test that fails. | 1865 | ;; XXX This is the only test that fails. |
| 1864 | (add-after 'unpack 'delete-broken-test | 1866 | (add-after 'unpack 'delete-broken-test |
| 1865 | (lambda _ | 1867 | (lambda _ |
| 1866 | (delete-file "test/wasm2c/spec/memory_init.txt")))))) | 1868 | (delete-file "test/wasm2c/spec/memory_init.txt"))) |
| 1869 | (replace 'check | ||
| 1870 | (lambda* (#:rest args) | ||
| 1871 | (apply (assoc-ref gnu:%standard-phases 'check) | ||
| 1872 | #:test-target "run-tests" args)))))) | ||
| 1867 | (native-inputs (list python googletest)) | 1873 | (native-inputs (list python googletest)) |
| 1868 | (home-page "https://github.com/WebAssembly/wabt") | 1874 | (home-page "https://github.com/WebAssembly/wabt") |
| 1869 | (synopsis "WebAssembly Binary Toolkit") | 1875 | (synopsis "WebAssembly Binary Toolkit") |
