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