X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=tests%2Ftest-init.lisp;h=f0ff688bfa8537c8f40db699d83f572c0db0be6f;hb=09f07ac9d914a83f9426609f3264f4e66b5a6d97;hp=ed949879c440b32c3a5ffd5116845f929d994fb6;hpb=69df048c1413aa55d9816ad4c7d6f32ae2d6c6cc;p=clsql.git diff --git a/tests/test-init.lisp b/tests/test-init.lisp index ed94987..f0ff688 100644 --- a/tests/test-init.lisp +++ b/tests/test-init.lisp @@ -16,7 +16,7 @@ (in-package #:clsql-tests) -(defvar *report-stream* nil "Stream to send text report.") +(defvar *report-stream* *standard-output* "Stream to send text report.") (defvar *sexp-report-stream* nil "Stream to send sexp report.") (defvar *rt-connection*) (defvar *rt-fddl*) @@ -551,16 +551,18 @@ (values (nreverse test-forms) (nreverse skip-tests)))) -(defun rl () +(defun rapid-load (type) "Rapid load for interactive testing." (when *default-database* (disconnect :database *default-database*)) - (test-connect-to-database :postgresql (car (postgresql-spec (read-specs)))) + (test-connect-to-database type (car (db-type-spec type (read-specs)))) (test-initialise-database)) +(defun rl () + (rapid-load :postgresql)) + (defun rlm () - "Rapid load for interactive testing." - (when *default-database* - (disconnect :database *default-database*)) - (test-connect-to-database :mysql (car (mysql-spec (read-specs)))) - (test-initialise-database)) + (rapid-load :mysql)) + +(defun rlo () + (rapid-load :odbc))