1 (defpackage #:sb-mpfr-system (:use #:asdf #:cl))
3 (in-package #:sb-mpfr-system)
8 :description "bignum float calculations for SBCL using the MPFR library"
11 :components ((:module sb-mpfr
13 :components ((:file "mpfr")))))
15 (defsystem sb-mpfr-tests
16 :depends-on (sb-rt sb-mpfr)
17 :components ((:file "tests")))
19 (defmethod perform :after ((o load-op) (c (eql (find-system :sb-mpfr))))
22 (defmethod perform ((o test-op) (c (eql (find-system :sb-mpfr))))
23 (operate 'load-op 'sb-mpfr)
24 (cond ((member :sb-mpfr *features*)
25 (operate 'load-op 'sb-mpfr-tests)
26 (operate 'test-op 'sb-mpfr-tests))
28 (warn "unable to test sb-mpfr: libmpfr unavailable"))))
30 (defmethod perform ((o test-op) (c (eql (find-system :sb-mpfr-tests))))
31 (multiple-value-bind (soft strict pending)
32 (funcall (intern "DO-TESTS" (find-package "SB-RT")))
33 (declare (ignorable pending))
36 (warn "ignoring expected failures in sb-mpfr-tests"))
38 (error "sb-mpfr-tests failed with unexpected failures"))))