0.8.0.11:
[sbcl.git] / contrib / sb-simple-streams / sb-simple-streams.asd
index a652c3b..e22e85b 100644 (file)
@@ -7,14 +7,13 @@
 
 
 (defsystem sb-simple-streams
-  :depends-on (sb-rt sb-grovel)
+  :depends-on (sb-grovel sb-bsd-sockets)
   :components ((:file "package")
                (:file "fndb")
                (grovel-constants-file "constants"
                                       :package :sb-simple-streams
                                       :pathname "constants.lisp"
                                       :depends-on ("package"))
-               ;; (:file "stuff_grovelled_from_headers")
                (:file "unix" :depends-on ("constants"))
                ;;(:file "pcl")
                ;;(:file "ext-format" :depends-on ("package"))
                (:file "simple-streams" :depends-on ("cl" "strategy" "unix"))
                ;;(:file "gray-compat" :depends-on ("package"))
                ;;(:file "iodefs" :depends-on ("package"))
-               (:file "simple-stream-tests" :depends-on ("simple-streams"))
                ))
 
+(defmethod perform :after ((o load-op)
+                           (c (eql (find-system :sb-simple-streams))))
+  (provide 'sb-simple-streams))
+
 (defmethod perform ((o test-op) (c (eql (find-system :sb-simple-streams))))
+  (operate 'load-op 'sb-simple-streams-tests)
+  (operate 'test-op 'sb-simple-streams-tests))
+
+
+(defsystem sb-simple-streams-tests
+  :depends-on (sb-rt sb-simple-streams)
+  :components ((:file "simple-stream-tests")))
+
+(defmethod perform ((o test-op)
+                    (c (eql (find-system :sb-simple-streams-tests))))
   (or (funcall (intern "DO-TESTS" (find-package "SB-RT")))
       (error "test-op failed")))