2005-11-02 03:32:36 +00:00
|
|
|
/***************************************************************************
|
|
|
|
|
* test-load-backend.c
|
|
|
|
|
*
|
|
|
|
|
* Replaces the guile version to test the GModule file backend loading.
|
|
|
|
|
*
|
|
|
|
|
* Sun Oct 9 18:58:47 2005
|
|
|
|
|
* Copyright 2005 Neil Williams
|
|
|
|
|
* linux@codehelp.co.uk
|
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
|
* (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
|
* along with this program; if not, write to the Free Software
|
2005-11-17 05:35:02 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
|
|
|
|
* 02110-1301, USA.
|
2005-11-02 03:32:36 +00:00
|
|
|
*/
|
|
|
|
|
|
2006-09-05 18:00:11 +00:00
|
|
|
#include "config.h"
|
2005-11-02 03:32:36 +00:00
|
|
|
#include "qof.h"
|
|
|
|
|
#include "cashobjects.h"
|
|
|
|
|
#include "test-stuff.h"
|
|
|
|
|
|
2007-01-15 20:27:58 +00:00
|
|
|
#define GNC_LIB_NAME "gncmod-backend-file"
|
2005-11-02 03:32:36 +00:00
|
|
|
|
|
|
|
|
int main (int argc, char ** argv)
|
|
|
|
|
{
|
2006-05-26 00:10:35 +00:00
|
|
|
qof_init();
|
|
|
|
|
cashobjects_register();
|
|
|
|
|
do_test(
|
2006-06-03 14:51:10 +00:00
|
|
|
qof_load_backend_library ("../.libs/", GNC_LIB_NAME),
|
2006-05-26 00:10:35 +00:00
|
|
|
" loading gnc-backend-file GModule failed");
|
2005-11-02 03:32:36 +00:00
|
|
|
print_test_results();
|
2006-05-26 00:10:35 +00:00
|
|
|
qof_close();
|
2007-01-15 20:28:01 +00:00
|
|
|
exit(get_rv());
|
2005-11-02 03:32:36 +00:00
|
|
|
}
|