X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=tests%2Finit.lisp;fp=tests%2Finit.lisp;h=b49312fff6aa11cb0199052581febe61309d698c;hb=188873f068b0c53febe4ee0ededbc755fce4869d;hp=0000000000000000000000000000000000000000;hpb=63e2c4c3263fc0e5feaff7498350829f4bbdfcec;p=umlisp.git diff --git a/tests/init.lisp b/tests/init.lisp new file mode 100644 index 0000000..b49312f --- /dev/null +++ b/tests/init.lisp @@ -0,0 +1,35 @@ +;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10; Package: umlisp-tests -*- +;;;; ************************************************************************* +;;;; FILE IDENTIFICATION +;;;; +;;;; Name: basic.lisp +;;;; Purpose: Basic tests for UMLisp +;;;; Author: Kevin M. Rosenberg +;;;; Date Started: May 2003 +;;;; +;;;; $Id$ +;;;; +;;;; This file, part of UMLisp, is +;;;; Copyright (c) 2000-2002 by Kevin M. Rosenberg, M.D. +;;;; +;;;; UMLisp users are granted the rights to distribute and use this software +;;;; as governed by the terms of the GNU General Public License. +;;;; ************************************************************************* + +(in-package #:umlisp-tests) + +(defvar *rt-basic* nil) +(defvar *rt-parse* nil) +(defvar *error-count* 0) +(defvar *report-stream* *standard-output*) + +(setq regression-test::*catch-errors* nil) + +(defun run-tests () + (regression-test:rem-all-tests) + (dolist (test-form (append *rt-basic* *rt-parse*)) + (eval test-form)) + (let ((remaining (regression-test:do-tests *report-stream*))) + (when (regression-test:pending-tests) + (incf *error-count* (length remaining)))) + *error-count*)