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
|
Line | |
---|
1 | (defpackage #:abcl.test.lisp |
---|
2 | (:use #:cl #:abcl-rt) |
---|
3 | (:nicknames "ABCL-TEST-LISP" "ABCL-TEST") |
---|
4 | (:export |
---|
5 | #:run #:run-matching |
---|
6 | #:do-test #:do-tests)) |
---|
7 | (in-package #:abcl.test.lisp) |
---|
8 | |
---|
9 | (defparameter *abcl-test-directory* |
---|
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*)))) |
---|
15 | |
---|
16 | (defun run () |
---|
17 | "Run the Lisp test suite for ABCL." |
---|
18 | (let ((*default-pathname-defaults* *abcl-test-directory*)) |
---|
19 | (do-tests))) |
---|
20 | |
---|
21 | (defvar *last-run-matching* "url-pathname") |
---|
22 | |
---|
23 | ;;; XXX move this into test-utilities.lisp? |
---|
24 | (defun run-matching (&optional (match *last-run-matching*)) |
---|
25 | "Run all tests in suite whose symbol contains MATCH in a case-insensitive manner." |
---|
26 | (setf *last-run-matching* match) |
---|
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 | |
---|
37 | |
---|
38 | |
---|
39 | |
---|
Note: See
TracBrowser
for help on using the repository browser.