[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
09/14: gnu: duc: Run tests.
From: |
guix-commits |
Subject: |
09/14: gnu: duc: Run tests. |
Date: |
Wed, 27 Jul 2022 19:08:08 -0400 (EDT) |
nckx pushed a commit to branch master
in repository guix.
commit f081f5691ec9bc12de544735073f561969c89708
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Sun Jul 24 02:00:02 2022 +0200
gnu: duc: Run tests.
* gnu/packages/disk.scm (duc)[arguments]: Replace the 'check phase to run
tests.
---
gnu/packages/disk.scm | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/disk.scm b/gnu/packages/disk.scm
index 4587b558d2..69c02347c3 100644
--- a/gnu/packages/disk.scm
+++ b/gnu/packages/disk.scm
@@ -1383,7 +1383,19 @@ reliably with @code{bmaptool} than with traditional
tools, like @code{dd} or
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(doc (string-append out "/share/doc/" ,name "-" ,version)))
- (copy-recursively "examples" (string-append doc
"/examples"))))))))
+ (copy-recursively "examples" (string-append doc "/examples")))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (substitute* "test.sh"
+ ;; Keep the test logs where --keep-failed can see them.
+ (("^(DUC_TEST_DIR=).*" _ assign)
+ (format #f "~a~a/test-directory~%" assign (getcwd)))
+ ;; XXX ‘actual size’ differed on my system (a consistent 348160
+ ;; bytes where the tests expect 540672). However, the ‘apparent
+ ;; size’ matches, as does the actual test output. Good enough…?
+ ((" [0-9]*B actual") " [0-9]*B actual"))
+ (when tests?
+ (invoke "./test.sh"))))))) ; no ‘check’ target
(native-inputs
(list autoconf automake libtool pkg-config))
(inputs
- branch master updated (97285a431b -> bdb2e262fc), guix-commits, 2022/07/27
- 03/14: gnu: btrbk: Use SEARCH-INPUT-FILES., guix-commits, 2022/07/27
- 09/14: gnu: duc: Run tests.,
guix-commits <=
- 07/14: gnu: Add mce-inject., guix-commits, 2022/07/27
- 12/14: gnu: console-setup: Clean up #:make-flags., guix-commits, 2022/07/27
- 10/14: gnu: console-setup: Update to 1.209., guix-commits, 2022/07/27
- 05/14: gnu: pegtl: Update to 3.2.7., guix-commits, 2022/07/27
- 04/14: gnu: libkeyfinder: Update to 2.2.7., guix-commits, 2022/07/27
- 13/14: gnu: console-setup: Use G-expressions., guix-commits, 2022/07/27
- 08/14: gnu: duc: Update to 1.4.5., guix-commits, 2022/07/27
- 01/14: gnu: btrbk: Add findutils to PATH., guix-commits, 2022/07/27
- 02/14: gnu: btrbk: Update to 0.32.2., guix-commits, 2022/07/27
- 06/14: gnu: nanodbc: Update to 2.14.0., guix-commits, 2022/07/27