mirror of https://github.com/Gnucash/gnucash
This is now an ordinary shared library * Remove test to load the gnc-module in scheme * Rewrite test to load the module in C to actually test something.pull/611/head
parent
c1493c8c85
commit
e8451ae1db
@ -0,0 +1,30 @@
|
||||
/*********************************************************************
|
||||
* gnc-locale-tax.h -
|
||||
* a simple hack to load the proper guile base tax system
|
||||
*
|
||||
* Copyright 2019 Geert Janssens <geert@kobaltwit.be>
|
||||
*
|
||||
* 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, contact:
|
||||
*
|
||||
* Free Software Foundation Voice: +1-617-542-5942
|
||||
* 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652
|
||||
* Boston, MA 02110-1301, USA gnu@gnu.org
|
||||
********************************************************************/
|
||||
|
||||
#ifndef GNC_LOCALE_TAX_H_
|
||||
#define GNC_LOCALE_TAX_H_
|
||||
|
||||
void gnc_locale_tax_init (void);
|
||||
|
||||
#endif
|
||||
@ -1,22 +1,10 @@
|
||||
set(LOCALE_TAX_TEST_INCLUDE_DIRS "")
|
||||
set(LOCALE_TAX_TEST_LIBS "")
|
||||
set(LOCALE_TAX_TEST_INCLUDE_DIRS ${GUILE_INCLUDE_DIRS})
|
||||
set(LOCALE_TAX_TEST_LIBS
|
||||
gnc-engine
|
||||
gnc-locale-tax
|
||||
${GUILE_LDFLAGS})
|
||||
|
||||
gnc_add_test(test-link-module-tax-us test-link-module.c
|
||||
LOCALE_TAX_TEST_INCLUDE_DIRS LOCALE_TAX_TEST_LIBS
|
||||
)
|
||||
gnc_add_test_with_guile(test-link-module-tax-us test-link-module.c
|
||||
LOCALE_TAX_TEST_INCLUDE_DIRS LOCALE_TAX_TEST_LIBS)
|
||||
|
||||
# FIXME why is this test not run ?
|
||||
#set(GUILE_DEPENDS
|
||||
# gnc-core-utils
|
||||
# scm-gnc-module
|
||||
#)
|
||||
#
|
||||
#gnc_add_scheme_test_targets(scm-test-load-tax-us-module
|
||||
# "test-load-locale-tax-module.scm"
|
||||
# "tests"
|
||||
# "${GUILE_DEPENDS}"
|
||||
# FALSE
|
||||
#)
|
||||
#gnc_add_scheme_test(test-load-locale-tax-module.scm)
|
||||
|
||||
set_dist_list(test_locale_tax_DIST CMakeLists.txt test-link-module.c test-load-locale-tax-module.scm)
|
||||
set_dist_list(test_locale_tax_DIST CMakeLists.txt test-link-module.c)
|
||||
|
||||
@ -1,11 +0,0 @@
|
||||
(display " testing locale tax info module load ... ")
|
||||
(use-modules (gnucash gnc-module))
|
||||
(gnc:module-system-init)
|
||||
|
||||
(if (gnc:module-load "gnucash/locale/tax" 0)
|
||||
(begin
|
||||
(display "ok\n")
|
||||
(exit 0))
|
||||
(begin
|
||||
(display "failed\n")
|
||||
(exit -1)))
|
||||
Loading…
Reference in new issue