/
xfactory.asd
36 lines (28 loc) · 1.14 KB
/
xfactory.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
;;; cl-libxml2-xfactory.asd
(defpackage :xfactory-system
(:use :cl :asdf))
(in-package :xfactory-system)
(defsystem :xfactory
:depends-on (#:cl-libxml2)
:components ((:module :xfactory
:components ((:file "packages")
(:file "xfactory" :depends-on ("packages"))))))
(defmethod perform ((o test-op) (c (eql (find-system 'xfactory))))
(operate 'load-op 'xfactory-test)
(operate 'test-op 'xfactory-test :force t))
;;; tests
(defsystem :xfactory-test
:depends-on (#:xfactory #:lift)
:components
((:module :test
:components
((:file "xfactory")))))
(defmethod perform ((o test-op) (c (eql (find-system 'xfactory-test))))
(operate 'load-op 'xfactory-test )
(let* ((test-results (funcall (intern (symbol-name 'run-xfactory-tests) :xfactory.test)))
(errors (funcall (intern (symbol-name 'errors) :lift) test-results))
(failures (funcall (intern (symbol-name 'failures) :lift) test-results)))
(if (or errors failures)
(error "test-op failed: ~A"
(concatenate 'list errors failures))
(print test-results))))