Make unit tests work & run tests on darcs record
test.lisp
Mon Apr 6 13:50:14 CEST 2009 Tobias Rautenkranz <tobias@rautenkranz.ch>
* Make unit tests work & run tests on darcs record
--- old-qt.tests/test.lisp 1970-01-01 01:00:00.000000000 +0100
+++ new-qt.tests/test.lisp 2014-10-30 07:59:31.000000000 +0100
@@ -0,0 +1,25 @@
+#|
+exec -a "$0" sbcl --noinform --noprint --disable-debugger --load $0 --end-toplevel-options "$@"
+# do not use --script to allow loading mudballs with ${HOME}/.sbclrc
+# Used for testing on darcs record.
+|#
+
+
+(in-package :sysdef-user)
+
+(defun load-sysdef (pathname system)
+ (load pathname)
+ (setf (mb.sysdef::pathname-of (find-system system)) pathname))
+
+(defun load-sysdef-file (system-name)
+ "Loads a mbd file in the current directory."
+ (load-sysdef (make-pathname :defaults *default-pathname-defaults*
+ :name (string-downcase system-name)
+ :type "mbd")
+ system-name))
+
+(load-sysdef-file :qt.tests)
+(mb:clean :qt.tests)
+(mb:test :qt.tests)
+
+(sb-ext:quit)