Automated commit for debian release 2.13-1
[hyperobject.git] / run-tests.lisp
1 ;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*-
2 ;;;; *************************************************************************
3 ;;;; FILE IDENTIFICATION
4 ;;;;
5 ;;;; Name:          run-tests.lisp
6 ;;;; Purpose:       Regression suite for hyperobject
7 ;;;; Programmer:    Kevin M. Rosenberg
8 ;;;; Date Started:  Apr 2000
9 ;;;;
10 ;;;; $Id$
11 ;;;;
12 ;;;; This file is Copyright (c) 2000-2003 by Kevin M. Rosenberg
13 ;;;; *************************************************************************
14
15 (defpackage #:run-tests (:use #:cl))
16 (in-package #:run-tests)
17
18 (require 'rt)
19 (require 'kmrcl)
20
21 (load "hyperobject.asd")
22 (load "hyperobject-tests.asd")
23 (asdf:oos 'asdf:test-op 'hyperobject)
24
25 (defun quit (&optional (code 0))
26   "Function to exit the Lisp implementation. Copied from CLOCC's QUIT function."
27     #+allegro (excl:exit code)
28     #+clisp (#+lisp=cl ext:quit #-lisp=cl lisp:quit code)
29     #+(or cmu scl) (ext:quit code)
30     #+cormanlisp (win32:exitprocess code)
31     #+gcl (lisp:bye code)
32     #+lispworks (lw:quit :status code)
33     #+lucid (lcl:quit code)
34     #+sbcl (sb-ext:quit :unix-status (typecase code (number code) (null 0) (t 1)))
35     #+mcl (ccl:quit code)
36     #-(or allegro clisp cmu scl cormanlisp gcl lispworks lucid sbcl mcl)
37     (error 'not-implemented :proc (list 'quit code)))
38
39 (quit)