r15260 - gnucash/trunk - Do not build tests for `make all' but only `make check'. This is done by
Andreas Köhler
andi5 at cvs.gnucash.org
Tue Dec 26 21:51:06 EST 2006
Author: andi5
Date: 2006-12-26 21:51:03 -0500 (Tue, 26 Dec 2006)
New Revision: 15260
Trac: http://svn.gnucash.org/trac/changeset/15260
Modified:
gnucash/trunk/
gnucash/trunk/src/app-utils/test/Makefile.am
gnucash/trunk/src/backend/file/test/Makefile.am
gnucash/trunk/src/backend/postgres/test/Makefile.am
gnucash/trunk/src/business/business-core/test/Makefile.am
gnucash/trunk/src/calculation/test/Makefile.am
gnucash/trunk/src/engine/test-core/Makefile.am
gnucash/trunk/src/engine/test/Makefile.am
gnucash/trunk/src/gnc-module/test/Makefile.am
gnucash/trunk/src/gnc-module/test/misc-mods/Makefile.am
gnucash/trunk/src/gnc-module/test/mod-bar/Makefile.am
gnucash/trunk/src/gnc-module/test/mod-baz/Makefile.am
gnucash/trunk/src/gnc-module/test/mod-foo/Makefile.am
gnucash/trunk/src/gnome-utils/test/Makefile.am
gnucash/trunk/src/import-export/hbci/test/Makefile.am
gnucash/trunk/src/import-export/ofx/test/Makefile.am
gnucash/trunk/src/import-export/qif-import/test/Makefile.am
gnucash/trunk/src/import-export/qif/test/Makefile.am
gnucash/trunk/src/import-export/test/Makefile.am
gnucash/trunk/src/network-utils/test/Makefile.am
gnucash/trunk/src/register/ledger-core/test/Makefile.am
gnucash/trunk/src/register/register-core/test/Makefile.am
gnucash/trunk/src/register/register-gnome/test/Makefile.am
gnucash/trunk/src/report/locale-specific/us/test/Makefile.am
gnucash/trunk/src/report/report-gnome/test/Makefile.am
gnucash/trunk/src/report/report-system/test/Makefile.am
gnucash/trunk/src/tax/us/test/Makefile.am
Log:
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).
Property changes on: gnucash/trunk
___________________________________________________________________
Name: svk:merge
- 3889ce50-311e-0410-a464-f059747ec5d1:/local/gnucash/branches/swig-redo:802
3889ce50-311e-0410-a464-f059747ec5d1:/local/gnucash/trunk:1024
d2ab10a8-8a95-4986-baff-8d511d9f15b2:/local/gnucash/trunk:13768
d2ab10a8-8a95-4986-baff-8d511d9f15b2:/local/gnucash/trunk2:13366
+ 3889ce50-311e-0410-a464-f059747ec5d1:/local/gnucash/branches/swig-redo:802
3889ce50-311e-0410-a464-f059747ec5d1:/local/gnucash/trunk:1037
d2ab10a8-8a95-4986-baff-8d511d9f15b2:/local/gnucash/trunk:13768
d2ab10a8-8a95-4986-baff-8d511d9f15b2:/local/gnucash/trunk2:13366
Modified: gnucash/trunk/src/app-utils/test/Makefile.am
===================================================================
--- gnucash/trunk/src/app-utils/test/Makefile.am 2006-12-26 16:47:42 UTC (rev 15259)
+++ gnucash/trunk/src/app-utils/test/Makefile.am 2006-12-27 02:51:03 UTC (rev 15260)
@@ -44,7 +44,7 @@
${QOF_LIBS} \
${GCONF_LIBS}
-noinst_PROGRAMS = \
+check_PROGRAMS = \
test-link-module \
test-exp-parser \
test-print-parse-amount \
Modified: gnucash/trunk/src/backend/file/test/Makefile.am
===================================================================
--- gnucash/trunk/src/backend/file/test/Makefile.am 2006-12-26 16:47:42 UTC (rev 15259)
+++ gnucash/trunk/src/backend/file/test/Makefile.am 2006-12-27 02:51:03 UTC (rev 15260)
@@ -191,13 +191,13 @@
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 \
Modified: gnucash/trunk/src/backend/postgres/test/Makefile.am
===================================================================
--- gnucash/trunk/src/backend/postgres/test/Makefile.am 2006-12-26 16:47:42 UTC (rev 15259)
+++ gnucash/trunk/src/backend/postgres/test/Makefile.am 2006-12-27 02:51:03 UTC (rev 15260)
@@ -14,7 +14,7 @@
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 \
Modified: gnucash/trunk/src/business/business-core/test/Makefile.am
===================================================================
--- gnucash/trunk/src/business/business-core/test/Makefile.am 2006-12-26 16:47:42 UTC (rev 15259)
+++ gnucash/trunk/src/business/business-core/test/Makefile.am 2006-12-27 02:51:03 UTC (rev 15260)
@@ -39,7 +39,7 @@
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 \
Modified: gnucash/trunk/src/calculation/test/Makefile.am
===================================================================
--- gnucash/trunk/src/calculation/test/Makefile.am 2006-12-26 16:47:42 UTC (rev 15259)
+++ gnucash/trunk/src/calculation/test/Makefile.am 2006-12-27 02:51:03 UTC (rev 15260)
@@ -1,6 +1,6 @@
TESTS=test-link
-noinst_PROGRAMS=test-link
+check_PROGRAMS=test-link
test_link_SOURCES=test-link.c
test_link_LDADD= \
Modified: gnucash/trunk/src/engine/test/Makefile.am
===================================================================
--- gnucash/trunk/src/engine/test/Makefile.am 2006-12-26 16:47:42 UTC (rev 15259)
+++ gnucash/trunk/src/engine/test/Makefile.am 2006-12-27 02:51:03 UTC (rev 15260)
@@ -61,7 +61,7 @@
SRCDIR=${srcdir} \
$(shell ${top_srcdir}/src/gnc-test-env --no-exports ${GNC_TEST_DEPS})
-noinst_PROGRAMS = \
+check_PROGRAMS = \
test-link \
test-commodities \
test-date \
Modified: gnucash/trunk/src/engine/test-core/Makefile.am
===================================================================
--- gnucash/trunk/src/engine/test-core/Makefile.am 2006-12-26 16:47:42 UTC (rev 15259)
+++ gnucash/trunk/src/engine/test-core/Makefile.am 2006-12-27 02:51:03 UTC (rev 15260)
@@ -1,4 +1,4 @@
-noinst_LTLIBRARIES=libgncmod-test-engine.la
+check_LTLIBRARIES=libgncmod-test-engine.la
LDADD = \
${top_builddir}/src/gnc-module/libgncmodule.la \
Modified: gnucash/trunk/src/gnc-module/test/Makefile.am
===================================================================
--- gnucash/trunk/src/gnc-module/test/Makefile.am 2006-12-26 16:47:42 UTC (rev 15259)
+++ gnucash/trunk/src/gnc-module/test/Makefile.am 2006-12-27 02:51:03 UTC (rev 15260)
@@ -37,7 +37,7 @@
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 \
Modified: gnucash/trunk/src/gnc-module/test/misc-mods/Makefile.am
===================================================================
--- gnucash/trunk/src/gnc-module/test/misc-mods/Makefile.am 2006-12-26 16:47:42 UTC (rev 15259)
+++ gnucash/trunk/src/gnc-module/test/misc-mods/Makefile.am 2006-12-27 02:51:03 UTC (rev 15260)
@@ -7,25 +7,22 @@
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:
Modified: gnucash/trunk/src/gnc-module/test/mod-bar/Makefile.am
===================================================================
--- gnucash/trunk/src/gnc-module/test/mod-bar/Makefile.am 2006-12-26 16:47:42 UTC (rev 15259)
+++ gnucash/trunk/src/gnc-module/test/mod-bar/Makefile.am 2006-12-27 02:51:03 UTC (rev 15260)
@@ -5,10 +5,10 @@
${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 @@
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 @@
BUILT_SOURCES = swig-bar.c
MAINTAINERCLEANFILES = swig-bar.c
-
-# Keep automake from generating install targets for test libs
-install-checklibLTLIBRARIES:
-uninstall-checklibLTLIBRARIES:
Modified: gnucash/trunk/src/gnc-module/test/mod-baz/Makefile.am
===================================================================
--- gnucash/trunk/src/gnc-module/test/mod-baz/Makefile.am 2006-12-26 16:47:42 UTC (rev 15259)
+++ gnucash/trunk/src/gnc-module/test/mod-baz/Makefile.am 2006-12-27 02:51:03 UTC (rev 15260)
@@ -6,10 +6,10 @@
${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 @@
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 @@
BUILT_SOURCES = swig-baz.c
MAINTAINERCLEANFILES = swig-baz.c
-
-# Keep automake from generating install targets for test libs
-install-checklibLTLIBRARIES:
-uninstall-checklibLTLIBRARIES:
Modified: gnucash/trunk/src/gnc-module/test/mod-foo/Makefile.am
===================================================================
--- gnucash/trunk/src/gnc-module/test/mod-foo/Makefile.am 2006-12-26 16:47:42 UTC (rev 15259)
+++ gnucash/trunk/src/gnc-module/test/mod-foo/Makefile.am 2006-12-27 02:51:03 UTC (rev 15260)
@@ -5,10 +5,10 @@
${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 @@
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 @@
BUILT_SOURCES = swig-foo.c
MAINTAINERCLEANFILES = swig-foo.c
-
-# Keep automake from generating install targets for test libs
-install-checklibLTLIBRARIES:
-uninstall-checklibLTLIBRARIES:
Modified: gnucash/trunk/src/gnome-utils/test/Makefile.am
===================================================================
--- gnucash/trunk/src/gnome-utils/test/Makefile.am 2006-12-26 16:47:42 UTC (rev 15259)
+++ gnucash/trunk/src/gnome-utils/test/Makefile.am 2006-12-27 02:51:03 UTC (rev 15260)
@@ -28,7 +28,7 @@
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= \
Modified: gnucash/trunk/src/import-export/hbci/test/Makefile.am
===================================================================
--- gnucash/trunk/src/import-export/hbci/test/Makefile.am 2006-12-26 16:47:42 UTC (rev 15259)
+++ gnucash/trunk/src/import-export/hbci/test/Makefile.am 2006-12-27 02:51:03 UTC (rev 15260)
@@ -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
Modified: gnucash/trunk/src/import-export/ofx/test/Makefile.am
===================================================================
--- gnucash/trunk/src/import-export/ofx/test/Makefile.am 2006-12-26 16:47:42 UTC (rev 15259)
+++ gnucash/trunk/src/import-export/ofx/test/Makefile.am 2006-12-27 02:51:03 UTC (rev 15260)
@@ -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
Modified: gnucash/trunk/src/import-export/qif/test/Makefile.am
===================================================================
--- gnucash/trunk/src/import-export/qif/test/Makefile.am 2006-12-26 16:47:42 UTC (rev 15259)
+++ gnucash/trunk/src/import-export/qif/test/Makefile.am 2006-12-27 02:51:03 UTC (rev 15260)
@@ -46,7 +46,7 @@
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
Modified: gnucash/trunk/src/import-export/qif-import/test/Makefile.am
===================================================================
--- gnucash/trunk/src/import-export/qif-import/test/Makefile.am 2006-12-26 16:47:42 UTC (rev 15259)
+++ gnucash/trunk/src/import-export/qif-import/test/Makefile.am 2006-12-27 02:51:03 UTC (rev 15260)
@@ -1,6 +1,6 @@
TESTS=test-link
-noinst_PROGRAMS=test-link
+check_PROGRAMS=test-link
test_link_SOURCES = \
test-link.c
Modified: gnucash/trunk/src/import-export/test/Makefile.am
===================================================================
--- gnucash/trunk/src/import-export/test/Makefile.am 2006-12-26 16:47:42 UTC (rev 15259)
+++ gnucash/trunk/src/import-export/test/Makefile.am 2006-12-27 02:51:03 UTC (rev 15260)
@@ -44,6 +44,6 @@
TESTS_ENVIRONMENT := \
$(shell ${top_srcdir}/src/gnc-test-env --no-exports ${GNC_TEST_DEPS})
-noinst_PROGRAMS = \
+check_PROGRAMS = \
test-link \
test-import-parse
Modified: gnucash/trunk/src/network-utils/test/Makefile.am
===================================================================
--- gnucash/trunk/src/network-utils/test/Makefile.am 2006-12-26 16:47:42 UTC (rev 15259)
+++ gnucash/trunk/src/network-utils/test/Makefile.am 2006-12-27 02:51:03 UTC (rev 15260)
@@ -14,7 +14,7 @@
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
Modified: gnucash/trunk/src/register/ledger-core/test/Makefile.am
===================================================================
--- gnucash/trunk/src/register/ledger-core/test/Makefile.am 2006-12-26 16:47:42 UTC (rev 15259)
+++ gnucash/trunk/src/register/ledger-core/test/Makefile.am 2006-12-27 02:51:03 UTC (rev 15260)
@@ -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
Modified: gnucash/trunk/src/register/register-core/test/Makefile.am
===================================================================
--- gnucash/trunk/src/register/register-core/test/Makefile.am 2006-12-26 16:47:42 UTC (rev 15259)
+++ gnucash/trunk/src/register/register-core/test/Makefile.am 2006-12-27 02:51:03 UTC (rev 15260)
@@ -8,7 +8,7 @@
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
Modified: gnucash/trunk/src/register/register-gnome/test/Makefile.am
===================================================================
--- gnucash/trunk/src/register/register-gnome/test/Makefile.am 2006-12-26 16:47:42 UTC (rev 15259)
+++ gnucash/trunk/src/register/register-gnome/test/Makefile.am 2006-12-27 02:51:03 UTC (rev 15260)
@@ -8,7 +8,7 @@
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
Modified: gnucash/trunk/src/report/locale-specific/us/test/Makefile.am
===================================================================
--- gnucash/trunk/src/report/locale-specific/us/test/Makefile.am 2006-12-26 16:47:42 UTC (rev 15259)
+++ gnucash/trunk/src/report/locale-specific/us/test/Makefile.am 2006-12-27 02:51:03 UTC (rev 15260)
@@ -30,7 +30,7 @@
EXTRA_DIST = test-load-module
-noinst_PROGRAMS = test-link-module
+check_PROGRAMS = test-link-module
testit:
${TESTS_ENVIRONMENT} gdb guile
Modified: gnucash/trunk/src/report/report-gnome/test/Makefile.am
===================================================================
--- gnucash/trunk/src/report/report-gnome/test/Makefile.am 2006-12-26 16:47:42 UTC (rev 15259)
+++ gnucash/trunk/src/report/report-gnome/test/Makefile.am 2006-12-27 02:51:03 UTC (rev 15260)
@@ -28,6 +28,6 @@
LDADD = ../libgncmod-report-gnome.la
-noinst_PROGRAMS = test-link-module
+check_PROGRAMS = test-link-module
EXTRA_DIST = test-load-module
Modified: gnucash/trunk/src/report/report-system/test/Makefile.am
===================================================================
--- gnucash/trunk/src/report/report-system/test/Makefile.am 2006-12-26 16:47:42 UTC (rev 15259)
+++ gnucash/trunk/src/report/report-system/test/Makefile.am 2006-12-27 02:51:03 UTC (rev 15260)
@@ -29,6 +29,6 @@
LDADD = ../libgncmod-report-system.la
-noinst_PROGRAMS = test-link-module
+check_PROGRAMS = test-link-module
EXTRA_DIST = test-load-module
Modified: gnucash/trunk/src/tax/us/test/Makefile.am
===================================================================
--- gnucash/trunk/src/tax/us/test/Makefile.am 2006-12-26 16:47:42 UTC (rev 15259)
+++ gnucash/trunk/src/tax/us/test/Makefile.am 2006-12-27 02:51:03 UTC (rev 15260)
@@ -23,6 +23,6 @@
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}
More information about the gnucash-changes
mailing list