Use = instead of := for GNC_TEST_DEPS and TESTS_ENVIRONMENT.

Both variables are only evaluated once away.  Even worse, when used as
simply-expanded variables, the gnc-test-env script is called multiple times,
because of make re-reading the Makefile when called by make in the check-am
target.  Those variable definitions are not portable and thus automake spit
warnings.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17797 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Andreas Köhler 2009-01-05 09:51:33 +00:00
parent a6f9a6381c
commit 7506663f91
20 changed files with 39 additions and 39 deletions

View File

@ -14,7 +14,7 @@ test_print_parse_amount_SOURCES = \
${top_builddir}/src/core-utils/gnc-gconf-utils.c \
test-print-parse-amount.c
GNC_TEST_DEPS := @GNC_TEST_SRFI_LOAD_CMD@ \
GNC_TEST_DEPS = @GNC_TEST_SRFI_LOAD_CMD@ \
--gnc-module-dir ${top_builddir}/src/engine \
--gnc-module-dir ${top_builddir}/src/calculation \
--gnc-module-dir ${top_builddir}/src/app-utils \
@ -30,7 +30,7 @@ GNC_TEST_DEPS := @GNC_TEST_SRFI_LOAD_CMD@ \
--library-dir ${top_builddir}/src/calculation \
--library-dir ${top_builddir}/src/app-utils
TESTS_ENVIRONMENT := \
TESTS_ENVIRONMENT = \
$(shell ${top_srcdir}/src/gnc-test-env --no-exports ${GNC_TEST_DEPS})
LDADD = \

View File

@ -3,7 +3,7 @@ SUBDIRS = .
TESTS = \
test-load-backend
GNC_TEST_DEPS := \
GNC_TEST_DEPS = \
--gnc-module-dir ${top_builddir}/src/engine \
--guile-load-dir ${top_builddir}/src/engine \
--library-dir ${top_builddir}/lib/libqof/qof \
@ -12,7 +12,7 @@ GNC_TEST_DEPS := \
--library-dir ${top_builddir}/src/engine \
--library-dir ${top_builddir}/src/backend/gda
TESTS_ENVIRONMENT := \
TESTS_ENVIRONMENT = \
GNC_ACCOUNT_PATH=${top_srcdir}/accounts/C \
SRCDIR=${srcdir} \
$(shell ${top_srcdir}/src/gnc-test-env --no-exports ${GNC_TEST_DEPS})

View File

@ -180,7 +180,7 @@ TESTS = \
test-xml-transaction \
test-xml2-is-file
GNC_TEST_DEPS := \
GNC_TEST_DEPS = \
--gnc-module-dir ${top_builddir}/src/engine \
--guile-load-dir ${top_builddir}/src/engine \
--library-dir ${top_builddir}/lib/libqof/qof \
@ -189,7 +189,7 @@ GNC_TEST_DEPS := \
--library-dir ${top_builddir}/src/engine \
--library-dir ${top_builddir}/src/backend/file
TESTS_ENVIRONMENT := \
TESTS_ENVIRONMENT = \
GNC_ACCOUNT_PATH=${top_srcdir}/accounts/C \
GNC_TEST_FILES=${srcdir}/test-files/xml2 \
SRCDIR=${srcdir} \

View File

@ -3,14 +3,14 @@ TESTS = \
test-escape \
run-tests.sh
GNC_TEST_DEPS := \
GNC_TEST_DEPS = \
--gnc-module-dir ${top_builddir}/src/gnc-module \
--gnc-module-dir ${top_builddir}/src/engine \
--guile-load-dir ${top_srcdir}/src/engine \
--gnc-module-dir ${top_builddir}/src/backend/xml \
--gnc-module-dir ${top_builddir}/src/backend/postgres
TESTS_ENVIRONMENT := \
TESTS_ENVIRONMENT = \
TEST_DB_SOCKET_DIR=`pwd`/gnc_test_db_sock \
$(shell ${top_srcdir}/src/gnc-test-env --no-exports ${GNC_TEST_DEPS})

View File

@ -17,7 +17,7 @@ test_column_types_SOURCES = \
TESTS = \
test-column-types
GNC_TEST_DEPS := \
GNC_TEST_DEPS = \
--gnc-module-dir ${top_builddir}/src/engine \
--guile-load-dir ${top_builddir}/src/engine \
--library-dir ${top_builddir}/lib/libqof/qof \
@ -26,7 +26,7 @@ GNC_TEST_DEPS := \
--library-dir ${top_builddir}/src/engine \
--library-dir ${top_builddir}/src/backend/sql
TESTS_ENVIRONMENT := \
TESTS_ENVIRONMENT = \
GNC_ACCOUNT_PATH=${top_srcdir}/accounts/C \
SRCDIR=${srcdir} \
$(shell ${top_srcdir}/src/gnc-test-env --no-exports ${GNC_TEST_DEPS})

View File

@ -1,7 +1,7 @@
TESTS = test-version
TESTS_ENVIRONMENT := \
TESTS_ENVIRONMENT = \
PATH="..:${PATH}"
EXTRA_DIST = test-version

View File

@ -26,7 +26,7 @@ TESTS = \
test-job \
test-vendor
GNC_TEST_DEPS := \
GNC_TEST_DEPS = \
--gnc-module-dir ${top_builddir}/src/engine \
--gnc-module-dir ${top_builddir}/src/business/business-core \
--guile-load-dir ${top_builddir}/src/gnc-module \
@ -38,7 +38,7 @@ GNC_TEST_DEPS := \
--library-dir ${top_builddir}/src/engine \
--library-dir ${top_builddir}/src/business/business-core
TESTS_ENVIRONMENT := \
TESTS_ENVIRONMENT = \
$(shell ${top_srcdir}/src/gnc-test-env --no-exports ${GNC_TEST_DEPS})
check_PROGRAMS = \

View File

@ -46,7 +46,7 @@ TESTS = \
test-scm-query \
test-book-merge
GNC_TEST_DEPS := \
GNC_TEST_DEPS = \
--gnc-module-dir ${top_builddir}/src/engine \
--guile-load-dir ${top_builddir}/src/gnc-module \
--guile-load-dir ${top_builddir}/src/engine \
@ -55,7 +55,7 @@ GNC_TEST_DEPS := \
--library-dir ${top_builddir}/src/gnc-module \
--library-dir ${top_builddir}/src/engine
TESTS_ENVIRONMENT := \
TESTS_ENVIRONMENT = \
SRCDIR=${srcdir} \
$(shell ${top_srcdir}/src/gnc-test-env --no-exports ${GNC_TEST_DEPS})

View File

@ -22,7 +22,7 @@ TESTS = \
test-scm-dynload \
test-scm-init
GNC_TEST_DEPS := \
GNC_TEST_DEPS = \
--gnc-module-dir ${top_builddir}/src/gnc-module \
--gnc-module-dir ${top_builddir}/src/gnc-module/test/mod-foo \
--gnc-module-dir ${top_builddir}/src/gnc-module/test/mod-bar \
@ -38,7 +38,7 @@ GNC_TEST_DEPS := \
--library-dir ${top_builddir}/src/gnc-module/test/mod-bar \
--library-dir ${top_builddir}/src/gnc-module/test/mod-baz
TESTS_ENVIRONMENT := \
TESTS_ENVIRONMENT = \
$(shell ${top_srcdir}/src/gnc-test-env --no-exports ${GNC_TEST_DEPS})
check_PROGRAMS = \

View File

@ -8,7 +8,7 @@ TESTS_GUI = test-gnc-recurrence test-gnc-dialog
##lib_LTLIBRARIES = libgncgnome.la
GNC_TEST_DEPS := @GNC_TEST_SRFI_LOAD_CMD@ \
GNC_TEST_DEPS = @GNC_TEST_SRFI_LOAD_CMD@ \
--gnc-module-dir ${top_builddir}/src/engine \
--gnc-module-dir ${top_builddir}/src/gnome-utils \
--guile-load-dir ${top_builddir}/src/gnc-module \
@ -22,7 +22,7 @@ GNC_TEST_DEPS := @GNC_TEST_SRFI_LOAD_CMD@ \
--library-dir ${top_builddir}/src/app-utils \
--library-dir ${top_builddir}/src/gnome-utils
TESTS_ENVIRONMENT := \
TESTS_ENVIRONMENT = \
$(shell ${top_srcdir}/src/gnc-test-env --no-exports ${GNC_TEST_DEPS})
check_PROGRAMS = \

View File

@ -5,7 +5,7 @@ AM_CPPFLAGS = -I${top_srcdir}/src/gnc-module ${GUILE_INCS} ${GLIB_CFLAGS}
TESTS=test-load-module test-parser test-reader test-file-formats \
test-import-phase-1
GNC_TEST_DEPS := \
GNC_TEST_DEPS = \
--gnc-module-dir ${top_builddir}/src/gnc-module \
--gnc-module-dir ${top_builddir}/src/engine \
--gnc-module-dir ${top_builddir}/src/app-utils \
@ -20,7 +20,7 @@ GNC_TEST_DEPS := \
--library-dir ${top_builddir}/src/gnome-utils \
--library-dir ${top_srcdir}/src/gnome
TESTS_ENVIRONMENT := \
TESTS_ENVIRONMENT = \
SRCDIR=${srcdir} \
$(shell ${top_srcdir}/src/gnc-test-env --no-exports ${GNC_TEST_DEPS})

View File

@ -22,7 +22,7 @@ TESTS = \
test-link \
test-qif
GNC_TEST_DEPS := @GNC_TEST_SRFI_LOAD_CMD@ \
GNC_TEST_DEPS = @GNC_TEST_SRFI_LOAD_CMD@ \
--gnc-module-dir ${top_builddir}/src/core-utils \
--gnc-module-dir ${top_builddir}/src/gnc-module \
--gnc-module-dir ${top_builddir}/src/engine \
@ -41,7 +41,7 @@ GNC_TEST_DEPS := @GNC_TEST_SRFI_LOAD_CMD@ \
--guile-load-dir ${top_srcdir}/src/import-export \
--guile-load-dir ${top_srcdir}/src/import-export/qif
TESTS_ENVIRONMENT := \
TESTS_ENVIRONMENT = \
GNC_TEST_FILES=${srcdir}/test-files \
$(shell ${top_srcdir}/src/gnc-test-env --no-exports ${GNC_TEST_DEPS})

View File

@ -21,7 +21,7 @@ TESTS = \
test-link \
test-import-parse
GNC_TEST_DEPS := @GNC_TEST_SRFI_LOAD_CMD@ \
GNC_TEST_DEPS = @GNC_TEST_SRFI_LOAD_CMD@ \
--gnc-module-dir ${top_builddir}/src/engine \
--gnc-module-dir ${top_builddir}/src/import-export \
--guile-load-dir ${top_builddir}/src/engine \
@ -35,7 +35,7 @@ GNC_TEST_DEPS := @GNC_TEST_SRFI_LOAD_CMD@ \
--library-dir ${top_builddir}/src/gnome-utils \
--library-dir ${top_builddir}/src/import-export
TESTS_ENVIRONMENT := \
TESTS_ENVIRONMENT = \
$(shell ${top_srcdir}/src/gnc-test-env --no-exports ${GNC_TEST_DEPS})
check_PROGRAMS = \

View File

@ -1,6 +1,6 @@
TESTS = test-load-module test-link-module
GNC_TEST_DEPS := @GNC_TEST_SRFI_LOAD_CMD@ \
GNC_TEST_DEPS = @GNC_TEST_SRFI_LOAD_CMD@ \
--gnc-module-dir ${top_builddir}/src/engine \
--gnc-module-dir ${top_builddir}/src/tax/us \
--gnc-module-dir ${top_builddir}/src/report/report-system \
@ -15,7 +15,7 @@ GNC_TEST_DEPS := @GNC_TEST_SRFI_LOAD_CMD@ \
--library-dir ${top_builddir}/src/calculation \
--library-dir ${top_builddir}/src/app-utils
TESTS_ENVIRONMENT := \
TESTS_ENVIRONMENT = \
$(shell ${top_srcdir}/src/gnc-test-env --no-exports ${GNC_TEST_DEPS})
EXTRA_DIST = test-load-module

View File

@ -2,7 +2,7 @@ TESTS = \
test-link-module \
test-load-module
GNC_TEST_DEPS := @GNC_TEST_SRFI_LOAD_CMD@ \
GNC_TEST_DEPS = @GNC_TEST_SRFI_LOAD_CMD@ \
--gnc-module-dir ${top_builddir}/src/engine \
--gnc-module-dir ${top_builddir}/src/app-utils \
--gnc-module-dir ${top_builddir}/src/report/report-gnome \
@ -18,7 +18,7 @@ GNC_TEST_DEPS := @GNC_TEST_SRFI_LOAD_CMD@ \
--library-dir ${top_builddir}/src/gnome-utils \
--library-dir ${top_builddir}/src/report/report-system
TESTS_ENVIRONMENT := \
TESTS_ENVIRONMENT = \
$(shell ${top_srcdir}/src/gnc-test-env --no-exports ${GNC_TEST_DEPS})
LDADD = ../libgncmod-report-gnome.la

View File

@ -2,7 +2,7 @@ TESTS = \
test-link-module \
test-load-module
GNC_TEST_DEPS := @GNC_TEST_SRFI_LOAD_CMD@ \
GNC_TEST_DEPS = @GNC_TEST_SRFI_LOAD_CMD@ \
--gnc-module-dir ${top_builddir}/src/engine \
--gnc-module-dir ${top_builddir}/src/report/report-system \
--guile-load-dir ${top_builddir}/src/gnc-module \
@ -14,7 +14,7 @@ GNC_TEST_DEPS := @GNC_TEST_SRFI_LOAD_CMD@ \
--library-dir ${top_builddir}/src/calculation \
--library-dir ${top_builddir}/src/app-utils
TESTS_ENVIRONMENT := \
TESTS_ENVIRONMENT = \
$(shell ${top_srcdir}/src/gnc-test-env --no-exports ${GNC_TEST_DEPS})

View File

@ -1,6 +1,6 @@
TESTS=test-load-module
GNC_TEST_DEPS := @GNC_TEST_SRFI_LOAD_CMD@ \
GNC_TEST_DEPS = @GNC_TEST_SRFI_LOAD_CMD@ \
--gnc-module-dir ${top_builddir}/src/engine \
--gnc-module-dir ${top_builddir}/src/report/report-system \
--gnc-module-dir ${top_builddir}/src/report/standard-reports \
@ -13,7 +13,7 @@ GNC_TEST_DEPS := @GNC_TEST_SRFI_LOAD_CMD@ \
--library-dir ${top_builddir}/src/calculation \
--library-dir ${top_builddir}/src/app-utils
TESTS_ENVIRONMENT := \
TESTS_ENVIRONMENT = \
$(shell ${top_srcdir}/src/gnc-test-env --no-exports ${GNC_TEST_DEPS})
EXTRA_DIST = test-load-module

View File

@ -1,6 +1,6 @@
TESTS=test-load-module
GNC_TEST_DEPS := @GNC_TEST_SRFI_LOAD_CMD@ \
GNC_TEST_DEPS = @GNC_TEST_SRFI_LOAD_CMD@ \
--gnc-module-dir ${top_builddir}/src/engine \
--gnc-module-dir ${top_builddir}/src/report/report-system \
--gnc-module-dir ${top_builddir}/src/report/stylesheets \
@ -17,7 +17,7 @@ GNC_TEST_DEPS := @GNC_TEST_SRFI_LOAD_CMD@ \
--library-dir ${top_builddir}/src/report/report-system \
--library-dir ${top_builddir}/src/report/report-gnome
TESTS_ENVIRONMENT := \
TESTS_ENVIRONMENT = \
$(shell ${top_srcdir}/src/gnc-test-env --no-exports ${GNC_TEST_DEPS})
EXTRA_DIST = test-load-module

View File

@ -1,6 +1,6 @@
TESTS = test-load-module
GNC_TEST_DEPS := @GNC_TEST_SRFI_LOAD_CMD@ \
GNC_TEST_DEPS = @GNC_TEST_SRFI_LOAD_CMD@ \
--gnc-module-dir ${top_builddir}/src/engine \
--gnc-module-dir ${top_builddir}/src/report/report-system \
--gnc-module-dir ${top_builddir}/src/report/utility-reports \
@ -13,7 +13,7 @@ GNC_TEST_DEPS := @GNC_TEST_SRFI_LOAD_CMD@ \
--library-dir ${top_builddir}/src/calculation \
--library-dir ${top_builddir}/src/app-utils
TESTS_ENVIRONMENT := \
TESTS_ENVIRONMENT = \
$(shell ${top_srcdir}/src/gnc-test-env --no-exports ${GNC_TEST_DEPS})
EXTRA_DIST = test-load-module

View File

@ -1,14 +1,14 @@
TESTS = test-link-module test-load-module
# Some of these dirs may not be needed anymore.
GNC_TEST_DEPS := \
GNC_TEST_DEPS = \
--gnc-module-dir ${top_builddir}/src/tax/us \
--guile-load-dir ${top_builddir}/src/gnc-module \
--guile-load-dir ${top_builddir}/src/tax/us \
--library-dir ${top_builddir}/src/core-utils \
--library-dir ${top_builddir}/src/gnc-module
TESTS_ENVIRONMENT := \
TESTS_ENVIRONMENT = \
$(shell ${top_srcdir}/src/gnc-test-env --no-exports ${GNC_TEST_DEPS})
EXTRA_DIST = test-load-module