;;; -*-  Lisp -*-

(defsystem "sb-aclrepl"
    :author "Kevin Rosenberg <kevin@rosenberg.net>"
    :description "An AllegroCL compatible REPL"
    #+sb-building-contrib :pathname
    #+sb-building-contrib #p"SYS:CONTRIB;SB-ACLREPL;"
    :components ((:file "toplevel")
                 (:file "repl" :depends-on ("toplevel"))
                 (:file "inspect" :depends-on ("repl"))
                 (:file "debug" :depends-on ("repl")))
    :perform (load-op :after (o c) (provide 'sb-aclrepl))
    :in-order-to ((test-op (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")))
