mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
gpgscm: Print failed and skipped tests.
* tests/gpgscm/tests.scm (test-pool::report): Print failed and skipped tests at the end. Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
parent
d43dabf460
commit
429891a704
@ -538,11 +538,19 @@
|
||||
(= 99 p::retcode))))
|
||||
procs))
|
||||
(define (report)
|
||||
(echo (length procs) "tests run,"
|
||||
(length (passed)) "succeeded,"
|
||||
(length (failed)) "failed,"
|
||||
(length (skipped)) "skipped.")
|
||||
(length (failed)))))))
|
||||
(define (print-tests tests message)
|
||||
(unless (null? tests)
|
||||
(apply echo (cons message
|
||||
(map (lambda (t) t::name) tests)))))
|
||||
|
||||
(let ((failed' (failed)) (skipped' (skipped)))
|
||||
(echo (length procs) "tests run,"
|
||||
(length (passed)) "succeeded,"
|
||||
(length failed') "failed,"
|
||||
(length skipped') "skipped.")
|
||||
(print-tests failed' "Failed tests:")
|
||||
(print-tests skipped' "Skipped tests:")
|
||||
(length failed')))))))
|
||||
|
||||
(define (verbosity n)
|
||||
(if (= 0 n) '() (cons '--verbose (verbosity (- n 1)))))
|
||||
|
Loading…
x
Reference in New Issue
Block a user