Revision: 973
Author: sbigaret
Date: 2006-02-26 05:02:29 -0800 (Sun, 26 Feb 2006)
ViewCVS: http://svn.sourceforge.net/modeling/?rev=973&view=rev
Log Message:
-----------
Updated + ticket #1041371
Modified Paths:
--------------
trunk/ProjectModeling/Modeling/tests/README
Modified: trunk/ProjectModeling/Modeling/tests/README
===================================================================
--- trunk/ProjectModeling/Modeling/tests/README 2006-02-26 01:27:05 UTC (rev 972)
+++ trunk/ProjectModeling/Modeling/tests/README 2006-02-26 13:02:29 UTC (rev 973)
@@ -8,40 +8,41 @@
=============================================
Pre-conditions:
-- a PostgreSQL or MySQL or SQLite database server must be running somewhere
-- you modify either ./Postgresql.cfg or MySQL.cfg SQLite.cfg to reflect your
- own database installation
+- a PostgreSQL or MySQL or Oracle database server must be running somewhere
+ (SQLite needs no server)
+- you modify either ./Postgresql.cfg, MySQL.cfg, SQLite.cfg or Oracle.cfg to
+ reflect your own database installation
- two different[3] databases (may be empty) with names:
"AUTHOR_BOOKS" & "STORE_EMPLOYEES"
+ Note that these test-DBs should use a Latin1 encoding.
=============================================
-To run the tests:
+To run the tests::
-cd <unpacked Modeling package>/Modeling/tests
+ cd <unpacked Modeling package>/Modeling/tests
+
+ python ./run.py # preliminary test (no db needed), -h for usage
+
+ # NOTE: the following three test_EditingContext_*.py testsuites
+ # accept a '-d' option to specify the database:
+ # '-d Postgresql' (default) (configuration: Postgresql.cfg)
+ # '-d MySQL', (configuration: MySQL.cfg)
+ # '-d SQLite'.
+
+ python ./test_EditingContext_Global.py -r # init test db [1][2] (./testPackages/AuthorBooks)
+ python ./test_EditingContext_Global.py
+ python ./test_EditingContext.py
+
+ python ./test_EditingContext_Global_Inheritance.py -r # init test db (./testPackages/StoreEmployees)
+ python ./test_EditingContext_Global_Inheritance.py
+
+ python ./test_EditingContext_ParentChild.py
+
+ python ./test_AdaptorLayer.py # requires 'test_EditingContext_Global.py -r', above
+
+ sh ./test_generate_python_code.sh # tests script mdl_generate_python_code.py
-python ./run.py # preliminary test (no db needed), -h for usage
-
-# NOTE: the following three test_EditingContext_*.py testsuites
-# accept a '-d' option to specify the database:
-# '-d Postgresql' (default) (configuration: Postgresql.cfg)
-# '-d MySQL', (configuration: MySQL.cfg)
-# '-d SQLite'.
-
-python ./test_EditingContext_Global.py -r # init test db [1][2] (./testPackages/AuthorBooks)
-python ./test_EditingContext_Global.py
-python ./test_EditingContext.py
-
-python ./test_EditingContext_Global_Inheritance.py -r # init test db (./testPackages/StoreEmployees)
-python ./test_EditingContext_Global_Inheritance.py
-
-python ./test_EditingContext_ParentChild.py
-
-python ./test_AdaptorLayer.py # requires 'test_EditingContext_Global.py -r', above
-
-sh ./test_generate_python_code.sh # tests script mdl_generate_python_code.py
-
=============================================
-=============================================
Notes:
[1] Note that, the first time this script is run on an empty database, it is
@@ -58,8 +59,11 @@
[3] Quick hint:
Postgresql:
% psql template1
- template1=# CREATE DATABASE "AUTHOR_BOOKS";
+ template1=# CREATE DATABASE "AUTHOR_BOOKS" ENCODING 'LATIN1';
MySQL:
% mysqladmin create "AUTHOR_BOOKS"
+ and, if your mysql supports it:
+ % mysql -u root -D AUTHOR_BOOKS \
+ -e 'ALTER DATABASE AUTHOR_BOOKS DEFAULT CHARACTER SET latin1'
=============================================
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|