test/run.lisp @ 13136d4b4761

Run the tests on CCL too

Everything already Just Works on CCL, so we may as well support
a second implementation.
author Steve Losh <steve@stevelosh.com>
date Thu, 30 Jun 2016 17:52:53 +0000
parents 0b8e6d6401c2
children 23d4dc2900a1
(let ((*standard-output* (make-broadcast-stream)))
  (ql:quickload "bones-test"))


(defvar *passed* t)

(defun test (spec)
  (let ((result (5am:run spec)))
    (5am:explain! result)
    (when (not (5am:results-status result))
      (setf *passed* nil))))

(test :bones)
(test :bones.paip)
(test :bones.wam)
(test :bones.circle)

(let ((exit-code (if *passed* 0 1)))
  #+sbcl (sb-ext:exit :code exit-code)
  #+ccl (quit exit-code))