summaryrefslogtreecommitdiffstats
path: root/tests/gpgscm/tests.scm
diff options
context:
space:
mode:
authorJustus Winter <justus@g10code.com>2016-11-17 13:12:38 +0100
committerJustus Winter <justus@g10code.com>2016-12-13 15:09:26 +0100
commit429891a704057437517cb0b45d11392b40fa1ee8 (patch)
tree405183b3feddc8899234dcb74169a8116f0197e5 /tests/gpgscm/tests.scm
parentgpgscm: Generalize the test runner. (diff)
downloadgnupg2-429891a704057437517cb0b45d11392b40fa1ee8.tar.xz
gnupg2-429891a704057437517cb0b45d11392b40fa1ee8.zip
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>
Diffstat (limited to '')
-rw-r--r--tests/gpgscm/tests.scm18
1 files changed, 13 insertions, 5 deletions
diff --git a/tests/gpgscm/tests.scm b/tests/gpgscm/tests.scm
index b5df9b7b4..7b8d48943 100644
--- a/tests/gpgscm/tests.scm
+++ b/tests/gpgscm/tests.scm
@@ -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)))))