DBI backend tests

Phil Longstaff plongstaff at rogers.com
Mon Aug 31 13:45:28 EDT 2009


I've started to write a DBI backend test.  Basically, it will create a session with a set of data including (hopefully) all test cases.  It will then save that to a db, load it into another session, then compare the data in the two sessions.

There's no problem doing this for sqlite3 (just use /tmp/XXXXX).  However, since there are differences for mysql and pgsql, I'd like to perform the test for all 3 databases.  Any ideas on how "make check" could/should get urls for a mysql and pgsql database server to use (or determine that there is no server available, so skip that check)?  Argument to "make check" i.e. "make check -DMYSQL_URL=..."?

Phil


More information about the gnucash-devel mailing list