Navigation Menu

Skip to content

Commit

Permalink
test: use storage/maria/ to detect MariaDB
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 19, 2012
1 parent 0e48e60 commit 2526129
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions test/run-sql-test.sh
Expand Up @@ -26,12 +26,17 @@ case "${MYSQL_VERSION}" in
if ! test -d "${build_test_suites_dir}"; then
ln -s "${source_test_suites_dir}" "${build_test_suites_dir}"
fi
plugins_dir="${MYSQL_SOURCE_DIR}/lib/plugin"
if ! test -d "${plugins_dir}"; then
if ! test -d "${MYSQL_BUILD_DIR}/plugin/mroonga"; then
ln -s "${top_dir}" "${MYSQL_BUILD_DIR}/plugin/mroonga"
fi
maria_storage_dir="${MYSQL_SOURCE_DIR}/storage/maria"
if test -d "${maria_storage_dir}"; then
mariadb="yes"
else
mariadb="no"
fi
if test "${mariadb}" = "yes"; then
ln -s "${top_dir}" "${MYSQL_BUILD_DIR}/plugin/mroonga"
plugins_dir=
else
plugins_dir="${MYSQL_SOURCE_DIR}/lib/plugin"
fi
;;
esac
Expand Down

0 comments on commit 2526129

Please sign in to comment.