Changeset 13312
- Timestamp:
- 06/08/11 15:28:11 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abcl/test/lisp/abcl/package.lisp
r13009 r13312 3 3 (:nicknames "ABCL-TEST-LISP" "ABCL-TEST") 4 4 (:export 5 #:run #:run-matching 6 #:do-test #:do-tests)) 5 #:run 6 #:do-matching #:run-matching 7 #:do-test 8 #:do-tests)) 7 9 (in-package #:abcl.test.lisp) 8 10 … … 19 21 (do-tests))) 20 22 23 ;;; XXX move this into test-utilities.lisp? 21 24 (defvar *last-run-matching* "url-pathname") 22 25 23 ;;; XXX move this into test-utilities.lisp? 24 (defun run-matching (&optional (match *last-run-matching*)) 26 (defun do-matching (&optional (match *last-run-matching*)) 25 27 "Run all tests in suite whose symbol contains MATCH in a case-insensitive manner." 26 28 (setf *last-run-matching* match) 27 29 (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))))) 30 (count 0)) 31 (mapcar (lambda (entry) 32 (if (search matching (symbol-name (abcl-rt::name entry))) 33 (setf (abcl-rt::pend entry) t 34 count (1+ count)) 35 (setf (abcl-rt::pend entry) nil))) 36 (rest abcl-rt::*entries*)) 37 (format t "Performing ~A tests matching '~A'.~%" count matching) 38 (abcl-rt::do-entries t))) 39 40 ;;; Deprecated 41 (setf (symbol-function 'run-matching) #'do-matching) 42 36 43 37 44
Note: See TracChangeset
for help on using the changeset viewer.