mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Add some dbi backend tests to test db save/load.
In order to test the mysql backend, the --with-test-mysql-url=URL option must be supplied to configure where URL is the full url (mysql://host[:port]:db:user:password) to access a mysql db. The same is true for postgres, with the --with-test-pgsql-url=URL option. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18293 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
18
configure.in
18
configure.in
@@ -926,6 +926,24 @@ else
|
||||
AC_MSG_RESULT(yes - $GMSGFMT)
|
||||
fi
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
# URLs for MySQL and PostgreSQL testing
|
||||
AC_ARG_WITH(test-mysql-url,
|
||||
AS_HELP_STRING([--with-test-mysql-url=URL],
|
||||
[MySQL database URL for testing [default=none]]),
|
||||
[],[with_test_mysql_url=""])
|
||||
|
||||
TEST_MYSQL_URL=$with_test_mysql_url
|
||||
AC_SUBST(TEST_MYSQL_URL)
|
||||
|
||||
AC_ARG_WITH(test-pgsql-url,
|
||||
AS_HELP_STRING([--with-test-pgsql-url=URL],
|
||||
[PgSQL database URL for testing [default=none]]),
|
||||
[],[with_test_pgsql_url=""])
|
||||
|
||||
TEST_PGSQL_URL=$with_test_pgsql_url
|
||||
AC_SUBST(TEST_PGSQL_URL)
|
||||
|
||||
### --------------------------------------------------------------------------
|
||||
### help files
|
||||
|
||||
|
||||
Reference in New Issue
Block a user