projects
/
clsql.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r8176: changes for macosx, documentation fixes
[clsql.git]
/
tests
/
tests.lisp
diff --git
a/tests/tests.lisp
b/tests/tests.lisp
index 415fa2fdeb3655adee04277a822d4e133e693cea..dd609f08d865ef3a524355a155270e77568c7e19 100644
(file)
--- a/
tests/tests.lisp
+++ b/
tests/tests.lisp
@@
-7,7
+7,7
@@
;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: Mar 2002
;;;;
;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: Mar 2002
;;;;
-;;;; $Id
: tests.lisp,v 1.1 2003/05/02 03:08:58 kevin Exp
$
+;;;; $Id$
;;;;
;;;; This file, part of CLSQL, is Copyright (c) 2002 by Kevin M. Rosenberg
;;;;
;;;;
;;;; 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))
(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))
(defmethod mysql-table-test ((test conn-specs))
(test-table (mysql-spec test) :mysql))
@@
-220,15
+222,17
@@
(defun drop-test-table (db)
(clsql:execute-command "DROP TABLE test_clsql" :database db))
(defun drop-test-table (db)
(clsql:execute-command "DROP TABLE test_clsql" :database db))
-(defun
do-test
()
+(defun
run-tests
()
(let ((specs (read-specs)))
(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)
(pgsql-table-test specs)
(pgsql-socket-table-test specs)
(aodbc-table-test specs)
(with-tests (:name "CLSQL")
(mysql-low-level specs)
(mysql-table-test specs)
(pgsql-table-test specs)
(pgsql-socket-table-test specs)
(aodbc-table-test specs)
- )))
+ ))
+ t)
-
-(do-test)