GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
test-column-types.c
1 /***************************************************************************
2  * test-column-types.c
3  *
4  * Tests the basic SQL column types
5  *
6  * Copyright 2008 Phil Longstaff
8  ****************************************************************************/
9 
10 /*
11  * This program is free software; you can redistribute it and/or modify
12  * it under the terms of the GNU General Public License as published by
13  * the Free Software Foundation; either version 2 of the License, or
14  * (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software
23  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
24  * 02110-1301, USA.
25  */
26 
27 #include "config.h"
28 #include "qof.h"
29 #include "cashobjects.h"
30 #include "test-stuff.h"
31 
32 #include "gnc-backend-sql.h"
33 
34 int main( int argc, char ** argv )
35 {
36  qof_init();
37  cashobjects_register();
38  gnc_sql_init( NULL );
39  /* do_test(
40  qof_load_backend_library ("../.libs/", GNC_LIB_NAME),
41  " loading gnc-backend-gda GModule failed");
42  */
43  print_test_results();
44  qof_close();
45  exit( get_rv() );
46 }
void gnc_sql_init(GncSqlBackend *be)
load and save data to SQL
void qof_close(void)
Safely close down the Query Object Framework.
void qof_init(void)
Initialise the Query Object Framework.