[Groonga-mysql-commit] mroonga/mroonga [master] [wrapper][test] split fulltext insert test.

Back to archive index

null+****@clear***** null+****@clear*****
2011年 9月 25日 (日) 09:32:31 JST


Kouhei Sutou	2011-09-25 00:32:31 +0000 (Sun, 25 Sep 2011)

  New Revision: 5a1ac7a69ce96f149a6407b7581bc8748fa5a0d7

  Log:
    [wrapper][test] split fulltext insert test.

  Added files:
    test/sql/groonga_wrapper/r/fulltext_insert.result
    test/sql/groonga_wrapper/t/fulltext_insert.test
  Modified files:
    test/sql/groonga_wrapper/r/fulltext.result
    test/sql/groonga_wrapper/t/fulltext.test

  Modified: test/sql/groonga_wrapper/r/fulltext.result (+0 -24)
===================================================================
--- test/sql/groonga_wrapper/r/fulltext.result    2011-09-24 18:38:19 +0000 (f8a30d0)
+++ test/sql/groonga_wrapper/r/fulltext.result    2011-09-25 00:32:31 +0000 (bfdf988)
@@ -1,28 +1,4 @@
 drop table if exists t1, t2, t3;
-create table t1 (c1 int primary key, c2 text, fulltext index ft (c2)) COMMENT = 'engine "innodb"';
-show create table t1;
-Table	Create Table
-t1	CREATE TABLE `t1` (
-  `c1` int(11) NOT NULL,
-  `c2` text,
-  PRIMARY KEY (`c1`),
-  FULLTEXT KEY `ft` (`c2`)
-) ENGINE=groonga DEFAULT CHARSET=latin1 COMMENT='engine "innodb"'
-insert into t1 values (1, "hoge hoge");
-insert into t1 values (2, "fuga fuga");
-insert into t1 values (3, "moge moge");
-select * from t1;
-c1	c2
-1	hoge hoge
-2	fuga fuga
-3	moge moge
-flush tables;
-select * from t1;
-c1	c2
-1	hoge hoge
-2	fuga fuga
-3	moge moge
-drop table t1;
 create table t1 (c1 int primary key, c2 int, c3 text, fulltext index ft(c3)) COMMENT = 'engine "innodb"';
 insert into t1 values(1,10,"aa ii uu ee oo");
 insert into t1 values(2,20,"ka ki ku ke ko");

  Added: test/sql/groonga_wrapper/r/fulltext_insert.result (+25 -0) 100644
===================================================================
--- /dev/null
+++ test/sql/groonga_wrapper/r/fulltext_insert.result    2011-09-25 00:32:31 +0000 (a29ffe8)
@@ -0,0 +1,25 @@
+drop table if exists t1, t2, t3;
+create table t1 (c1 int primary key, c2 text, fulltext index ft (c2)) COMMENT = 'engine "innodb"';
+show create table t1;
+Table	Create Table
+t1	CREATE TABLE `t1` (
+  `c1` int(11) NOT NULL,
+  `c2` text,
+  PRIMARY KEY (`c1`),
+  FULLTEXT KEY `ft` (`c2`)
+) ENGINE=groonga DEFAULT CHARSET=latin1 COMMENT='engine "innodb"'
+insert into t1 values (1, "hoge hoge");
+insert into t1 values (2, "fuga fuga");
+insert into t1 values (3, "moge moge");
+select * from t1;
+c1	c2
+1	hoge hoge
+2	fuga fuga
+3	moge moge
+flush tables;
+select * from t1;
+c1	c2
+1	hoge hoge
+2	fuga fuga
+3	moge moge
+drop table t1;

  Modified: test/sql/groonga_wrapper/t/fulltext.test (+0 -10)
===================================================================
--- test/sql/groonga_wrapper/t/fulltext.test    2011-09-24 18:38:19 +0000 (a894746)
+++ test/sql/groonga_wrapper/t/fulltext.test    2011-09-25 00:32:31 +0000 (e416455)
@@ -21,16 +21,6 @@
 drop table if exists t1, t2, t3;
 --enable_warnings
 
-create table t1 (c1 int primary key, c2 text, fulltext index ft (c2)) COMMENT = 'engine "innodb"';
-show create table t1;
-insert into t1 values (1, "hoge hoge");
-insert into t1 values (2, "fuga fuga");
-insert into t1 values (3, "moge moge");
-select * from t1;
-flush tables;
-select * from t1;
-drop table t1;
-
 create table t1 (c1 int primary key, c2 int, c3 text, fulltext index ft(c3)) COMMENT = 'engine "innodb"';
 insert into t1 values(1,10,"aa ii uu ee oo");
 insert into t1 values(2,20,"ka ki ku ke ko");

  Added: test/sql/groonga_wrapper/t/fulltext_insert.test (+34 -0) 100644
===================================================================
--- /dev/null
+++ test/sql/groonga_wrapper/t/fulltext_insert.test    2011-09-25 00:32:31 +0000 (2c6cff7)
@@ -0,0 +1,34 @@
+# Copyright(C) 2010 Tetsuro IKEDA
+# Copyright(C) 2011 Kouhei Sutou <kou****@clear*****>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
+--source suite/groonga_include/groonga_init.inc
+
+--disable_warnings
+drop table if exists t1, t2, t3;
+--enable_warnings
+
+create table t1 (c1 int primary key, c2 text, fulltext index ft (c2)) COMMENT = 'engine "innodb"';
+show create table t1;
+insert into t1 values (1, "hoge hoge");
+insert into t1 values (2, "fuga fuga");
+insert into t1 values (3, "moge moge");
+select * from t1;
+flush tables;
+select * from t1;
+drop table t1;
+
+--source suite/groonga_include/groonga_deinit.inc




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