Do not build tests for `make all' but only `make check'. This is done by

using the automake prefix check_ instead of noinst_. The modules created
in src/gnc-module/test now use that prefix too, but with LDFLAGS="-rpath
${PWD}" to make them shared (we never install them).


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15260 57a11ea4-9604-0410-9ed3-97b8803252fd
zzzoldfeatures/gobject-engine-dev
Andreas Köhler 20 years ago
parent 16496b9f74
commit e5c7756b51

@ -44,7 +44,7 @@ LDADD = \
${QOF_LIBS} \
${GCONF_LIBS}
noinst_PROGRAMS = \
check_PROGRAMS = \
test-link-module \
test-exp-parser \
test-print-parse-amount \

@ -191,13 +191,13 @@ TESTS_ENVIRONMENT := \
SRCDIR=${srcdir} \
$(shell ${top_srcdir}/src/gnc-test-env --no-exports ${GNC_TEST_DEPS})
noinst_LTLIBRARIES = libgnc-test-file-stuff.la
check_LTLIBRARIES = libgnc-test-file-stuff.la
libgnc_test_file_stuff_la_SOURCES = test-file-stuff.c
libgnc_test_file_stuff_la_LIBADD = \
${top_builddir}/src/engine/libgncmod-engine.la
noinst_PROGRAMS = \
check_PROGRAMS = \
test-date-converting \
test-dom-converters1 \
test-kvp-frames \

@ -14,7 +14,7 @@ TESTS_ENVIRONMENT := \
TEST_DB_SOCKET_DIR=`pwd`/gnc_test_db_sock \
$(shell ${top_srcdir}/src/gnc-test-env --no-exports ${GNC_TEST_DEPS})
noinst_PROGRAMS = \
check_PROGRAMS = \
test-load-backend \
test-db \
test-escape \

@ -39,7 +39,7 @@ GNC_TEST_DEPS := \
TESTS_ENVIRONMENT := \
$(shell ${top_srcdir}/src/gnc-test-env --no-exports ${GNC_TEST_DEPS})
noinst_PROGRAMS = \
check_PROGRAMS = \
test-load-module \
test-business \
test-address \

@ -1,6 +1,6 @@
TESTS=test-link
noinst_PROGRAMS=test-link
check_PROGRAMS=test-link
test_link_SOURCES=test-link.c
test_link_LDADD= \

@ -1,4 +1,4 @@
noinst_LTLIBRARIES=libgncmod-test-engine.la
check_LTLIBRARIES=libgncmod-test-engine.la
LDADD = \
${top_builddir}/src/gnc-module/libgncmodule.la \

@ -61,7 +61,7 @@ TESTS_ENVIRONMENT := \
SRCDIR=${srcdir} \
$(shell ${top_srcdir}/src/gnc-test-env --no-exports ${GNC_TEST_DEPS})
noinst_PROGRAMS = \
check_PROGRAMS = \
test-link \
test-commodities \
test-date \

@ -37,7 +37,7 @@ GNC_TEST_DEPS := \
TESTS_ENVIRONMENT := \
$(shell ${top_srcdir}/src/gnc-test-env --no-exports ${GNC_TEST_DEPS})
noinst_PROGRAMS = \
check_PROGRAMS = \
test-load-c \
test-modsysver \
test-incompatdep \

@ -7,25 +7,22 @@ AM_CFLAGS = \
LDADD = -L../.. -L../../.libs
PWD := $(shell pwd)
checklibdir=${PWD}
checklib_LTLIBRARIES=libfuturemodsys.la libincompatdep.la libagedver.la
check_LTLIBRARIES=libfuturemodsys.la libincompatdep.la libagedver.la
libfuturemodsys_la_SOURCES=futuremodsys.c
libfuturemodsys_la_LDFLAGS=-rpath ${PWD}
libfuturemodsys_la_LIBADD = \
$(GLIB_LIBS)
libincompatdep_la_SOURCES=incompatdep.c
libincompatdep_la_LDFLAGS=-module
libincompatdep_la_LDFLAGS=-module -rpath ${PWD}
libincompatdep_la_LIBADD = \
../../libgncmodule.la \
$(GLIB_LIBS)
libagedver_la_SOURCES=agedver.c
libagedver_la_LDFLAGS=-rpath ${PWD}
libagedver_la_LIBADD = \
$(GLIB_LIBS)
CLEANFILES = *.so* *.a
# Keep automake from generating install targets for test libs
install-checklibLTLIBRARIES:
uninstall-checklibLTLIBRARIES:

@ -5,10 +5,10 @@ AM_CFLAGS = \
${GLIB_CFLAGS}
PWD := $(shell pwd)
checklibdir=${PWD}
checklib_LTLIBRARIES = libbar.la libgncmodbar.la
check_LTLIBRARIES = libbar.la libgncmodbar.la
libbar_la_SOURCES = bar.c
libbar_la_LDFLAGS = -rpath ${PWD}
# Make swig-bar.c for dist. It is an automatic dependency
# of gnc-mod-bar.c
@ -17,7 +17,7 @@ noinst_HEADERS = \
swig-bar.c
libgncmodbar_la_SOURCES=gnc-mod-bar.c
libgncmodbar_la_LDFLAGS=-rpath ${PWD}
libgncmodbar_la_LIBADD=libbar.la \
$(GUILE_LIBS) \
$(GLIB_LIBS)
@ -33,7 +33,3 @@ EXTRA_DIST = \
BUILT_SOURCES = swig-bar.c
MAINTAINERCLEANFILES = swig-bar.c
# Keep automake from generating install targets for test libs
install-checklibLTLIBRARIES:
uninstall-checklibLTLIBRARIES:

@ -6,10 +6,10 @@ AM_CFLAGS = \
${GUILE_INCS}
PWD := $(shell pwd)
checklibdir = ${PWD}
checklib_LTLIBRARIES = libbaz.la libgncmodbaz.la
check_LTLIBRARIES = libbaz.la libgncmodbaz.la
libbaz_la_SOURCES = baz.c
libbaz_la_LDFLAGS = -rpath ${PWD}
libbaz_la_LIBADD = ../mod-foo/libfoo.la
# Make swig-baz.c for dist. It is an automatic dependency
@ -19,7 +19,7 @@ noinst_HEADERS = \
swig-baz.c
libgncmodbaz_la_SOURCES = gnc-mod-baz.c
libgncmodbaz_la_LDFLAGS = -rpath ${PWD}
libgncmodbaz_la_LIBADD = \
libbaz.la \
../../libgncmodule.la \
@ -37,7 +37,3 @@ EXTRA_DIST = \
BUILT_SOURCES = swig-baz.c
MAINTAINERCLEANFILES = swig-baz.c
# Keep automake from generating install targets for test libs
install-checklibLTLIBRARIES:
uninstall-checklibLTLIBRARIES:

@ -5,10 +5,10 @@ AM_CFLAGS=\
${GLIB_CFLAGS}
PWD := $(shell pwd)
checklibdir=${PWD}
checklib_LTLIBRARIES=libfoo.la libgncmodfoo.la
check_LTLIBRARIES=libfoo.la libgncmodfoo.la
libfoo_la_SOURCES = foo.c
libfoo_la_LDFLAGS = -rpath ${PWD}
# Make swig-foo.c for dist. It is an automatic dependency
# of gnc-mod-foo.c
@ -17,7 +17,7 @@ noinst_HEADERS = \
swig-foo.c
libgncmodfoo_la_SOURCES = gnc-mod-foo.c
libgncmodfoo_la_LDFLAGS = -rpath ${PWD}
libgncmodfoo_la_LIBADD = \
libfoo.la \
$(GUILE_LIBS) \
@ -34,7 +34,3 @@ endif
BUILT_SOURCES = swig-foo.c
MAINTAINERCLEANFILES = swig-foo.c
# Keep automake from generating install targets for test libs
install-checklibLTLIBRARIES:
uninstall-checklibLTLIBRARIES:

@ -28,7 +28,7 @@ GNC_TEST_DEPS := @GNC_TEST_SRFI_LOAD_CMD@ \
TESTS_ENVIRONMENT := \
$(shell ${top_srcdir}/src/gnc-test-env --no-exports ${GNC_TEST_DEPS})
noinst_PROGRAMS = \
check_PROGRAMS = \
test-link-module test-gnc-recurrence test-gnc-dialog
INCLUDES= \

@ -1,6 +1,6 @@
TESTS=test-link-module
noinst_PROGRAMS=test-link-module
check_PROGRAMS=test-link-module
test_link_module_SOURCES=test-link-module.c
test_link_module_LDADD=../libgncmod-hbci.la

@ -1,7 +1,7 @@
TESTS=test-link
AM_CFLAGS=${LIBOFX_CFLAGS}
noinst_PROGRAMS=test-link
check_PROGRAMS=test-link
test_link_SOURCES=test-link.c
test_link_LDADD=../libgncmod-ofx.la

@ -1,6 +1,6 @@
TESTS=test-link
noinst_PROGRAMS=test-link
check_PROGRAMS=test-link
test_link_SOURCES = \
test-link.c

@ -46,7 +46,7 @@ TESTS_ENVIRONMENT := \
GNC_TEST_FILES=${srcdir}/test-files \
$(shell ${top_srcdir}/src/gnc-test-env --no-exports ${GNC_TEST_DEPS})
noinst_PROGRAMS = \
check_PROGRAMS = \
test-link \
test-qif

@ -44,6 +44,6 @@ GNC_TEST_DEPS := @GNC_TEST_SRFI_LOAD_CMD@ \
TESTS_ENVIRONMENT := \
$(shell ${top_srcdir}/src/gnc-test-env --no-exports ${GNC_TEST_DEPS})
noinst_PROGRAMS = \
check_PROGRAMS = \
test-link \
test-import-parse

@ -14,7 +14,7 @@ GNC_TEST_DEPS := \
TESTS_ENVIRONMENT := \
$(shell ${top_srcdir}/src/gnc-test-env --no-exports ${GNC_TEST_DEPS})
noinst_PROGRAMS = \
check_PROGRAMS = \
test-link-module
test_link_module_SOURCES=test-link-module.c

@ -1,6 +1,6 @@
TESTS = test-link-module
noinst_PROGRAMS = test-link-module
check_PROGRAMS = test-link-module
test_link_module_SOURCES=test-link-module.c
test_link_module_LDADD=../libgncmod-ledger-core.la

@ -8,7 +8,7 @@ TESTS_ENVIRONMENT= \
LTDL_LIBRARY_PATH=.. \
LD_LIBRARY_PATH=${top_builddir}/src/gnc-module:${top_builddir}/src/gnc-module/.libs:${top_builddir}/src/engine:${top_builddir}/src/engine/.libs:${top_builddir}/src/calculation:${top_builddir}/src/calculation/.libs:${top_builddir}/src/network-utils:${top_builddir}/src/network-utils/.libs
noinst_PROGRAMS = \
check_PROGRAMS = \
test-link-module
test_link_module_SOURCES=test-link-module.c

@ -8,7 +8,7 @@ TESTS_ENVIRONMENT= \
LTDL_LIBRARY_PATH=.. \
LD_LIBRARY_PATH=${top_builddir}/src/gnc-module:${top_builddir}/src/gnc-module/.libs:${top_builddir}/src/engine:${top_builddir}/src/engine/.libs:${top_builddir}/src/calculation:${top_builddir}/src/calculation/.libs:${top_builddir}/src/network-utils:${top_builddir}/src/network-utils/.libs
noinst_PROGRAMS = \
check_PROGRAMS = \
test-link-module
test_link_module_SOURCES = test-link-module.c

@ -30,7 +30,7 @@ TESTS_ENVIRONMENT := \
EXTRA_DIST = test-load-module
noinst_PROGRAMS = test-link-module
check_PROGRAMS = test-link-module
testit:
${TESTS_ENVIRONMENT} gdb guile

@ -28,6 +28,6 @@ TESTS_ENVIRONMENT := \
LDADD = ../libgncmod-report-gnome.la
noinst_PROGRAMS = test-link-module
check_PROGRAMS = test-link-module
EXTRA_DIST = test-load-module

@ -29,6 +29,6 @@ TESTS_ENVIRONMENT := \
LDADD = ../libgncmod-report-system.la
noinst_PROGRAMS = test-link-module
check_PROGRAMS = test-link-module
EXTRA_DIST = test-load-module

@ -23,6 +23,6 @@ TESTS_ENVIRONMENT := \
EXTRA_DIST = test-load-module
noinst_PROGRAMS=test-link-module
check_PROGRAMS=test-link-module
test_link_module_SOURCES=test-link-module.c
test_link_module_LDADD=../libgncmod-tax-us.la ${GUILE_LIBS} ${GLIB_LIBS}

Loading…
Cancel
Save