null+****@clear*****
null+****@clear*****
2011年 12月 27日 (火) 13:42:18 JST
Kouhei Sutou 2011-12-27 13:42:18 +0900 (Tue, 27 Dec 2011)
New Revision: 2aa33a75e17ed8875342ca032c762097c9b8c7b7
Log:
[test][wrapper] support InnoDB tests with wrapper mode. refs #1195
They aren't passed yet. :<
Modified files:
test/run-sql-test.sh
Modified: test/run-sql-test.sh (+15 -0)
===================================================================
--- test/run-sql-test.sh 2011-12-26 23:29:46 +0900 (4a85f46)
+++ test/run-sql-test.sh 2011-12-27 13:42:18 +0900 (705708b)
@@ -85,6 +85,21 @@ for test_suite_name in $(echo $test_suite_names | sed -e 's/,/ /g'); do
fi
done
+innodb_test_suite_dir="${build_test_suites_dir}/innodb"
+groonga_wrapper_innodb_test_suite_dir="${build_test_suites_dir}/groonga_wrapper_innodb"
+if ! test -d "${groonga_wrapper_innodb_test_suite_dir}"; then
+ cp -rp "${innodb_test_suite_dir}" "${groonga_wrapper_innodb_test_suite_dir}"
+ ruby -i'' \
+ -pe "\$_.gsub!(/\bengine\s*=\s*innodb\b/i,
+ \"ENGINE = groonga COMMENT = 'ENGINE \\\"InnoDB\\\"'\")
+ " \
+ ${groonga_wrapper_innodb_test_suite_dir}/r/*.result \
+ ${groonga_wrapper_innodb_test_suite_dir}/t/*.test
+ sed -i'' \
+ -e '1 i --source include/have_groonga.inc' \
+ ${groonga_wrapper_innodb_test_suite_dir}/t/*.test
+fi
+
if test -n "${plugins_dir}"; then
make -C ${top_dir} \
install-pluginLTLIBRARIES \