On 27-Apr-09, at 10:29 PM, João Henrique Freitas wrote:

> Hello,
>
>>
>> The only remaining issue that I remember is creating the database for
>> a couple of engines. Did you find some time to address this issue? I
>> think once these two issues are fixed, you should go ahead and merge
>> the new test code into HEAD.
>>
>
> I commited a new version of the tests to address the create database
> problem. I  tested with mysql only.
>
> When the tests begin the framework, a new database for test
> (libdbitest) is created. So, all the tests are run and the test
> database can be dropped at last.
>
> This mechanism is similar implemented in the "old" test_dbi.
>
> I need to test with pgsql, firebird and sqlite. For Db2, Ingress

In Ingres, this can be scripted with the createdb and destroydb tools  
(see Ingres 2006 Command Reference Guide = cmdref.pdf).

--Toby

> and
> Oracle I think it would be necessary create the test database by hand.
>
> Just a bit to clarifications:
>
> The skeleton of the framework is:
>
> create_database
>   open_test_database
>     create_schema
>       [tests goes here, many tests] every tests call create_schema to
> setup and drop_schema to teardown.
>     drop_schema
>   close_test_database
> drop_database
>
> When all tests are done, the cgreen framework call drop_schema
> following by drop_database.
>
> This is the way to test libdbi framework using a controlled test  
> framework.
>
> PS: every tests can be a different setup and teardown functions.
>
> PS1:
>
> I will test with others engines and address the zero_rows issue.
>
> Thanks
>
>
> -- 
> -----------------------------------------------------------
> João Henrique Freitas - joaohf_at_gmail.com
> Campinas-SP-Brasil
> BSD051283
> LPI 1
> http://www.joaohfreitas.eti.br
>
> ---------------------------------------------------------------------- 
> --------
> Register Now & Save for Velocity, the Web Performance & Operations
> Conference from O'Reilly Media. Velocity features a full day of
> expert-led, hands-on workshops and two days of sessions from industry
> leaders in dedicated Performance & Operations tracks. Use code  
> vel09scf
> and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
> _______________________________________________
> Libdbi-drivers-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/libdbi-drivers-devel


------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Libdbi-drivers-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libdbi-drivers-devel

Reply via email to