summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorguilhem@gbichot3.local <>2006-09-15 15:15:24 +0200
committerguilhem@gbichot3.local <>2006-09-15 15:15:24 +0200
commit09c5a834162d0150b1680052e2cd037fdbc53e00 (patch)
tree4a806d99e2eb9e6c98fe6213c4fa5ea9d6402a44 /config
parent996b8d92c7b54c04bef34fa358035685529d5d8b (diff)
downloadmariadb-git-09c5a834162d0150b1680052e2cd037fdbc53e00.tar.gz
WL#3504 "plugin actions for engines' and plugins' unit tests"
for push in 5.1 (I will inform Trudy). Storage engines and plugins can now have unit tests to test their components; such test must be an executable C/C++ program which name ends with '-t' and which is obeys the mytap protocol, it must be stored in the storage engine's or plugin's source directory (storage/<engine> or plugin/<plugin>) or any subdirectories of this. The top-level Makefile target "test-unit" will run all unit tests: it will scan the engines' and plugins' directories, recursively, and execute all executable files which name ends with '-t'."
Diffstat (limited to 'config')
-rw-r--r--config/ac-macros/plugins.m412
1 files changed, 10 insertions, 2 deletions
diff --git a/config/ac-macros/plugins.m4 b/config/ac-macros/plugins.m4
index cfc5f8dbcbe..87f057e696a 100644
--- a/config/ac-macros/plugins.m4
+++ b/config/ac-macros/plugins.m4
@@ -280,6 +280,8 @@ AC_DEFUN([MYSQL_CONFIGURE_PLUGINS],[
_MYSQL_EMIT_PLUGIN_ACTIONS(m4_bpatsubst(__mysql_plugin_list__, :, [,]))
AC_SUBST([mysql_se_dirs])
AC_SUBST([mysql_pg_dirs])
+ AC_SUBST([mysql_se_unittest_dirs])
+ AC_SUBST([mysql_pg_unittest_dirs])
])
])
])
@@ -410,9 +412,15 @@ dnl Although this is "pretty", it breaks libmysqld build
[AC_CONFIG_FILES($6/Makefile)]
)
ifelse(m4_substr($6, 0, 8), [storage/],
- [mysql_se_dirs="$mysql_se_dirs ]m4_substr($6, 8)",
+ [
+ [mysql_se_dirs="$mysql_se_dirs ]m4_substr($6, 8)"
+ mysql_se_unittest_dirs="$mysql_se_unittest_dirs ../$6"
+ ],
m4_substr($6, 0, 7), [plugin/],
- [mysql_pg_dirs="$mysql_pg_dirs ]m4_substr($6, 7)",
+ [
+ [mysql_pg_dirs="$mysql_pg_dirs ]m4_substr($6, 7)"
+ mysql_pg_unittest_dirs="$mysql_pg_unittest_dirs ../$6"
+ ],
[AC_FATAL([don't know how to handle plugin dir ]$6)])
fi
])