aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2013-06-21 10:39:59 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2013-06-21 10:39:59 +0200
commit6cd8b9f561b912f264ba4f723845935c40a3cb95 (patch)
tree5983e0af3d2ee621242ca6707a58c89b9914d8f0 /makefile
parent236cd9bb1dd022e64d690c9b0080d1a15c5f61c7 (diff)
Add support for running tests in dynamic multi-database mode
Only possible in the development build system at this stage.
Diffstat (limited to 'makefile')
-rw-r--r--makefile18
1 files changed, 12 insertions, 6 deletions
diff --git a/makefile b/makefile
index 99c61e7..63a3982 100644
--- a/makefile
+++ b/makefile
@@ -5,13 +5,14 @@
include $(dir $(lastword $(MAKEFILE_LIST)))build/bootstrap.make
all_dirs := libcommon common evolution mysql sqlite pgsql oracle mssql boost qt
-dirs := common evolution boost qt
-dirs += $(db_id)
+dirs := common boost qt
-default := $(out_base)/
-dist := $(out_base)/.dist
-test := $(out_base)/.test
-clean := $(out_base)/.clean
+# Evolution and database-specific tests are not run in the multi-database
+# configuration.
+#
+ifneq ($(db_id),common)
+dirs += evolution $(db_id)
+endif
$(default): $(addprefix $(out_base)/,$(addsuffix /,$(dirs)))
@@ -32,6 +33,11 @@ $(dist): $(addprefix $(out_base)/,$(addsuffix /.dist,$(all_dirs)))
$(call meta-autoconf)
$(test): $(addprefix $(out_base)/,$(addsuffix /.test,$(dirs)))
+
+ifeq ($(db_id),common)
+$(foreach d,$(databases),$(eval $(call db-test-dir,$d,$(dirs))))
+endif
+
$(clean): $(addprefix $(out_base)/,$(addsuffix /.clean,$(all_dirs)))
$(call include,$(bld_root)/dist.make)