GnuCash 2.4.99
test-engine.c
00001 /********************************************************************
00002  * testmain.c: GLib g_test test execution file.                     *
00003  * Copyright 2011 John Ralls <jralls@ceridwen.us>                   *
00004  *                                                                  *
00005  * This program is free software; you can redistribute it and/or    *
00006  * modify it under the terms of the GNU General Public License as   *
00007  * published by the Free Software Foundation; either version 2 of   *
00008  * the License, or (at your option) any later version.              *
00009  *                                                                  *
00010  * This program is distributed in the hope that it will be useful,  *
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of   *
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the    *
00013  * GNU General Public License for more details.                     *
00014  *                                                                  *
00015  * You should have received a copy of the GNU General Public License*
00016  * along with this program; if not, contact:                        *
00017  *                                                                  *
00018  * Free Software Foundation           Voice:  +1-617-542-5942       *
00019  * 51 Franklin Street, Fifth Floor    Fax:    +1-617-542-2652       *
00020  * Boston, MA  02110-1301,  USA       gnu@gnu.org                   *
00021 \********************************************************************/
00022 
00023 
00024 #include "config.h"
00025 #include <glib.h>
00026 #include "qof.h"
00027 
00028 extern void test_suite_account();
00029 extern void test_suite_gncInvoice();
00030 //extern void test_suite_transaction();
00031 extern void test_suite_split();
00032 
00033 int
00034 main (int   argc,
00035       char *argv[])
00036 {
00037     g_type_init();                      /* Initialize the GObject system */
00038     g_test_init ( &argc, &argv, NULL );         /* initialize test program */
00039     qof_log_init_filename_special("stderr"); /* Init the log system */
00040     //qof_log_set_level("gnc", G_LOG_LEVEL_DEBUG);
00041     g_test_bug_base("https://bugzilla.gnome.org/show_bug.cgi?id="); /* init the bugzilla URL */
00042 
00043     test_suite_account();
00044     test_suite_gncInvoice();
00045 //    test_suite_transaction();
00046     test_suite_split();
00047 
00048     return g_test_run( );
00049 }
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines