X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=clsql-tests.asd;h=274e69b6bc3feed5b7edcba81f87c89bef4e8fa2;hb=e5744a78271044484b3399d4fc1d55b3e8808784;hp=d48b25eb4917400193d0ebc788be58acecd79f29;hpb=73cf858d596ad1d51c745b478292433617cf9d72;p=clsql.git diff --git a/clsql-tests.asd b/clsql-tests.asd index d48b25e..274e69b 100644 --- a/clsql-tests.asd +++ b/clsql-tests.asd @@ -2,10 +2,10 @@ ;;;; ************************************************************************* ;;;; FILE IDENTIFICATION ;;;; -;;;; File: clsql-tests.asd -;;;; Author: Marcus Pearce -;;;; Created: 30/03/2004 -;;;; Updated: <04/04/2004 12:34:41 marcusp> +;;;; File: clsql-tests.asd +;;;; Authors: Marcus Pearce and Kevin Rosenberg +;;;; Created: 30/03/2004 +;;;; Updated: $Id$ ;;;; ;;;; $Id$ ;;;; @@ -16,15 +16,17 @@ ;;;; ====================================================================== (in-package #:cl-user) +(defpackage #:clsql-tests-system (:use #:asdf #:cl)) +(in-package #:clsql-tests-system) -(asdf:defsystem clsql-tests +(defsystem clsql-tests :name "CLSQL Tests" :author "" :maintainer "" :version "" :licence "" :description "A regression test suite for CLSQL." - :depends-on (clsql rt) + :depends-on (clsql clsql-classic-tests rt) :components ((:module tests :serial t @@ -36,3 +38,9 @@ (:file "test-ooddl") (:file "test-oodml") (:file "test-syntax"))))) + +(defmethod perform ((o test-op) (c (eql (find-system 'clsql-tests)))) + (operate 'load-op 'clsql) + (unless (funcall (intern (symbol-name '#:run-tests) + (find-package '#:clsql-tests))) + (error "test-op failed")))