X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=tests%2Futils.lisp;h=396e3030f629e99ae7e0f076b8756d7c1fc2ae93;hb=0b757e652eda05d8d824438d925665f17e764d93;hp=ea117861319898bded8705c0577ca31c97b246c7;hpb=d2d49ab13c98bc7a1819a0fd3968268a5567bdc3;p=clsql.git diff --git a/tests/utils.lisp b/tests/utils.lisp index ea11786..396e303 100644 --- a/tests/utils.lisp +++ b/tests/utils.lisp @@ -16,13 +16,19 @@ (in-package #:clsql-tests) +(defun %get-int (v) + (etypecase v + (string (parse-integer v :junk-allowed t)) + (integer v) + (number (truncate v)))) + (defvar *config-pathname* (make-pathname :defaults (user-homedir-pathname) :name ".clsql-test" :type "config")) (defvar +all-db-types+ - '(:postgresql :postgresql-socket :mysql :sqlite :sqlite3 :odbc :oracle + '(:postgresql :postgresql-socket :postgresql-socket3 :mysql :sqlite :sqlite3 :odbc :oracle #+allegro :aodbc)) (defclass conn-specs () @@ -30,6 +36,7 @@ (mysql :accessor mysql-spec :initform nil) (postgresql :accessor postgresql-spec :initform nil) (postgresql-socket :accessor postgresql-socket-spec :initform nil) + (postgresql-socket3 :accessor postgresql-socket3-spec :initform nil) (sqlite :accessor sqlite-spec :initform nil) (sqlite3 :accessor sqlite3-spec :initform nil) (odbc :accessor odbc-spec :initform nil)