[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#70031] [PATCH v2 21/65] gnu: vigra: Fix tests.
From: |
Greg Hogan |
Subject: |
[bug#70031] [PATCH v2 21/65] gnu: vigra: Fix tests. |
Date: |
Tue, 22 Oct 2024 18:09:11 +0000 |
* gnu/packages/image.scm (vigra)[arguments]: Replace 'check phase to
replace the old cmake-build-system test target.
---
gnu/packages/image.scm | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm
index 7f17c71aef..75937cf6d8 100644
--- a/gnu/packages/image.scm
+++ b/gnu/packages/image.scm
@@ -1371,8 +1371,7 @@ (define-public vigra
("python-nose" ,python-nose)
("sphinx" ,python-sphinx)))
(arguments
- `(#:test-target "check"
- #:phases
+ `(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'disable-broken-tests
(lambda _
@@ -1383,7 +1382,16 @@ (define-public vigra
;; <https://github.com/ukoethe/vigra/issues/436>.
(substitute* "vigranumpy/test/CMakeLists.txt"
(("test1\\.py") ""))
- #t)))
+ #t))
+ (replace 'check
+ (lambda* (#:key parallel-tests? tests? #:allow-other-keys)
+ (when tests?
+ (let ((job-count (if parallel-tests?
+ (number->string (parallel-job-count))
+ "1")))
+ ;; Test artifacts and actions are built and run with the
+ ;; 'check' target.
+ (invoke "make" "-j" job-count "check"))))))
#:configure-flags
(list "-Wno-dev" ; suppress developer mode with lots of warnings
(string-append "-DVIGRANUMPY_INSTALL_DIR="
--
2.46.1
- [bug#70031] [PATCH v2 10/65] build-system/cmake: Optionally build tests., (continued)
- [bug#70031] [PATCH v2 10/65] build-system/cmake: Optionally build tests., Greg Hogan, 2024/10/22
- [bug#70031] [PATCH v2 15/65] gnu: fish: Fix tests., Greg Hogan, 2024/10/22
- [bug#70031] [PATCH v2 35/65] gnu: nextcloud-client: Use #:test-exclude., Greg Hogan, 2024/10/22
- [bug#70031] [PATCH v2 37/65] gnu: qxmpp: Use #:test-exclude., Greg Hogan, 2024/10/22
- [bug#70031] [PATCH v2 42/65] gnu: entangle: Pin CMake dependency., Greg Hogan, 2024/10/22
- [bug#70031] [PATCH v2 38/65] gnu: simgear: Use #:test-exclude., Greg Hogan, 2024/10/22
- [bug#70031] [PATCH v2 43/65] gnu: go-mvdan-cc-editorconfig: Pin CMake dependency., Greg Hogan, 2024/10/22
- [bug#70031] [PATCH v2 46/65] gnu: lxi-tools: Pin CMake dependency., Greg Hogan, 2024/10/22
- [bug#70031] [PATCH v2 17/65] gnu: inkscape: Fix tests., Greg Hogan, 2024/10/22
- [bug#70031] [PATCH v2 20/65] gnu: kirigami-5: Disable tests., Greg Hogan, 2024/10/22
- [bug#70031] [PATCH v2 21/65] gnu: vigra: Fix tests.,
Greg Hogan <=
- [bug#70031] [PATCH v2 27/65] gnu: mbedtls-lts: Disable parallel tests., Greg Hogan, 2024/10/22
- [bug#70031] [PATCH v2 25/65] gnu: libical: Disable parallel tests., Greg Hogan, 2024/10/22
- [bug#70031] [PATCH v2 28/65] gnu: scotch: Disable parallel tests., Greg Hogan, 2024/10/22
- [bug#70031] [PATCH v2 29/65] gnu: srt: Disable parallel tests., Greg Hogan, 2024/10/22
- [bug#70031] [PATCH v2 31/65] gnu: websocketpp: Disable parallel tests., Greg Hogan, 2024/10/22
- [bug#70031] [PATCH v2 41/65] gnu: conan: Pin CMake dependency., Greg Hogan, 2024/10/22
- [bug#70031] [PATCH v2 39/65] gnu: cmake: Update to 3.30.5., Greg Hogan, 2024/10/22
- [bug#70031] [PATCH v2 04/65] build-system/cmake: Add generator., Greg Hogan, 2024/10/22
- [bug#70031] [PATCH v2 26/65] gnu: libmedfile: Disable parallel tests., Greg Hogan, 2024/10/22
- [bug#70031] [PATCH v2 36/65] gnu: pdal: Use :#test-exclude and disable parallel tests., Greg Hogan, 2024/10/22