From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mathieu Lirzin Subject: [PATCH] build: Add a scheme custom test driver using SRFI-64. Date: Sun, 01 Nov 2015 03:59:12 +0100 Message-ID: <87lhaiv30f.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57643) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZsirY-0005w2-Tu for guix-devel@gnu.org; Sat, 31 Oct 2015 22:59:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZsirV-0004F9-JN for guix-devel@gnu.org; Sat, 31 Oct 2015 22:59:20 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48942) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZsirV-0004F5-EQ for guix-devel@gnu.org; Sat, 31 Oct 2015 22:59:17 -0400 Received: from mek33-4-82-236-46-88.fbx.proxad.net ([82.236.46.88]:41162 helo=godel) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1ZsirU-0000GV-9F for guix-devel@gnu.org; Sat, 31 Oct 2015 22:59:17 -0400 List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello Guix, While reading the Automake manual I have discovered that it provides an API for custom test drivers, so I've tried to implement something for the scheme API for test suites (SRFI-64) which Guix is using. The result provides support for multiple test cases in a single file, and allow =E2=80=98make check=E2=80=99 display the results individually: PASS: tests/base32.scm - bytevector->base32-string PASS: tests/base32.scm - base32-string->bytevector PASS: tests/base32.scm - nix-base32-string->bytevector PASS: tests/base32.scm - &invalid-base32-character SKIP: tests/base32.scm - sha256 & bytevector->nix-base32-string PASS: tests/base64.scm - empty string It is now possible to define individual XFAIL test cases: (test-expect-fail "absurd") (test-assert "absurd" (=3D 0 1)) And the =E2=80=98.log=E2=80=99 files now use somekind of recutils format: test-name: url-fetch, file location: /home/mthl/src/gnu/guix/tests/builders.scm:78 source: + (test-assert + "url-fetch, file" + (let* ((file (search-path %load-path "guix.scm")) + (hash (call-with-input-file file port-sha256)) + (out (url-fetch* %store file 'sha256 hash))) + (and (file-exists? out) (valid-path? %store out)))) value: #t result: PASS Finally the =E2=80=98.log=E2=80=99 files are no longer fragmented between =E2=80=9C${top_srcdir}=E2=80=9D and =E2=80=9Ctests/=E2=80=9D. If something= went wrong (FAIL, SKIP, XPASS) then the entire log file is copied in =E2=80=98test-suite.log=E2=80= =99 so no need to ask for an additional file when someone is reporting some =E2=80=98make check=E2=80=99 error. One caveat is that =E2=80=98tests/cpio.scm=E2=80=98 is now failing. Since this script is not intented to be exclusively used by Guix, I have used a generic copyright notice. I guess Guix is the best place to challenge and improve it, but IMO it will be better hosted elsewhere like in Gnulib. Opinions? Comments are welcome! -- Mathieu Lirzin --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: inline; filename=0001-build-Add-a-scheme-custom-test-driver-using-SRFI-64.patch Content-Transfer-Encoding: quoted-printable >From 977e0586a6689df204fd9b522f8508ec318180c0 Mon Sep 17 00:00:00 2001 From: Mathieu Lirzin Date: Mon, 26 Oct 2015 23:47:24 +0100 Subject: [PATCH] build: Add a scheme custom test driver using SRFI-64. This provides support for multiple scheme test cases in a unique file and fixes the fragmentation of '.log' files. * build-aux/test-driver.scm: New file. * Makefile.am (SCM_LOG_DRIVER): New variable. (SCM_LOG_COMPILER, AM_SCM_LOG_FLAGS): Delete variables. (AM_TESTS_ENVIRONMENT): Set GUILE_AUTO_COMPILE to 0. * tests/base32.scm, tests/build-utils.scm, tests/builders.scm, tests/challenge.scm, tests/containers.scm, tests/cpan.scm, tests/cpio.scm, tests/cran.scm, tests/derivations.scm, tests/elpa.scm, tests/file-systems.scm, tests/gem.scm, tests/gexp.scm, tests/graph.scm, tests/gremlin.scm, tests/hackage.scm, tests/hash.scm, tests/lint.scm, tests/monads.scm, tests/nar.scm, tests/packages.scm, tests/pk-crypto.scm, tests/pki.scm, tests/profiles.scm, tests/publish.scm, tests/pypi.scm, tests/records.scm, tests/scripts.scm, tests/services.scm, tests/sets.scm, tests/size.scm, tests/snix.scm, tests/store.scm, tests/substitute.scm, tests/syscalls.scm, tests/ui.scm, tests/union.scm, tests/utils.scm: Don't exit at the end of each test. --- Makefile.am | 6 +- build-aux/test-driver.scm | 157 ++++++++++++++++++++++++++++++++++++++++++= ++++ tests/base32.scm | 3 - tests/build-utils.scm | 3 - tests/builders.scm | 3 - tests/challenge.scm | 3 - tests/containers.scm | 3 - tests/cpan.scm | 3 - tests/cpio.scm | 3 - tests/cran.scm | 3 - tests/derivations.scm | 3 - tests/elpa.scm | 3 - tests/file-systems.scm | 3 - tests/gem.scm | 3 - tests/gexp.scm | 3 - tests/graph.scm | 3 - tests/gremlin.scm | 3 - tests/hackage.scm | 3 - tests/hash.scm | 3 - tests/lint.scm | 3 - tests/monads.scm | 3 - tests/nar.scm | 3 - tests/packages.scm | 3 - tests/pk-crypto.scm | 3 - tests/pki.scm | 3 - tests/profiles.scm | 3 - tests/publish.scm | 3 - tests/pypi.scm | 3 - tests/records.scm | 3 - tests/scripts.scm | 3 - tests/services.scm | 3 - tests/sets.scm | 3 - tests/size.scm | 3 - tests/snix.scm | 3 - tests/store.scm | 3 - tests/substitute.scm | 3 - tests/syscalls.scm | 3 - tests/ui.scm | 3 - tests/union.scm | 3 - tests/utils.scm | 3 - 40 files changed, 160 insertions(+), 117 deletions(-) create mode 100644 build-aux/test-driver.scm diff --git a/Makefile.am b/Makefile.am index 4f90b1d..2db6b25 100644 --- a/Makefile.am +++ b/Makefile.am @@ -268,10 +268,10 @@ TESTS =3D $(SCM_TESTS) $(SH_TESTS) =20 TEST_EXTENSIONS =3D .scm .sh =20 -AM_TESTS_ENVIRONMENT =3D abs_top_srcdir=3D"$(abs_top_srcdir)" +AM_TESTS_ENVIRONMENT =3D abs_top_srcdir=3D"$(abs_top_srcdir)" GUILE_AUTO_C= OMPILE=3D0 =20 -SCM_LOG_COMPILER =3D $(top_builddir)/test-env $(GUILE) -AM_SCM_LOG_FLAGS =3D --no-auto-compile -L "$(top_srcdir)" +SCM_LOG_DRIVER =3D $(top_builddir)/test-env $(GUILE) --no-auto-compile \ + -e main $(top_srcdir)/build-aux/test-driver.scm 2>/dev/= null =20 SH_LOG_COMPILER =3D $(top_builddir)/test-env $(SHELL) AM_SH_LOG_FLAGS =3D -x -e diff --git a/build-aux/test-driver.scm b/build-aux/test-driver.scm new file mode 100644 index 0000000..52f7cfb --- /dev/null +++ b/build-aux/test-driver.scm @@ -0,0 +1,157 @@ +;;;; test-driver.scm --- SRFI-64 custom driver for GNU Automake test suite= s. + +(define script-version "2015-11-01.01") ;UTC + +;;; Copyright =C2=A9 2015 Mathieu Lirzin +;;; +;;; This program is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; This program is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with this program. If not, see . + +;;;; Commentary: +;;; +;;; This script provides a custom test driver for GNU Automake using the +;;; SRFI-64 Scheme API for test suites. +;;; +;;;; Code: + +(use-modules (ice-9 getopt-long) + (ice-9 pretty-print) + (srfi srfi-64)) + +(define (show-help) + (display "Usage: + test-driver --test-name=3DNAME --log-file=3DPATH --trs-file=3DPATH + [--expect-failure=3D{yes|no}] [--color-tests=3D{yes|no}] + [--enable-hard-errors=3D{yes|no}] [--] + TEST-SCRIPT [TEST-SCRIPT-ARGUMENTS] +The '--test-name', '--log-file' and '--trs-file' options are mandatory.\n"= )) + +(define %options + '((test-name (value #t)) + (log-file (value #t)) + (trs-file (value #t)) + (color-tests (value #t)) + (expect-failure (value #t)) ;XXX: not implemented yet + (enable-hard-errors (value #t)) ;XXX: not implemented in SRFI-64 + (help (single-char #\h) (value #f)) + (version (single-char #\V) (value #f)))) + +(define* (test-display field value #:optional (port (current-output-port)= )) + "Display \"FIELD: VALUE\\n\" on PORT." + (format port "~A: ~A\n" field value)) + +(define* (result->string symbol #:key colorize) + "Return SYMBOL as an upper case string. Use colors when COLORIZE is #t." + (let ((result (string-upcase (symbol->string symbol)))) + (if colorize + (string-append (case symbol + ((pass) "=1B[0;32m") ;green + ((xfail) "=1B[1;32m") ;light green + ((skip) "=1B[1;34m") ;blue + ((fail xpass) "=1B[0;31m") ;red + ((error) "=1B[0;35m")) ;magenta + result + "=1B[m") ;no color + result))) + +(define* (test-runner-gnu test-name #:key color-tests out-port trs-port) + "Return an custom SRFI-64 test runner. The current output port is suppo= sed +to be redirected to a '.log' file." + + (define (test-on-test-begin-gnu runner) + "Procedure called at the start of an individual test-case, before the = test +expression (and expected value) are evaluated." + (let ((results (test-result-alist runner))) + (test-display "test-name" (assq-ref results 'test-name)) + (test-display "location" + (string-append + (assq-ref results 'source-file) ":" + (number->string (assq-ref results 'source-line)))) + (display "source:\n") + (pretty-print (assq-ref results 'source-form) #:per-line-prefix "+ "= ))) + + (define (test-on-test-end-gnu runner) + "Procedure called at the end of an individual testcase, when the resul= t of +the test is available." + (let ((results (test-result-alist runner))) + ;; Display the result of the test on the console (with colors). + (test-display + (result->string (test-result-kind runner) #:colorize color-tests) + (string-append test-name " - " (test-runner-test-name runner)) + out-port) + (when (assq 'actual-value results) + (test-display "value" (assq-ref results 'actual-value))) + (test-display "result" (result->string (assq-ref results 'result-kin= d))) + (newline) + (test-display ":test-result" + (string-append (result->string (test-result-kind runne= r)) + " " (test-runner-test-name runner)) + trs-port))) + + (define (test-on-group-end-gnu runner) + "Procedure meant to be called by a `test-end', including at the end of= a +test-group." + (let ((fail (or (positive? (test-runner-fail-count runner)) + (positive? (test-runner-xpass-count runner)))) + (skip (or (positive? (test-runner-skip-count runner)) + (positive? (test-runner-xfail-count runner))))) + ;; XXX: Since multiple tests share one '.trs' file, we need to choose + ;; what to report in the "global" results which would require more + ;; refinements. + (test-display ":global-test-result" (if fail "FAIL" "PASS") trs-port) + (test-display ":recheck" (if fail "yes" "no") trs-port) + (test-display ":copy-in-global-log" (if (or fail skip) "yes" "no") t= rs-port) + #f)) + + (let ((runner (test-runner-null))) + (test-runner-on-test-begin! runner test-on-test-begin-gnu) + (test-runner-on-test-end! runner test-on-test-end-gnu) + (test-runner-on-group-end! runner test-on-group-end-gnu) + (test-runner-on-bad-end-name! runner test-on-bad-end-name-simple) + runner)) + + +;;; +;;; Entry point. +;;; + +(define (main . args) + (let ((opts (getopt-long (command-line) %options))) + (when (option-ref opts 'help #f) + (show-help) + (exit 0)) + (when (option-ref opts 'version #f) + (format #t "test-driver.scm ~A" script-version) + (exit 0)) + (let ((trs (open-output-file (option-ref opts 'trs-file "")))) + (test-runner-current + (test-runner-gnu (option-ref opts 'test-name #f) + #:out-port (current-output-port) + #:trs-port trs + #:color-tests (option-ref opts 'color-tests #f))) + (with-output-to-file (option-ref opts 'log-file "") + (lambda () + (set-current-error-port (current-output-port)) + (load-from-path (option-ref opts 'test-name #f)))) + (close-port trs) + (exit 0)))) + +;;; Local Variables: +;;; eval: (add-hook 'write-file-functions 'time-stamp) +;;; time-stamp-start: "(define script-version \"" +;;; time-stamp-format: "%:y-%02m-%02d.%02H" +;;; time-stamp-time-zone: "UTC" +;;; time-stamp-end: "\") ;UTC" +;;; End: + +;;;; test-driver.scm ends here. diff --git a/tests/base32.scm b/tests/base32.scm index dcd926f..194f8da 100644 --- a/tests/base32.scm +++ b/tests/base32.scm @@ -101,6 +101,3 @@ l)))) =20 (test-end) - - -(exit (=3D (test-runner-fail-count (test-runner-current)) 0)) diff --git a/tests/build-utils.scm b/tests/build-utils.scm index b0a4d15..cc96738 100644 --- a/tests/build-utils.scm +++ b/tests/build-utils.scm @@ -141,6 +141,3 @@ (equal? str "hello world\n"))))) =20 (test-end) - - -(exit (=3D (test-runner-fail-count (test-runner-current)) 0)) diff --git a/tests/builders.scm b/tests/builders.scm index a7c3e42..bb9e0fa 100644 --- a/tests/builders.scm +++ b/tests/builders.scm @@ -113,6 +113,3 @@ (file-exists? (string-append out "/bin/hello"))))) =20 (test-end "builders") - - -(exit (=3D (test-runner-fail-count (test-runner-current)) 0)) diff --git a/tests/challenge.scm b/tests/challenge.scm index e53cacd..9505042 100644 --- a/tests/challenge.scm +++ b/tests/challenge.scm @@ -106,9 +106,6 @@ =20 (test-end) =20 - -(exit (=3D (test-runner-fail-count (test-runner-current)) 0)) - ;;; Local Variables: ;;; eval: (put 'with-derivation-narinfo* 'scheme-indent-function 2) ;;; End: diff --git a/tests/containers.scm b/tests/containers.scm index 0ba8149..ccbcfa5 100644 --- a/tests/containers.scm +++ b/tests/containers.scm @@ -141,6 +141,3 @@ (zero? result))))))) =20 (test-end) - - -(exit (=3D (test-runner-fail-count (test-runner-current)) 0)) diff --git a/tests/cpan.scm b/tests/cpan.scm index 2f95135..b92a78c 100644 --- a/tests/cpan.scm +++ b/tests/cpan.scm @@ -94,6 +94,3 @@ (pk 'fail x #f))))) =20 (test-end "cpan") - - -(exit (=3D (test-runner-fail-count (test-runner-current)) 0)) diff --git a/tests/cpio.scm b/tests/cpio.scm index cf65f98..516de06 100644 --- a/tests/cpio.scm +++ b/tests/cpio.scm @@ -79,6 +79,3 @@ (stat:size (stat file)))))))))))))) =20 (test-end "cpio") - - -(exit (=3D (test-runner-fail-count (test-runner-current)) 0)) diff --git a/tests/cran.scm b/tests/cran.scm index ba5699a..135f308 100644 --- a/tests/cran.scm +++ b/tests/cran.scm @@ -172,6 +172,3 @@ (pk 'fail x #f)))))) =20 (test-end "cran") - - -(exit (=3D (test-runner-fail-count (test-runner-current)) 0)) diff --git a/tests/derivations.scm b/tests/derivations.scm index 9fc96c7..2e10b70 100644 --- a/tests/derivations.scm +++ b/tests/derivations.scm @@ -946,6 +946,3 @@ (call-with-input-file out get-string-all)))) =20 (test-end) - - -(exit (=3D (test-runner-fail-count (test-runner-current)) 0)) diff --git a/tests/elpa.scm b/tests/elpa.scm index e8adde3..46c6ac2 100644 --- a/tests/elpa.scm +++ b/tests/elpa.scm @@ -104,6 +104,3 @@ information about package NAME. (Function 'elpa-package= -info'.)" (eval-test-with-elpa "auctex")) =20 (test-end "elpa") - - -(exit (=3D (test-runner-fail-count (test-runner-current)) 0)) diff --git a/tests/file-systems.scm b/tests/file-systems.scm index c36509b..aed27e8 100644 --- a/tests/file-systems.scm +++ b/tests/file-systems.scm @@ -51,6 +51,3 @@ (equal? form '(uuid "foobar")))))) =20 (test-end) - - -(exit (=3D (test-runner-fail-count (test-runner-current)) 0)) diff --git a/tests/gem.scm b/tests/gem.scm index 9efbda3..43a6c53 100644 --- a/tests/gem.scm +++ b/tests/gem.scm @@ -77,6 +77,3 @@ (pk 'fail x #f))))) =20 (test-end "gem") - - -(exit (=3D (test-runner-fail-count (test-runner-current)) 0)) diff --git a/tests/gexp.scm b/tests/gexp.scm index 4860a8e..ca7ad9a 100644 --- a/tests/gexp.scm +++ b/tests/gexp.scm @@ -754,9 +754,6 @@ =20 (test-end "gexp") =20 - -(exit (=3D (test-runner-fail-count (test-runner-current)) 0)) - ;; Local Variables: ;; eval: (put 'test-assertm 'scheme-indent-function 1) ;; End: diff --git a/tests/graph.scm b/tests/graph.scm index f454b06..4de1702 100644 --- a/tests/graph.scm +++ b/tests/graph.scm @@ -188,6 +188,3 @@ edges." (equal? edges `((,out ,txt))))))))))) =20 (test-end "graph") - - -(exit (=3D (test-runner-fail-count (test-runner-current)) 0)) diff --git a/tests/gremlin.scm b/tests/gremlin.scm index dc9f78c..2885554 100644 --- a/tests/gremlin.scm +++ b/tests/gremlin.scm @@ -64,6 +64,3 @@ "ORIGIN/foo"))) =20 (test-end "gremlin") - - -(exit (=3D (test-runner-fail-count (test-runner-current)) 0)) diff --git a/tests/hackage.scm b/tests/hackage.scm index 229bee3..969266b 100644 --- a/tests/hackage.scm +++ b/tests/hackage.scm @@ -137,6 +137,3 @@ library (x (pk 'fail x #f)))) =20 (test-end "hackage") - - -(exit (=3D (test-runner-fail-count (test-runner-current)) 0)) diff --git a/tests/hash.scm b/tests/hash.scm index 9bcd694..8039549 100644 --- a/tests/hash.scm +++ b/tests/hash.scm @@ -126,6 +126,3 @@ In Guile <=3D 2.0.9, CBIPs were always fully buffered, = so the (list hello hash world)))) =20 (test-end) - - -(exit (=3D (test-runner-fail-count (test-runner-current)) 0)) diff --git a/tests/lint.scm b/tests/lint.scm index 3f14956..db29915 100644 --- a/tests/lint.scm +++ b/tests/lint.scm @@ -550,9 +550,6 @@ requests." =20 (test-end "lint") =20 - -(exit (=3D (test-runner-fail-count (test-runner-current)) 0)) - ;; Local Variables: ;; eval: (put 'with-http-server 'scheme-indent-function 1) ;; eval: (put 'with-warnings 'scheme-indent-function 0) diff --git a/tests/monads.scm b/tests/monads.scm index 62a07a2..60d41ae 100644 --- a/tests/monads.scm +++ b/tests/monads.scm @@ -254,6 +254,3 @@ '()))) =20 (test-end "monads") - - -(exit (=3D (test-runner-fail-count (test-runner-current)) 0)) diff --git a/tests/nar.scm b/tests/nar.scm index e24a638..9796980 100644 --- a/tests/nar.scm +++ b/tests/nar.scm @@ -320,9 +320,6 @@ =20 (test-end "nar") =20 - -(exit (=3D (test-runner-fail-count (test-runner-current)) 0)) - ;;; Local Variables: ;;; eval: (put 'with-file-tree 'scheme-indent-function 2) ;;; End: diff --git a/tests/packages.scm b/tests/packages.scm index b28ae0b..b037a4f 100644 --- a/tests/packages.scm +++ b/tests/packages.scm @@ -727,9 +727,6 @@ =20 (test-end "packages") =20 - -(exit (=3D (test-runner-fail-count (test-runner-current)) 0)) - ;;; Local Variables: ;;; eval: (put 'dummy-package 'scheme-indent-function 1) ;;; End: diff --git a/tests/pk-crypto.scm b/tests/pk-crypto.scm index f5008f3..5024a15 100644 --- a/tests/pk-crypto.scm +++ b/tests/pk-crypto.scm @@ -287,6 +287,3 @@ (canonical-sexp->sexp (sexp->canonical-sexp sexp)))) =20 (test-end) - - -(exit (=3D (test-runner-fail-count (test-runner-current)) 0)) diff --git a/tests/pki.scm b/tests/pki.scm index 51f2119..876ad98 100644 --- a/tests/pki.scm +++ b/tests/pki.scm @@ -119,6 +119,3 @@ (corrupt-signature 'c)))) =20 (test-end) - - -(exit (=3D (test-runner-fail-count (test-runner-current)) 0)) diff --git a/tests/profiles.scm b/tests/profiles.scm index cc9a822..360ce27 100644 --- a/tests/profiles.scm +++ b/tests/profiles.scm @@ -307,9 +307,6 @@ =20 (test-end "profiles") =20 - -(exit (=3D (test-runner-fail-count (test-runner-current)) 0)) - ;;; Local Variables: ;;; eval: (put 'dummy-package 'scheme-indent-function 1) ;;; End: diff --git a/tests/publish.scm b/tests/publish.scm index 4d72fdc..9a0bed5 100644 --- a/tests/publish.scm +++ b/tests/publish.scm @@ -109,6 +109,3 @@ References: ~a~%" (call-with-input-file temp read-string)))) =20 (test-end "publish") - - -(exit (=3D (test-runner-fail-count (test-runner-current)) 0)) diff --git a/tests/pypi.scm b/tests/pypi.scm index c772474..4f7beb1 100644 --- a/tests/pypi.scm +++ b/tests/pypi.scm @@ -106,6 +106,3 @@ baz > 13.37") (pk 'fail x #f))))) =20 (test-end "pypi") - - -(exit (=3D (test-runner-fail-count (test-runner-current)) 0)) diff --git a/tests/records.scm b/tests/records.scm index 800ed03..c6f85d4 100644 --- a/tests/records.scm +++ b/tests/records.scm @@ -305,6 +305,3 @@ Description: 1st line, '("a"))) =20 (test-end) - - -(exit (=3D (test-runner-fail-count (test-runner-current)) 0)) diff --git a/tests/scripts.scm b/tests/scripts.scm index 3bf41ae..3901710 100644 --- a/tests/scripts.scm +++ b/tests/scripts.scm @@ -64,9 +64,6 @@ =20 (test-end "scripts") =20 - -(exit (=3D (test-runner-fail-count (test-runner-current)) 0)) - ;;; Local Variables: ;;; eval: (put 'with-environment-variable 'scheme-indent-function 2) ;;; End: diff --git a/tests/services.scm b/tests/services.scm index 7d2e31b..804d6c9 100644 --- a/tests/services.scm +++ b/tests/services.scm @@ -115,6 +115,3 @@ (null? (e s3))))) =20 (test-end) - - -(exit (=3D (test-runner-fail-count (test-runner-current)) 0)) diff --git a/tests/sets.scm b/tests/sets.scm index 0a89591..cdb7efe 100644 --- a/tests/sets.scm +++ b/tests/sets.scm @@ -47,6 +47,3 @@ (set-contains? s3 b)))) =20 (test-end) - - -(exit (=3D (test-runner-fail-count (test-runner-current)) 0)) diff --git a/tests/size.scm b/tests/size.scm index a110604..fcd5902 100644 --- a/tests/size.scm +++ b/tests/size.scm @@ -88,9 +88,6 @@ =20 (test-end "size") =20 - -(exit (=3D (test-runner-fail-count (test-runner-current)) 0)) - ;;; Local Variables: ;;; eval: (put 'match* 'scheme-indent-function 1) ;;; End: diff --git a/tests/snix.scm b/tests/snix.scm index a66b2c7..4c31e33 100644 --- a/tests/snix.scm +++ b/tests/snix.scm @@ -71,6 +71,3 @@ (pk 'fail x #f)))) =20 (test-end "snix") - - -(exit (=3D (test-runner-fail-count (test-runner-current)) 0)) diff --git a/tests/store.scm b/tests/store.scm index 96b6478..1f3123b 100644 --- a/tests/store.scm +++ b/tests/store.scm @@ -706,6 +706,3 @@ (call-with-output-string (cut write-file item <>)))))))) =20 (test-end "store") - - -(exit (=3D (test-runner-fail-count (test-runner-current)) 0)) diff --git a/tests/substitute.scm b/tests/substitute.scm index 8569812..2e963d1 100644 --- a/tests/substitute.scm +++ b/tests/substitute.scm @@ -275,9 +275,6 @@ a file for NARINFO." =20 (test-end "substitute") =20 - -(exit (=3D (test-runner-fail-count (test-runner-current)) 0)) - ;;; Local Variables: ;;; eval: (put 'with-narinfo 'scheme-indent-function 1) ;;; eval: (put 'test-quit 'scheme-indent-function 2) diff --git a/tests/syscalls.scm b/tests/syscalls.scm index 86783b9..06870a7 100644 --- a/tests/syscalls.scm +++ b/tests/syscalls.scm @@ -236,6 +236,3 @@ (lo (interface-address lo))))))) =20 (test-end) - - -(exit (=3D (test-runner-fail-count (test-runner-current)) 0)) diff --git a/tests/ui.scm b/tests/ui.scm index bd4c907..133982a 100644 --- a/tests/ui.scm +++ b/tests/ui.scm @@ -250,6 +250,3 @@ Second line" 24)) (show-manifest-transaction store m t))))))))) =20 (test-end "ui") - - -(exit (=3D (test-runner-fail-count (test-runner-current)) 0)) diff --git a/tests/union.scm b/tests/union.scm index 22ba67c..cccf397 100644 --- a/tests/union.scm +++ b/tests/union.scm @@ -125,6 +125,3 @@ (eq? 'directory (stat:type (lstat "bin")))))))) =20 (test-end) - - -(exit (=3D (test-runner-fail-count (test-runner-current)) 0)) diff --git a/tests/utils.scm b/tests/utils.scm index b65d6d2..1e763a2 100644 --- a/tests/utils.scm +++ b/tests/utils.scm @@ -321,6 +321,3 @@ (test-end) =20 (false-if-exception (delete-file temp-file)) - - -(exit (=3D (test-runner-fail-count (test-runner-current)) 0)) --=20 2.6.1 --=-=-=--