diff options
| author | Maxim Cournoyer <maxim@guixotic.coop> | 2026-03-19 22:17:16 +0900 |
|---|---|---|
| committer | Maxim Cournoyer <maxim@guixotic.coop> | 2026-03-19 23:40:12 +0900 |
| commit | c274b5c2b2b42cb10053973b1091fb7e431e81eb (patch) | |
| tree | 2ad2fcc620cbbe52e73f428f579c7a3a18bcc2ab /build-aux | |
| parent | 82f84f5e7fb34cc719ed6ea538a3d1ca7516f23d (diff) | |
build-aux: Streamline test-driver.scm a bit.
Guile 3.0.11 ships with a new SRFI 64.
* build-aux/test-driver.scm (%test-match-all): Delete procedure.
(main): Replace %test-match-all with test-match-all.
Change-Id: Ibcd7d98194694c1de679491be4f5a603a79f6e29
Diffstat (limited to 'build-aux')
| -rwxr-xr-x | build-aux/test-driver.scm | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/build-aux/test-driver.scm b/build-aux/test-driver.scm index 7c0c403f7ab..612529db35d 100755 --- a/build-aux/test-driver.scm +++ b/build-aux/test-driver.scm @@ -213,20 +213,6 @@ cases based on their names." (lambda (runner) (not (string-match regexp (test-runner-test-name runner))))) -;;; XXX: test-match-all is a syntax, which isn't convenient to use with a list -;;; of test specifiers computed at run time. Copy this SRFI 64 internal -;;; definition here, which is the procedural equivalent of 'test-match-all'. -(define (%test-match-all . pred-list) - (lambda (runner) - (let ((result #t)) - (let loop ((l pred-list)) - (if (null? l) - result - (begin - (if (not ((car l) runner)) - (set! result #f)) - (loop (cdr l)))))))) - ;;; ;;; Entry point. @@ -249,7 +235,7 @@ cases based on their names." identity (list (and=> select test-match-name*) (and=> exclude test-match-name*/negated)))) - (test-specifier (apply %test-match-all test-specifiers)) + (test-specifier (apply test-match-all test-specifiers)) (color-tests (if (assoc 'color-tests opts) (option->boolean opts 'color-tests) #t))) |
