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 "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 :package :sb-posix :depends-on ("defpackage"))
17 (:file "interface" :depends-on ("constants" "macros" "designator"))))
19 (defsystem sb-posix-tests
21 :components ((:file "posix-tests")))
23 (defmethod perform :after ((o load-op) (c (eql (find-system :sb-posix))))
26 (defmethod perform ((o test-op) (c (eql (find-system :sb-posix))))
27 (operate 'load-op 'sb-posix-tests)
28 (operate 'test-op 'sb-posix-tests))
30 (defmethod perform ((o test-op) (c (eql (find-system :sb-posix-tests))))
31 (funcall (intern "DO-TESTS" (find-package "SB-RT")))
32 (let ((failures (funcall (intern "PENDING-TESTS" "SB-RT")))
33 (ignored-failures (loop for sym being the symbols of :sb-posix-tests
34 if (search ".ERROR" (symbol-name sym))
39 ((null (set-difference failures ignored-failures))
40 (warn "~@<some POSIX implementations return incorrect error values for ~
41 failing calls, but there is legitimate variation between ~
42 implementations too. If you think the errno ~
43 from your platform is valid, please contact the sbcl ~
44 developers; otherwise, please submit a bug report to your ~
45 kernel distributor~@:>")
48 (error "non-errno tests failed!")))))