Cleaned up sb-bsd-sockets ...
... some package renaming missed last time
... 'make test' now actually runs the test scripts instead of
just returning successfully
-SYSTEM=bsd-sockets
+SYSTEM=sb-bsd-sockets
all:
$(MAKE) -C ../asdf
echo "(asdf:operate 'asdf:load-op :$(SYSTEM))" | \
$(SBCL) --eval '(load "../asdf/asdf")'
-test:
- true
+test: all
+ echo "(asdf:operate 'asdf:load-op :$(SYSTEM)) \
+ (or (rt:do-tests) (error \"test failed, cannot install\"))" | \
+ $(SBCL) --eval '(load "../asdf/asdf")'
+
-install: all
+install: test
tar cf - . | ( cd $(INSTALL_DIR) && tar xpvf - )
( cd $(SBCL_HOME)/systems && ln -fs ../$(SYSTEM)/$(SYSTEM).asd . )
(princ (list filename output-file real-output-file
tmp-c-source tmp-a-dot-out tmp-constants))
(terpri)
- (funcall (intern "C-CONSTANTS-EXTRACT" (find-package "BSD-SOCKETS-SYSTEM"))
- filename tmp-c-source :bsd-sockets-internal)
+ (funcall (intern "C-CONSTANTS-EXTRACT"
+ (find-package "SB-BSD-SOCKETS-SYSTEM"))
+ filename tmp-c-source :sb-bsd-sockets-internal)
(and
(= (run-shell-command
"/usr/bin/gcc -o ~S ~S" (namestring tmp-a-dot-out)
#+cmu (ext:load-foreign filename)
#+sbcl (sb-alien:load-1-foreign filename))))
-(defsystem bsd-sockets
+(defsystem sb-bsd-sockets
:version "0.58"
:components ((:file "defpackage" :depends-on ("rt"))
(:file "split" :depends-on ("defpackage"))
(setf (elt buffer i) c))))
;;; these require that the echo services are turned on in inetd
-
+#+internet-available
(deftest simple-tcp-client
(let ((s (make-instance 'inet-socket :type :stream :protocol :tcp))
(data (make-string 200)))
(> (length data) 0))))
t)
+#+internet-available
(deftest simple-udp-client
(let ((s (make-instance 'inet-socket :type :datagram :protocol (get-protocol-by-name "udp")))
(data (make-string 200)))
;;; these require that the internet (or bits of it, atleast) is available
+#+internet-available
(deftest get-host-by-name
(equalp (car (host-ent-addresses (get-host-by-name "a.root-servers.net")))
#(198 41 0 4))
t)
+#+internet-available
(deftest get-host-by-address
(host-ent-name (get-host-by-address #(198 41 0 4)))
"a.root-servers.net")
(format stream "~A HTTP/1.0~%~%" request))
s))
+#+internet-available
(deftest simple-http-client-1
(handler-case
(let ((s (http-stream "ww.telent.net" 80 "HEAD /")))
t)
+#+internet-available
(deftest sockopt-receive-buffer
;; on Linux x86, the receive buffer size appears to be doubled in the
;; kernel: we set a size of x and then getsockopt() returns 2x.
;;; versions, especially for internal versions off the main CVS
;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)
-"0.7.12.28"
+"0.7.12.29"