r4920: Auto commit for Debian build
[hyperobject.git] / run-tests.lisp
1 (defpackage #:run-tests (:use #:cl))
2 (in-package #:run-tests)
3
4 (require 'rt)
5 (require 'kmrcl)
6
7 (load "hyperobject.asd")
8 (load "hyperobject-tests.asd")
9 (asdf:oos 'asdf:test-op 'hyperobject)
10
11 (defun quit (&optional (code 0))
12   "Function to exit the Lisp implementation. Copied from CLOCC's QUIT function."
13     #+allegro (excl:exit code)
14     #+clisp (#+lisp=cl ext:quit #-lisp=cl lisp:quit code)
15     #+(or cmu scl) (ext:quit code)
16     #+cormanlisp (win32:exitprocess code)
17     #+gcl (lisp:bye code)
18     #+lispworks (lw:quit :status code)
19     #+lucid (lcl:quit code)
20     #+sbcl (sb-ext:quit :unix-status (typecase code (number code) (null 0) (t 1)))
21     #+mcl (ccl:quit code)
22     #-(or allegro clisp cmu scl cormanlisp gcl lispworks lucid sbcl mcl)
23     (error 'not-implemented :proc (list 'quit code)))
24
25 (quit)