gnucash/src/backend/dbi/test/Makefile.am
Geert Janssens e1c7d9d1b9 Merge branch 'maint'
- Bug 731889 - guile 2 exports different autoconf macros than what is expected
- Bug 742624 - [patch] Scheduled Transaction Editor results in immediate segfault
- Numeric values with more than commodity smallest fraction get silently dropped.
- Bug 721196 - Use a regex for checking for a valid numeric value.
- Bug 727647 - "gncInvoiceGetTotal" is not read-only function?
- Bug 743609 - Add configure options to disable libsecret detection
- Switch from guile to xml to manage our iso-currencies source file
- Rewrite gnc-test-env in perl
- Bug 619899 - Use normal gettext or intltool toolchain also for scm files

Resolved conflicts:
	make-gnucash-potfiles.in
	po/POTFILES.in
	po/POTFILES.skip
	src/backend/dbi/test/Makefile.am
2015-01-31 18:37:41 +01:00

78 lines
2.4 KiB
Makefile

# Makefile.am for src/backend/dbi/test
include $(top_srcdir)/test-templates/Makefile.decl
AM_CPPFLAGS = \
-I${top_srcdir}/lib/libc \
-I${top_srcdir}/src \
-I${top_srcdir}/src/core-utils \
-I${top_srcdir}/src/gnc-module \
-I${top_srcdir}/src/test-core \
-I${top_srcdir}/src/engine \
-I${top_srcdir}/src/engine/test-core \
-I${top_srcdir}/src/libqof/qof \
-I${top_srcdir}/src/backend/sql \
-DTEST_MYSQL_URL=\"${TEST_MYSQL_URL}\" \
-DTEST_PGSQL_URL=\"${TEST_PGSQL_URL}\" \
${GLIB_CFLAGS} \
${GUILE_CFLAGS}
LDADD = ${top_builddir}/src/test-core/libtest-core.la \
${top_builddir}/src/gnc-module/libgnc-module.la \
${top_builddir}/src/engine/libgncmod-engine.la \
${top_builddir}/src/engine/test-core/libgncmod-test-engine.la \
${top_builddir}/src/core-utils/libgnc-core-utils.la \
${top_builddir}/src/libqof/qof/libgnc-qof.la \
../libgncmod-backend-dbi.la \
${top_builddir}/src/backend/sql/libgnc-backend-sql.la \
${top_builddir}/src/backend/xml/libgnc-backend-xml-utils.la \
${top_builddir}/lib/libc/libc-missing.la
GNC_TEST_DEPS = \
--gnc-module-dir ${top_builddir}/src/engine \
--guile-load-dir ${top_builddir}/src/engine \
--library-dir ${top_builddir}/src/libqof/qof \
--library-dir ${top_builddir}/src/core-utils \
--library-dir ${top_builddir}/src/gnc-module \
--library-dir ${top_builddir}/src/engine \
--library-dir ${top_builddir}/src/backend/xml
TESTS_ENVIRONMENT = \
GNC_ACCOUNT_PATH=${top_srcdir}/accounts/C \
SRCDIR=${srcdir} \
${gnc_dbd_dir_override} \
$(shell ${abs_top_srcdir}/src/gnc-test-env.pl --noexports ${GNC_TEST_DEPS})
EXTRA_DIST += \
test-dbi-stuff.h \
test-dbi-business-stuff.h \
test-dbi.xml
check_PROGRAMS = test-backend-dbi
TESTS = ${check_PROGRAMS}
if CUSTOM_GNC_DBD_DIR
gnc_dbd_dir_override = GNC_DBD_DIR="@GNC_DBD_DIR@"
endif
test_backend_dbi_SOURCES = \
test-backend-dbi.c \
test-backend-dbi-basic.c \
test-dbi-stuff.c \
test-dbi-business-stuff.c
test_backend_dbi_LDFLAGS="-ldbi"
test_backend_dbi_CPPFLAGS = \
-DDBI_TEST_XML_FILENAME=\"${srcdir}/test-dbi.xml\" \
${AM_CPPFLAGS}
AM_CPPFLAGS += -DG_LOG_DOMAIN=\"gnc.backend.dbi\"
# If you let make run parallel builds it complains that there is no rule to make
# libgncmod-test-dbi.la. This is wrong, but I can't figure out how to fix it
# so I'll turn off parallel builds
#.NOTPARALLEL: