2005-11-01 21:32:36 -06:00
|
|
|
/***************************************************************************
|
|
|
|
* test-load-engine.c
|
|
|
|
*
|
|
|
|
* Tue Sep 27 19:35:28 2005
|
|
|
|
* Copyright 2005 GnuCash team
|
|
|
|
****************************************************************************/
|
|
|
|
/*
|
|
|
|
* 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-16 23:35:02 -06:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
|
|
|
* 02110-1301, USA.
|
2005-11-01 21:32:36 -06:00
|
|
|
*/
|
2010-02-17 23:31:54 -06:00
|
|
|
|
2017-10-26 04:14:21 -05:00
|
|
|
#include <config.h>
|
2001-08-07 18:29:04 -05:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
2005-11-01 21:32:36 -06:00
|
|
|
#include "qof.h"
|
|
|
|
#include "cashobjects.h"
|
|
|
|
#include "test-stuff.h"
|
2001-08-07 18:29:04 -05:00
|
|
|
|
|
|
|
static void
|
2005-11-01 21:32:36 -06:00
|
|
|
run_test(void)
|
2003-02-22 02:15:53 -06:00
|
|
|
{
|
2010-02-17 23:31:54 -06:00
|
|
|
do_test(TRUE, "test engine loaded OK");
|
2001-08-07 18:29:04 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
int
|
2003-02-22 02:15:53 -06:00
|
|
|
main (int argc, char ** argv)
|
|
|
|
{
|
2010-02-17 23:31:54 -06:00
|
|
|
qof_init();
|
|
|
|
if (cashobjects_register())
|
|
|
|
{
|
|
|
|
run_test ();
|
|
|
|
print_test_results();
|
|
|
|
}
|
|
|
|
qof_close();
|
|
|
|
return get_rv();
|
2001-08-07 18:29:04 -05:00
|
|
|
}
|