[Groonga-mysql-commit] mroonga/mroonga [master] [test][wrapper][innodb] fix result format. refs #1195

Back to archive index

null+****@clear***** null+****@clear*****
2011年 12月 27日 (火) 14:37:42 JST


Kouhei Sutou	2011-12-27 14:37:42 +0900 (Tue, 27 Dec 2011)

  New Revision: db61c4ded9366fc17e8f9089e82350f7a8166eea

  Log:
    [test][wrapper][innodb] fix result format. refs #1195

  Modified files:
    test/run-sql-test.sh

  Modified: test/run-sql-test.sh (+8 -1)
===================================================================
--- test/run-sql-test.sh    2011-12-27 14:12:55 +0900 (705708b)
+++ test/run-sql-test.sh    2011-12-27 14:37:42 +0900 (0b21678)
@@ -87,14 +87,21 @@ 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 "$0" -nt "$(dirname "${groonga_wrapper_innodb_test_suite_dir}")"; then
+    rm -rf "${groonga_wrapper_innodb_test_suite_dir}"
+fi
 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
+    ruby -i'' \
+	-pe "\$_.gsub!(/\bengine\s*=\s*innodb\b([^;\\n]*)/i,
+                      \"ENGINE=groonga\\\1 COMMENT='ENGINE \\\"InnoDB\\\"'\")
+            " \
+	${groonga_wrapper_innodb_test_suite_dir}/r/*.result
     sed -i'' \
 	-e '1 i --source include/have_groonga.inc' \
 	${groonga_wrapper_innodb_test_suite_dir}/t/*.test




Groonga-mysql-commit メーリングリストの案内
Back to archive index