Changeset 2683

Show
Ignore:
Timestamp:
03/06/08 19:13:15 (10 months ago)
Author:
ksprotte
Message:

die tests sind jetzt teilweise scharf geschaltet...

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/build.lisp

    r2668 r2683  
    8383(defmacro run-tests (&body forms) 
    8484  `(let (any-failed) 
    85     ,@(mapcar (lambda (form) 
    86                 `(progn 
    87                   (format t "~&====================== RUNNING ~S~%" 
    88                    ',form) 
    89                   (let ((failed (null,form))) 
    90                     (format t "~&====================== ~S ~A~%~%" 
    91                             ',form (if failed "FAILED" "SUCCEEDED")) 
    92                     (setf any-failed (or any-failed failed))))) 
    93               forms) 
    94     (exit 0 #+(or) (if any-failed 1 0)))) 
     85     ,@(mapcar (lambda (form) 
     86                 `(progn 
     87                    (format t "~&====================== RUNNING ~S~%" 
     88                            ',form)     ; quoted 
     89                    (let ((failed (null ,form))) 
     90                      (format t "~&====================== ~S ~A~%~%" 
     91                              ',form (if failed "FAILED" "SUCCEEDED")) 
     92                      (setf any-failed (or any-failed failed))))) 
     93               forms) 
     94     (exit (if any-failed 1 0)))) 
     95 
     96(defun fiveam-run-no-failures-p (test) 
     97  (zerop (nth-value 8 (5am::partition-results (5am::run test))))) 
     98   
    9599              
    96100(defun test () 
     
    98102  (format t "~&;;; --- running tests~%") 
    99103  (run-tests 
    100     (cl-ppcre-test:test) 
    101     (cl-gd-test:test) 
     104    (progn (cl-ppcre-test:test) (warn "skipping cl-ppcre failures for now") t) 
     105    (progn (cl-gd-test:test) (warn "skipping cl-gd test result for now") t) 
    102106    (unit-test:run-all-tests) 
    103     (it.bese.fiveam:run! :bknr.datastore))) 
     107    (fiveam-run-no-failures-p :bknr.datastore)))