Navigation Menu

Skip to content

Commit

Permalink
test: support MySQL 5.5.23 but it's not completed yet
Browse files Browse the repository at this point in the history
MySQL 5.5.23 doesn't have mysql-test/suite/innodb/include/.
  • Loading branch information
kou committed Apr 19, 2012
1 parent e744994 commit 0e48e60
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/run-sql-test.sh
Expand Up @@ -72,13 +72,15 @@ done

innodb_test_suite_dir="${build_test_suites_dir}/innodb"
mroonga_wrapper_innodb_test_suite_dir="${build_test_suites_dir}/mroonga_wrapper_innodb"
mroonga_wrapper_innodb_include_dir="${mroonga_wrapper_innodb_test_suite_dir}/include/"
if test "$0" -nt "$(dirname "${mroonga_wrapper_innodb_test_suite_dir}")"; then
rm -rf "${mroonga_wrapper_innodb_test_suite_dir}"
fi
if ! test -d "${mroonga_wrapper_innodb_test_suite_dir}"; then
cp -rp "${innodb_test_suite_dir}" "${mroonga_wrapper_innodb_test_suite_dir}"
mkdir -p "${mroonga_wrapper_innodb_include_dir}"
cp -rp "${build_test_include_dir}"/innodb[-_]*.inc \
"${mroonga_wrapper_innodb_test_suite_dir}/include/"
"${mroonga_wrapper_innodb_include_dir}"
ruby -i'' \
-pe "\$_.gsub!(/\\bengine\\s*=\\s*innodb\\b([^;\\n]*)/i,
\"ENGINE=mroonga\\\1 COMMENT='ENGINE \\\"InnoDB\\\"'\")
Expand Down

0 comments on commit 0e48e60

Please sign in to comment.