|
GnuCash 2.4.99
|
00001 /*************************************************************************** 00002 * test-load-backend.c 00003 * 00004 * Replaces the guile version to test the GModule file backend loading. 00005 * 00006 * Sun Oct 9 18:58:47 2005 00007 * Copyright 2005 Neil Williams 00008 * linux@codehelp.co.uk 00009 ****************************************************************************/ 00010 00011 /* 00012 * This program is free software; you can redistribute it and/or modify 00013 * it under the terms of the GNU General Public License as published by 00014 * the Free Software Foundation; either version 2 of the License, or 00015 * (at your option) any later version. 00016 * 00017 * This program is distributed in the hope that it will be useful, 00018 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00020 * GNU General Public License for more details. 00021 * 00022 * You should have received a copy of the GNU General Public License 00023 * along with this program; if not, write to the Free Software 00024 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 00025 * 02110-1301, USA. 00026 */ 00027 00028 #include "config.h" 00029 #include "qof.h" 00030 #include "cashobjects.h" 00031 #include "test-stuff.h" 00032 00033 #define GNC_LIB_NAME "gncmod-backend-dbi" 00034 00035 int main (int argc, char ** argv) 00036 { 00037 qof_init(); 00038 cashobjects_register(); 00039 do_test( 00040 qof_load_backend_library ("../.libs/", GNC_LIB_NAME), 00041 " loading gnc-backend-dbi GModule failed"); 00042 print_test_results(); 00043 qof_close(); 00044 exit(get_rv()); 00045 }
1.7.4