GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
test-engine.c
1 /********************************************************************
2  * testmain.c: GLib g_test test execution file. *
3  * Copyright 2011 John Ralls <[email protected]> *
4  * *
5  * This program is free software; you can redistribute it and/or *
6  * modify it under the terms of the GNU General Public License as *
7  * published by the Free Software Foundation; either version 2 of *
8  * the License, or (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public License*
16  * along with this program; if not, contact: *
17  * *
18  * Free Software Foundation Voice: +1-617-542-5942 *
19  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
20  * Boston, MA 02110-1301, USA [email protected] *
21 \********************************************************************/
22 
23 
24 #include <config.h>
25 #include <glib.h>
26 #include <qof.h>
27 #include <TransLog.h>
28 
29 extern void test_suite_account();
30 extern void test_suite_budget();
31 extern void test_suite_gncEntry();
32 extern void test_suite_gncInvoice();
33 extern void test_suite_transaction();
34 extern void test_suite_split();
35 extern void test_suite_engine_kvp_properties (void);
36 
37 int
38 main (int argc,
39  char *argv[])
40 {
41  qof_init(); /* Initialize the GObject system */
42  qof_log_init_filename_special("stderr"); /* Init the log system */
43  g_test_init ( &argc, &argv, NULL ); /* initialize test program */
44  //qof_log_set_level("gnc", G_LOG_LEVEL_DEBUG);
45  g_test_bug_base("https://bugzilla.gnome.org/show_bug.cgi?id="); /* init the bugzilla URL */
46  /* Disable the transaction log */
48 
49  test_suite_account();
50  test_suite_budget();
51  test_suite_gncEntry();
52  test_suite_gncInvoice();
53  test_suite_transaction();
54  test_suite_split();
55  test_suite_engine_kvp_properties ();
56 
57  return g_test_run( );
58 }
void xaccLogDisable(void)
Definition: TransLog.c:93
void qof_log_init_filename_special(const char *log_to_filename)
API for the transaction logger.
void qof_init(void)
Initialise the Query Object Framework.