ba901c83a2a04e20055758f3121cd807225408b7
[sbcl.git] / contrib / sb-concurrency / sb-concurrency.asd
1 ;;;; -*-  Lisp -*-
2 ;;;;
3 ;;;; This software is part of the SBCL system. See the README file for
4 ;;;; more information.
5 ;;;;
6 ;;;; This software is derived from the CMU CL system, which was
7 ;;;; written at Carnegie Mellon University and released into the
8 ;;;; public domain. The software is in the public domain and is
9 ;;;; provided with absolutely no warranty. See the COPYING and CREDITS
10 ;;;; files for more information.
11
12 (in-package :cl-user)
13
14 (asdf:defsystem :sb-concurrency
15   :components ((:file "package")
16                (:file "frlock"   :depends-on ("package"))
17                (:file "queue"    :depends-on ("package"))
18                (:file "mailbox"  :depends-on ("package" "queue"))
19                (:file "gate"     :depends-on ("package"))))
20
21 (asdf:defsystem :sb-concurrency-tests
22   :depends-on (:sb-concurrency :sb-rt)
23   :components
24   ((:module tests
25     :components
26     ((:file "package")
27      (:file "test-utils"   :depends-on ("package"))
28      (:file "test-frlock"  :depends-on ("package" "test-utils"))
29      (:file "test-queue"   :depends-on ("package" "test-utils"))
30      (:file "test-mailbox" :depends-on ("package" "test-utils"))
31      (:file "test-gate"    :depends-on ("package" "test-utils"))))))
32
33 (defmethod asdf:perform :after ((o asdf:load-op)
34                                 (c (eql (asdf:find-system :sb-concurrency))))
35   (provide 'sb-concurrency))
36
37 (defmethod asdf:perform ((o asdf:test-op)
38                          (c (eql (asdf:find-system :sb-concurrency))))
39   (asdf:oos 'asdf:load-op :sb-concurrency-tests)
40   (asdf:oos 'asdf:test-op :sb-concurrency-tests))
41
42 (defmethod asdf:perform ((o asdf:test-op)
43                          (c (eql (asdf:find-system :sb-concurrency-tests))))
44   (or (funcall (intern "DO-TESTS" (find-package "SB-RT")))
45       (error "~S failed" 'asdf:test-op)))