-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprotest.asd
161 lines (147 loc) · 5.36 KB
/
protest.asd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
;;;; protest.asd
(asdf:defsystem #:protest
:description "Common Lisp PROtocol and TESTcase Manager"
:author "Michał \"phoe\" Herda <[email protected]>"
:license "LLGPL"
:serial t
:depends-on (#:protest/base
#:protest/protocol
#:protest/test-case
;; #:protest/web
)
:components ((:file "src/package")))
(defmethod perform ((o test-op) (c (eql (find-system :protest))))
(load-system :protest/test)
(symbol-call :protest/test :run-all-tests))
(asdf:defsystem #:protest/base
:description "Base macros and utilities for PROTEST"
:author "Michał \"phoe\" Herda <[email protected]>"
:license "LLGPL"
:serial t
:depends-on (#:alexandria
#:closer-mop
#:trivial-garbage)
:components ((:file "src/base/package")
(:file "src/base/base")
(:file "src/base/protocol-error")))
(asdf:defsystem #:protest/ftype
:description "FTYPE generation for PROTEST"
:author "Michał \"phoe\" Herda <[email protected]>"
:license "LLGPL"
:serial t
:depends-on (#:alexandria)
:components ((:file "src/ftype/package")
(:file "src/ftype/ftype")))
(asdf:defsystem #:protest/protocol
:description "Protocol defining utilities for PROTEST"
:author "Michał \"phoe\" Herda <[email protected]>"
:license "LLGPL"
:serial t
:depends-on (#:alexandria
#:closer-mop
#:moptilities
#:protest/base
#:protest/ftype)
:components ((:file "src/protocol/package")
(:file "src/protocol/elements")
(:file "src/protocol/elements/function")
(:file "src/protocol/elements/macro")
(:file "src/protocol/elements/class")
(:file "src/protocol/elements/condition-type")
(:file "src/protocol/elements/variable")
(:file "src/protocol/elements/category")
(:file "src/protocol/elements/config")
(:file "src/protocol/definition")
(:file "src/protocol/validation")
(:file "src/protocol/macro")))
(asdf:defsystem #:protest/test-case
:description "Test case defining utilities for PROTEST"
:author "Michał \"phoe\" Herda <[email protected]>"
:license "LLGPL"
:serial t
:depends-on (#:alexandria
#:protest/base)
:components ((:file "src/test-case/package")
(:file "src/test-case/test-step")
(:file "src/test-case/test-case")))
(asdf:defsystem #:protest/parachute
:description "PROTEST integration with Parachute testing library"
:author "Michał \"phoe\" Herda <[email protected]>"
:license "Artistic"
:serial t
:depends-on (#:alexandria
#:named-readtables
#:parachute
#:protest/base
#:protest/test-case)
:components ((:file "src/parachute/package")
(:file "src/parachute/base")
(:file "src/parachute/macros")
(:file "src/parachute/parachute-modification")
(:file "src/parachute/test")))
(asdf:defsystem #:protest/1am
:description "PROTEST integration with 1AM testing library"
:author "Michał \"phoe\" Herda <[email protected]>"
:license "LLGPL"
:serial t
:depends-on (#:alexandria
#:named-readtables
#:1am
#:protest/base
#:protest/test-case)
:components ((:file "src/1am/package")
(:file "src/1am/formatter")
(:file "src/1am/macro")))
(asdf:defsystem #:protest/test
:description "Tests for PROTEST"
:author "Michał \"phoe\" Herda <[email protected]>"
:license "LLGPL"
:serial t
:depends-on (#:protest
#:protest/1am)
:components ((:file "t/test")
(:file "t/framework")
(:file "t/base")
(:file "t/ftype")
(:file "t/protocol")
(:file "t/test-case")
(:file "t/1am")))
;;; PROTEST common protocols
(eval-when (:compile-toplevel :load-toplevel :execute)
(defvar *%protest-commons* '()))
(defmacro define-protest-common
(name description &key (subdirectory ""))
(let ((filename (string-downcase (string name)))
(symbol (make-symbol (uiop:strcat (string '#:protest/common/)
(string name)))))
`(progn
(asdf:defsystem ,symbol
:description ,description
:author "Michał \"phoe\" Herda <[email protected]>"
:license "LLGPL"
:serial t
:depends-on (#:protest/protocol)
:components
((:file ,(uiop:strcat "src/common/" subdirectory filename))))
(eval-when (:compile-toplevel :load-toplevel :execute)
(pushnew ',symbol *%protest-commons*)))))
(define-protest-common #:date
"Date protocol from PROTEST")
(define-protest-common #:addressed
"Addressed protocol from PROTEST"
:subdirectory "mixin/")
(define-protest-common #:handling
"Handling protocol from PROTEST"
:subdirectory "mixin/")
(define-protest-common #:killable
"Killable protocol from PROTEST"
:subdirectory "mixin/")
(define-protest-common #:named
"Named protocol from PROTEST"
:subdirectory "mixin/")
(asdf:defsystem #:protest/common
:description "Common protocols and examples of PROTEST"
:author "Michał \"phoe\" Herda <[email protected]>"
:license "LLGPL"
:serial t
:depends-on #.*%protest-commons*)