[Modeling-cvs] ProjectModeling/Modeling/tests README,1.8,1.9
Status: Abandoned
Brought to you by:
sbigaret
From: <sbi...@us...> - 2003-07-31 21:06:40
|
Update of /cvsroot/modeling/ProjectModeling/Modeling/tests In directory sc8-pr-cvs1:/tmp/cvs-serv5865 Modified Files: README Log Message: Update README for tests, on behalf of Mario Ruggier who made the changes Index: README =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/tests/README,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** README 7 May 2003 11:27:10 -0000 1.8 --- README 31 Jul 2003 21:01:55 -0000 1.9 *************** *** 1,38 **** # tests/README Test the installation of the Modeling framework - -------------------------------- ! To test the installation, perform the following sequence of commands ! or manual operations: ! % cd <unpacked Modeling package>/Modeling/tests ! % python ./run.py # running with -h gives usage ! # Remaining tests require: ! # - that a PostgreSQL and/or MySQL database server is running somewhere ! # - you modify either ./Postgresql.cfg or MySQL.cfg to reflect you own ! # PostgreSQL/MySQL installation ! # - two different (***) databases (may be empty) with names: "AUTHOR_BOOKS" & ! # "STORE_EMPLOYEES" ! # Initialise(*)(**) EditingContext test db (uses model in ! # ./testPackages/AuthorBooks/model_AuthorBooks.xml): ! % python test_EditingContext_Global.py -r # initialise db ! % python test_EditingContext_Global.py # run tests ! % python test_EditingContext.py ! #- Initialise(*) Inheritance test db (uses model in ! # ./testPackages/StoreEmployees) ! % python test_EditingContext_Global_Inheritance.py -r # initialise db ! % python test_EditingContext_Global_Inheritance.py # run test ! # The last test requires 'test_EditingContext_Global.py -r', above ! % python test_AdaptorLayer.py # run test ! -- ! (*) Note that, the first time this script is run on an empty database, it is OK for the DROP statements to fail (but only the DROP statements), with error messages similar to: --- 1,45 ---- + ============================================= # tests/README Test the installation of the Modeling framework ! ============================================= ! 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 ! - two different[3] databases (may be empty) with names: ! "AUTHOR_BOOKS" & "STORE_EMPLOYEES" ! ============================================= ! To run the 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 ! ! ============================================= ! ============================================= ! Notes: ! ! [1] Note that, the first time this script is run on an empty database, it is OK for the DROP statements to fail (but only the DROP statements), with error messages similar to: *************** *** 41,52 **** libpq.OperationalError:ERROR: sequence "pk_seq_writer" does not exist ! (**) For PostgreSQL versions >= 7.3, models that use the deprecated types of ! datetime and timespan will give an error -- the respectively equivalent ! types timestamp and interval should be used instead. ! (***) Quick hint: ! Postgresql: ! % psql template1 ! template1=# CREATE DATABASE "AUTHOR_BOOKS"; ! MySQL: ! % mysqladmin create "AUTHOR_BOOKS" --- 48,61 ---- libpq.OperationalError:ERROR: sequence "pk_seq_writer" does not exist ! [2] For PostgreSQL versions >= 7.3, models that use the deprecated types of ! datetime and timespan will give an error -- the respectively equivalent ! types timestamp and interval should be used instead. ! [3] Quick hint: ! Postgresql: ! % psql template1 ! template1=# CREATE DATABASE "AUTHOR_BOOKS"; ! MySQL: ! % mysqladmin create "AUTHOR_BOOKS" ! ! ============================================= \ No newline at end of file |