--- /dev/null
+#| -*-Scheme-*-
+
+Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994,
+ 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
+ 2006, 2007, 2008, 2009, 2010 Massachusetts Institute of Technology
+
+This file is part of MIT/GNU Scheme.
+
+MIT/GNU Scheme is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2 of the License, or (at
+your option) any later version.
+
+MIT/GNU Scheme is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with MIT/GNU Scheme; if not, write to the Free Software
+Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301,
+USA.
+
+|#
+
+;;;; Script to run the tests
+
+;++ This whole script is a horrible kludge. Please rewrite it!
+
+(declare (usual-integrations))
+\f
+(load (merge-pathnames "load" (directory-pathname (current-load-pathname))))
+
+;;; Can't just look at */test-*.scm because not everything has been
+;;; converted to use the automatic framework.
+
+(define known-tests
+ '(
+ ;++ Kludge to run the flonum cast tests interpreted and compiled --
+ ;++ the compiler has a bug with negative zero.
+ "microcode/test-flonum-casts"
+ "microcode/test-flonum-casts.scm"
+ "microcode/test-flonum-casts.com"
+ "microcode/test-lookup"
+ ("runtime/test-char-set" (runtime character-set))
+ "runtime/test-division"
+ "runtime/test-ephemeron"
+ "runtime/test-floenv"
+ "runtime/test-hash-table"
+ "runtime/test-integer-bits"
+ "runtime/test-process"
+ "runtime/test-regsexp"
+ "runtime/test-wttree"
+ ))
+
+(with-working-directory-pathname
+ (directory-pathname (current-load-pathname))
+ (lambda ()
+ (for-each (lambda (entry)
+ (receive (pathname environment)
+ (if (pair? entry)
+ (values (car entry) (->environment (cadr entry)))
+ (values entry #!default))
+ (with-notification
+ (lambda (output-port)
+ (write-string "Run tests " output-port)
+ (write pathname output-port)
+ (if (not (default-object? environment))
+ (begin
+ (write-string " in environment " output-port)
+ (write (cond ((environment->package environment)
+ => package/name)
+ (else environment))
+ output-port))))
+ (lambda ()
+ (if (not (pathname-type pathname))
+ (with-working-directory-pathname
+ (directory-pathname pathname)
+ (lambda ()
+ ;++ Kludge around a bug in SF...
+ (compile-file (file-pathname pathname)
+ '()
+ environment))))
+ (run-unit-tests pathname environment)))))
+ known-tests)))