-
Notifications
You must be signed in to change notification settings - Fork 6
/
lurk.asd
35 lines (35 loc) · 1.55 KB
/
lurk.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
(asdf:defsystem "lurk"
:description "lurk"
:version "0.0.1"
:author "porcuquine <[email protected]>"
:licence "MIT"
:depends-on ("defstar" "fiveam" "unix-opts" "uiop")
:components ((:module "base"
:serial t
:components
((:file "base")
(:file "macros")))
(:module "api"
:depends-on ("base")
:serial t
:components
((:file "package")
(:file "api")))
(:module "tooling"
:depends-on ("api")
:serial t
:components
((:file "package")
(:file "repl")
(:file "example"))))
:in-order-to ((asdf:test-op (asdf:load-op "lurk")))
:perform (asdf:test-op (o c)
(flet ((run-suite (suite) (uiop:symbol-call :fiveam :run! suite)))
(let* ((suite-specs '((#:master-suite #:lurk)))
(failed (loop for spec in suite-specs
for (name-spec package-spec) = spec
for suite = (find-symbol (string name-spec) (string package-spec))
unless (run-suite suite)
collect suite)))
(when failed
(error "Some tests failed: ~A." failed))))))