X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=tests%2Ftests.lisp;h=dd609f08d865ef3a524355a155270e77568c7e19;hb=4661cdbb26de93d072226ab6cd9325c1ca7bb75e;hp=24808216d6b07656fde9f1c9add6b2b8d13c7d1d;hpb=aa08e90d2eae01dd873d2ce2caad7d9371230ef0;p=clsql.git diff --git a/tests/tests.lisp b/tests/tests.lisp index 2480821..dd609f0 100644 --- a/tests/tests.lisp +++ b/tests/tests.lisp @@ -7,7 +7,7 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Mar 2002 ;;;; -;;;; $Id: tests.lisp,v 1.3 2003/05/02 03:29:28 kevin Exp $ +;;;; $Id$ ;;;; ;;;; This file, part of CLSQL, is Copyright (c) 2002 by Kevin M. Rosenberg ;;;; @@ -55,7 +55,9 @@ (setf (pgsql-socket-spec specs) (cadr (assoc :postgresql-socket config))) specs)) - (error "CLSQL tester config file ~S not found" path))) + (progn + (warn "CLSQL tester config file ~S not found" path) + nil))) (defmethod mysql-table-test ((test conn-specs)) (test-table (mysql-spec test) :mysql)) @@ -220,8 +222,11 @@ (defun drop-test-table (db) (clsql:execute-command "DROP TABLE test_clsql" :database db)) -(defun clsql-tests () +(defun run-tests () (let ((specs (read-specs))) + (unless specs + (warn "Not running test because test configuration file is missing") + (return-from run-tests :skipped)) (with-tests (:name "CLSQL") (mysql-low-level specs) (mysql-table-test specs) @@ -231,8 +236,3 @@ )) t) -;(deftest clsql.all (clsql-tests) t) -(clsql-tests) - - -