source: trunk/abcl/test/lisp/abcl/package.lisp @ 12618

Last change on this file since 12618 was 12618, checked in by Mark Evenson, 13 years ago

Incorporate an ASDF2 snapshot as the base ASDF.

  • Property svn:eol-style set to native
File size: 1.2 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  (setf *last-run-matching* match)
26  (let* ((matching (string-upcase match))
27         (tests
28          (remove-if-not
29           (lambda (name) (search matching name))
30           (mapcar (lambda (entry) 
31                     (symbol-name (abcl-rt::name entry))) 
32                   (rest abcl-rt::*entries*)))))
33    (dolist (test tests)
34      (do-test (intern test :abcl.test.lisp)))))
35   
36
37
38 
Note: See TracBrowser for help on using the repository browser.