f6f3d44445fb65f61ef6b507471016ae47973ec4
[xlunit.git] / xlunit.asd
1 ;;;; -*- Mode: LISP; Syntax: ANSI-Common-Lisp; Base: 10 -*-
2 ;;;; *************************************************************************
3 ;;;; FILE IDENTIFICATION
4 ;;;;
5 ;;;; Name:          xlunit.asd
6 ;;;; Purpose:       ASDF definition file for Xlunit
7 ;;;; Programmer:    Kevin M. Rosenberg
8 ;;;; Date Started:  Aug 2003
9 ;;;;
10 ;;;; $Id: xlunit.asd,v 1.3 2003/08/04 16:13:58 kevin Exp $
11 ;;;; *************************************************************************
12
13 (defpackage #:xlunit-system (:use #:asdf #:cl))
14 (in-package #:xlunit-system)
15
16 (defsystem xlunit
17   :name "xlunit"
18   :author "Kevin Rosenberg based on work by Craig Brozensky"
19   :maintainer "Kevin M. Rosenberg <kmr@debian.org>"
20   :licence "BSD"
21   :description "Extreme Lisp Testing Suite"
22   :long-description "The XLUnit package is toolkit for building test suites. It is based on the XPTest package by Craig Brozensky and the JUnit package by Kent Beck."
23   
24   :serial t
25   :components
26   ((:file "package")
27    (:file "assert")
28    (:file "test-case")
29    (:file "suite")
30    (:file "listener")
31    (:file "result")
32    (:file "textui")
33    (:file "printer")
34    ))
35
36 (defmethod perform ((o test-op) (c (eql (find-system 'xlunit))))
37   (oos 'load-op 'xlunit-tests :force t)
38   (oos 'test-op 'xlunit-tests :force t))
39
40 (defsystem xlunit-tests
41     :depends-on (xlunit)
42     :components ((:file "tests")))
43
44 (defmethod perform ((o test-op) (c (eql (find-system 'xlunit-tests))))
45   (or (funcall (intern (symbol-name '#:do-tests)
46                        (find-package '#:xlunit-tests)))
47       (error "test-op failed")))