4bd56e6188fe9e676de9d5813cdae0951a893925
[clsql.git] / clsql-tests.asd
1 ;;;; -*- Mode: LISP; Syntax: ANSI-Common-Lisp; Base: 10 -*-
2 ;;;; *************************************************************************
3 ;;;; FILE IDENTIFICATION
4 ;;;;
5 ;;;; File:     clsql-tests.asd
6 ;;;; Authors:  Marcus Pearce <m.t.pearce@city.ac.uk> and Kevin Rosenberg 
7 ;;;; Created:  30/03/2004
8 ;;;; Updated:  $Id$
9 ;;;;
10 ;;;; This file is part of CLSQL.
11 ;;;;
12 ;;;; CLSQL users are granted the rights to distribute and use this software
13 ;;;; as governed by the terms of the Lisp Lesser GNU Public License
14 ;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL.
15 ;;;; *************************************************************************
16
17 (in-package #:cl-user)
18 (defpackage #:clsql-tests-system (:use #:asdf #:cl))
19 (in-package #:clsql-tests-system)
20
21 (defsystem clsql-tests
22     :name "CLSQL Tests"
23     :author ""
24     :maintainer ""
25     :version ""
26     :licence ""
27     :description "A regression test suite for CLSQL."
28     :depends-on (clsql rt)
29     :components 
30     ((:module tests
31               :serial t
32               :components ((:file "package")
33                            (:file "utils")
34                            (:file "test-init")
35                            (:file "datasets")
36                            (:file "ds-employees")
37                            (:file "ds-nodes")
38                            (:file "benchmarks")
39                            (:file "test-internal")
40                            (:file "test-basic")
41                            (:file "test-time")
42                            (:file "test-connection")
43                            (:file "test-fddl")
44                            (:file "test-fdml")
45                            (:file "test-ooddl")
46                            (:file "test-oodml")
47                            (:file "test-syntax")))))
48
49 (defmethod perform ((o test-op) (c (eql (find-system 'clsql-tests))))
50   (operate 'load-op 'clsql)
51   (unless (funcall (intern (symbol-name '#:run-tests)
52                            (find-package '#:clsql-tests)))
53     (error "test-op failed")))