Last change
on this file since 13009 was
13009,
checked in by Mark Evenson, 13 years ago
|
Docstring for RUN-MATCHING utility.
|
-
Property svn:eol-style set to
native
|
File size:
1.3 KB
|
Rev | Line | |
---|
[11606] | 1 | (defpackage #:abcl.test.lisp |
---|
| 2 | (:use #:cl #:abcl-rt) |
---|
[12402] | 3 | (:nicknames "ABCL-TEST-LISP" "ABCL-TEST") |
---|
| 4 | (:export |
---|
[12615] | 5 | #:run #:run-matching |
---|
| 6 | #:do-test #:do-tests)) |
---|
[11606] | 7 | (in-package #:abcl.test.lisp) |
---|
| 8 | |
---|
[12402] | 9 | (defparameter *abcl-test-directory* |
---|
[12618] | 10 | (if (find :asdf2 *features*) |
---|
| 11 | (asdf:system-relative-pathname :abcl-test-lisp "test/lisp/abcl/") |
---|
| 12 | (make-pathname :host (pathname-host *load-truename*) |
---|
| 13 | :device (pathname-device *load-truename*) |
---|
| 14 | :directory (pathname-directory *load-truename*)))) |
---|
[11606] | 15 | |
---|
[12016] | 16 | (defun run () |
---|
| 17 | "Run the Lisp test suite for ABCL." |
---|
[12402] | 18 | (let ((*default-pathname-defaults* *abcl-test-directory*)) |
---|
| 19 | (do-tests))) |
---|
[11606] | 20 | |
---|
[12615] | 21 | (defvar *last-run-matching* "url-pathname") |
---|
| 22 | |
---|
[12402] | 23 | ;;; XXX move this into test-utilities.lisp? |
---|
[12615] | 24 | (defun run-matching (&optional (match *last-run-matching*)) |
---|
[13009] | 25 | "Run all tests in suite whose symbol contains MATCH in a case-insensitive manner." |
---|
[12615] | 26 | (setf *last-run-matching* match) |
---|
[12402] | 27 | (let* ((matching (string-upcase match)) |
---|
| 28 | (tests |
---|
| 29 | (remove-if-not |
---|
| 30 | (lambda (name) (search matching name)) |
---|
| 31 | (mapcar (lambda (entry) |
---|
| 32 | (symbol-name (abcl-rt::name entry))) |
---|
| 33 | (rest abcl-rt::*entries*))))) |
---|
| 34 | (dolist (test tests) |
---|
| 35 | (do-test (intern test :abcl.test.lisp))))) |
---|
| 36 | |
---|
[11606] | 37 | |
---|
| 38 | |
---|
| 39 | |
---|
Note: See
TracBrowser
for help on using the repository browser.