[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/06: tests: "make check-system" produces colored output.
From: |
Ludovic Courtès |
Subject: |
01/06: tests: "make check-system" produces colored output. |
Date: |
Tue, 9 Oct 2018 12:54:28 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 276f368051ff52cf202ede9fce579e49d9d744ec
Author: Ludovic Courtès <address@hidden>
Date: Tue Oct 9 09:24:24 2018 +0200
tests: "make check-system" produces colored output.
* build-aux/run-system-tests.scm (run-system-tests): Use
'with-status-report'.
---
build-aux/run-system-tests.scm | 49 ++++++++++++++++++++++--------------------
1 file changed, 26 insertions(+), 23 deletions(-)
diff --git a/build-aux/run-system-tests.scm b/build-aux/run-system-tests.scm
index 8b44f57..953ba3e 100644
--- a/build-aux/run-system-tests.scm
+++ b/build-aux/run-system-tests.scm
@@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2016 Ludovic Courtès <address@hidden>
+;;; Copyright © 2016, 2018 Ludovic Courtès <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -19,6 +19,7 @@
(define-module (run-system-tests)
#:use-module (gnu tests)
#:use-module (guix store)
+ #:use-module (guix status)
#:use-module (guix monads)
#:use-module (guix derivations)
#:use-module (guix ui)
@@ -63,25 +64,27 @@
(length tests))
(with-store store
- (run-with-store store
- (mlet* %store-monad ((drv (mapm %store-monad system-test-value tests))
- (out -> (map derivation->output-path drv)))
- (mbegin %store-monad
- (show-what-to-build* drv)
- (set-build-options* #:keep-going? #t #:keep-failed? #t
- #:print-build-trace #t
- #:fallback? #t)
- (built-derivations* drv)
- (mlet %store-monad ((valid (filterm (store-lift valid-path?)
- out))
- (failed (filterm (store-lift
- (negate valid-path?))
- out)))
- (format #t "TOTAL: ~a\n" (length drv))
- (for-each (lambda (item)
- (format #t "PASS: ~a~%" item))
- valid)
- (for-each (lambda (item)
- (format #t "FAIL: ~a~%" item))
- failed)
- (exit (null? failed))))))))
+ (with-status-report print-build-event
+ (run-with-store store
+ (mlet* %store-monad ((drv (mapm %store-monad system-test-value tests))
+ (out -> (map derivation->output-path drv)))
+ (mbegin %store-monad
+ (show-what-to-build* drv)
+ (set-build-options* #:keep-going? #t #:keep-failed? #t
+ #:print-build-trace #t
+ #:print-extended-build-trace? #t
+ #:fallback? #t)
+ (built-derivations* drv)
+ (mlet %store-monad ((valid (filterm (store-lift valid-path?)
+ out))
+ (failed (filterm (store-lift
+ (negate valid-path?))
+ out)))
+ (format #t "TOTAL: ~a\n" (length drv))
+ (for-each (lambda (item)
+ (format #t "PASS: ~a~%" item))
+ valid)
+ (for-each (lambda (item)
+ (format #t "FAIL: ~a~%" item))
+ failed)
+ (exit (null? failed)))))))))
- branch master updated (1fe57b3 -> b33e191), Ludovic Courtès, 2018/10/09
- 03/06: pull: '-l' now honors '-p'., Ludovic Courtès, 2018/10/09
- 05/06: gnu: Add ttf2pt1., Ludovic Courtès, 2018/10/09
- 04/06: profiles: Make Geiser happy., Ludovic Courtès, 2018/10/09
- 02/06: status: Gracefully handle invalid UTF-8 in build logs., Ludovic Courtès, 2018/10/09
- 01/06: tests: "make check-system" produces colored output.,
Ludovic Courtès <=
- 06/06: guix build: '-f' accepts file-like objects., Ludovic Courtès, 2018/10/09