Load and use test-i18n.lisp when uffi:no-i18n is not present in cl:*features*
authorKevin Rosenberg <kevin@rosenberg.net>
Fri, 5 Feb 2010 22:27:37 +0000 (15:27 -0700)
committerKevin Rosenberg <kevin@rosenberg.net>
Fri, 5 Feb 2010 22:27:37 +0000 (15:27 -0700)
ChangeLog
clsql-tests.asd
sql/utils.lisp
tests/test-i18n.lisp
tests/test-init.lisp

index 8abf4232af5885025eb1723e42bf29626e827d4b..572da10ac181be33ccbddcbe9038f067c26f1bea 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-02-05  Kevin Rosenberg <kevin@rosenberg.net>
+       * clsql-test.asd, tests/{test-i18n,test-init}.lisp: 
+       Load test-i18n.lisp and use its tests as long as 'uffi:no-i18n is
+       not present in cl:*features*. This requires UFFI 1.7.2 or above.
+
 2010-02-05  Kevin Rosenberg <kevin@rosenberg.net>
        * sql/utils.lisp: Reading #\no-break_space causes an
        error for non-unicode SBCL. Conditionalize read of
 2010-02-05  Kevin Rosenberg <kevin@rosenberg.net>
        * sql/utils.lisp: Reading #\no-break_space causes an
        error for non-unicode SBCL. Conditionalize read of
index 60ffd0eb98b2896b970489180a6d1d8cd5c442c4..ddd2bbee5e0c5e70df850bacff19e12060fe46d3 100644 (file)
@@ -43,7 +43,9 @@
                           (:file "test-fdml")
                           (:file "test-ooddl")
                           (:file "test-oodml")
                           (:file "test-fdml")
                           (:file "test-ooddl")
                           (:file "test-oodml")
-                          (:file "test-syntax")))))
+                          (:file "test-syntax")
+                           #-uffi:no-i18n (:file "test-i18n")
+                           ))))
 
 (defmethod perform ((o test-op) (c (eql (find-system 'clsql-tests))))
   (operate 'load-op 'clsql)
 
 (defmethod perform ((o test-op) (c (eql (find-system 'clsql-tests))))
   (operate 'load-op 'clsql)
index 0ead522e403bfff993eb9d4229a73446973f0d43..515dc49359e98d1a5f6e48d97d72b19c3aa6c3a2 100644 (file)
@@ -24,7 +24,7 @@
     ;; AllegroCL 8-bit strings don't fail on reading #\no-break_space,
     ;; but can't represent such a character
     ;; CMUCL errors when trying to read #\no-break_space
     ;; AllegroCL 8-bit strings don't fail on reading #\no-break_space,
     ;; but can't represent such a character
     ;; CMUCL errors when trying to read #\no-break_space
-    #+lispworks #\no-break-space
+    #+(and lispworks unicode) #\no-break-space
     #+(or (and sbcl sb-unicode) (and allegro ics) (and clisp i18n)
        (and openmcl openmcl-unicode-strings))
     #\no-break_space
     #+(or (and sbcl sb-unicode) (and allegro ics) (and clisp i18n)
        (and openmcl openmcl-unicode-strings))
     #\no-break_space
index 59f9b7aa2293c51100febf6728402a401468424c..6374a3f00158693982043ffce531614cd672fd15 100644 (file)
@@ -16,6 +16,9 @@
 
 (in-package #:clsql-tests)
 
 
 (in-package #:clsql-tests)
 
+(setq *rt-i18n*
+      '(
+
 ;;; The point of these two is to require proper encoding support
 ;;; UTF-8 for example can handle these easily.
 ;; I show this as a 20char string and 27 bytes in utf-8
 ;;; The point of these two is to require proper encoding support
 ;;; UTF-8 for example can handle these easily.
 ;; I show this as a 20char string and 27 bytes in utf-8
@@ -30,3 +33,5 @@
     (first (query "SELECT 'Iñtërnâtiônàližætiøn'"
                  :flatp t :field-names nil))
   "Iñtërnâtiônàližætiøn")
     (first (query "SELECT 'Iñtërnâtiônàližætiøn'"
                  :flatp t :field-names nil))
   "Iñtërnâtiônàližætiøn")
+
+))
index c428467f1882bb4aa49cb5797727d94e332e35ae..2481e8321a8bdf754602fda8a726986164dd31ac 100644 (file)
@@ -26,6 +26,8 @@
 (defvar *rt-oodml*)
 (defvar *rt-syntax*)
 (defvar *rt-time*)
 (defvar *rt-oodml*)
 (defvar *rt-syntax*)
 (defvar *rt-time*)
+;; Below must be set as nil since test-i18n.lisp is not loaded on all platforms.
+(defvar *rt-i18n* nil)
 
 (defvar *test-database-type* nil)
 (defvar *test-database-underlying-type* nil)
 
 (defvar *test-database-type* nil)
 (defvar *test-database-underlying-type* nil)
@@ -66,7 +68,7 @@
 (defun default-suites ()
   "The default list of tests to run."
   (append *rt-internal* *rt-connection* *rt-basic* *rt-fddl* *rt-fdml*
 (defun default-suites ()
   "The default list of tests to run."
   (append *rt-internal* *rt-connection* *rt-basic* *rt-fddl* *rt-fdml*
-         *rt-ooddl* *rt-oodml* *rt-syntax* *rt-time*))
+         *rt-ooddl* *rt-oodml* *rt-syntax* *rt-time* *rt-i18n*))
 
 
 (defvar *error-count* 0)
 
 
 (defvar *error-count* 0)