2 (cl:eval-when (:compile-toplevel :load-toplevel :execute)
3 (asdf:oos 'asdf:load-op :sb-grovel))
4 (defpackage #:sb-posix-system (:use #:asdf #:cl #:sb-grovel))
5 (in-package #:sb-posix-system)
8 :depends-on (sb-grovel)
9 #+sb-building-contrib :pathname
10 #+sb-building-contrib #p"SYS:CONTRIB;SB-POSIX;"
11 :components ((:file "defpackage")
12 (:file "designator" :depends-on ("defpackage"))
13 (:file "macros" :depends-on ("designator"))
14 (sb-grovel:grovel-constants-file
16 :do-not-grovel #.(progn #-sb-building-contrib t)
17 :package :sb-posix :depends-on ("defpackage"))
18 (:file "interface" :depends-on ("constants" "macros" "designator"))))
20 (defsystem sb-posix-tests
22 :components ((:file "posix-tests")))
24 (defmethod perform :after ((o load-op) (c (eql (find-system :sb-posix))))
27 (defmethod perform ((o test-op) (c (eql (find-system :sb-posix))))
28 (operate 'load-op 'sb-posix-tests)
29 (operate 'test-op 'sb-posix-tests))
31 (defmethod perform ((o test-op) (c (eql (find-system :sb-posix-tests))))
32 (funcall (intern "DO-TESTS" (find-package "SB-RT")))
33 (let ((failures (funcall (intern "PENDING-TESTS" "SB-RT")))
34 (ignored-failures (loop for sym being the symbols of :sb-posix-tests
35 if (search ".ERROR" (symbol-name sym))
40 ((null (set-difference failures ignored-failures))
41 (warn "~@<some POSIX implementations return incorrect error values for ~
42 failing calls, but there is legitimate variation between ~
43 implementations too. If you think the errno ~
44 from your platform is valid, please contact the sbcl ~
45 developers; otherwise, please submit a bug report to your ~
46 kernel distributor~@:>")
49 (error "non-errno tests failed!")))))