1.0.22.19: Canonicalize whitespace in .asd files.
[sbcl.git] / contrib / sb-aclrepl / sb-aclrepl.asd
index 565f3e9..4fbae1d 100644 (file)
@@ -4,14 +4,26 @@
 (in-package #:sb-aclrepl-system)
 
 (defsystem sb-aclrepl
-    :version "0.5"
-    :components ((:file "repl")
-                (:file "inspect" :depends-on ("repl"))))
+    :author "Kevin Rosenberg <kevin@rosenberg.net>"
+    :description "An AllegroCL compatible REPL"
+    #+sb-building-contrib :pathname
+    #+sb-building-contrib "SYS:CONTRIB;SB-ACLREPL;"
+    :components ((:file "toplevel")
+                 (:file "repl" :depends-on ("toplevel"))
+                 (:file "inspect" :depends-on ("repl"))
+                 (:file "debug" :depends-on ("repl"))))
 
+(defmethod perform :after ((o load-op) (c (eql (find-system :sb-aclrepl))))
+  (provide 'sb-aclrepl))
 
-;; FIXME - test for successful compilation of sb-aclrepl
 (defmethod perform ((o test-op) (c (eql (find-system :sb-aclrepl))))
-  (and (boundp 'sb-impl::*inspect-fun*)
-       (boundp 'sb-int:*repl-prompt-fun*)
-       (boundp 'sb-int:*repl-read-form-fun*)))
+  (oos 'load-op 'sb-aclrepl-tests)
+  (oos 'test-op 'sb-aclrepl-tests))
 
+(defsystem sb-aclrepl-tests
+    :depends-on (sb-rt)
+    :components ((:file "tests")))
+
+(defmethod perform ((o test-op) (c (eql (find-system :sb-aclrepl-tests))))
+  (or (funcall (intern "DO-TESTS" (find-package "SB-RT")))
+      (error "test-op failed")))