[Groonga-commit] groonga/grntest [master] Split groonga runner for protocols

Back to archive index

null+****@clear***** null+****@clear*****
2012年 6月 6日 (水) 16:31:08 JST


Haruka Yoshihara	2012-06-06 16:31:08 +0900 (Wed, 06 Jun 2012)

  New Revision: 1b72baddcd55c4ff996565a29c68f3904ccd1aa1

  Log:
    Split groonga runner for protocols
    
    groonga runner for HTTP isn't implemented yet.

  Modified files:
    lib/groonga/tester.rb

  Modified: lib/groonga/tester.rb (+10 -1)
===================================================================
--- lib/groonga/tester.rb    2012-06-06 16:26:19 +0900 (cae472b)
+++ lib/groonga/tester.rb    2012-06-06 16:31:08 +0900 (ebbb8ab)
@@ -271,7 +271,16 @@ module Groonga
         @test_script_path.to_s.gsub(/\//, ".")
       end
 
-      def run_groonga(db_path)
+      def run_groonga(db_path, &block)
+        case****@teste*****
+        when :gqtp
+          run_groonga_gqtp(db_path, &block)
+        when :http
+          run_groonga_http(db_path, &block)
+        end
+      end
+
+      def run_groonga_gqtp(db_path)
         read = 0
         write = 1
         input_pipe = IO.pipe




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