[Groonga-commit] droonga/drntest at 8fa9c44 [master] Accept --config and --catalog options to specify configurations ot the droonga engine

Back to archive index

YUKI Hiroshi null+****@clear*****
Mon Nov 25 17:02:59 JST 2013


YUKI Hiroshi	2013-11-25 17:02:59 +0900 (Mon, 25 Nov 2013)

  New Revision: 8fa9c44a9f65e90bf645d58bdb87e6861d85f155
  https://github.com/droonga/drntest/commit/8fa9c44a9f65e90bf645d58bdb87e6861d85f155

  Message:
    Accept --config and --catalog options to specify configurations ot the droonga engine

  Modified files:
    lib/drntest/tester.rb

  Modified: lib/drntest/tester.rb (+15 -1)
===================================================================
--- lib/drntest/tester.rb    2013-11-25 16:58:52 +0900 (721d415)
+++ lib/drntest/tester.rb    2013-11-25 17:02:59 +0900 (1feafb6)
@@ -53,6 +53,16 @@ module Drntest
           tester.tag = tag
         end
 
+        parser.on("--config=PATH",
+                  "Path to the default configuration file of droonga engine" do |config|
+          tester.config = config
+        end
+
+        parser.on("--catalog=PATH",
+                  "Path to the default catalog file of droonga engine" do |catalog|
+          tester.catalog = catalog
+        end
+
         parser.on("--testcase=PATTERN",
                   "Run only testcases which have a name matched to the given PATTERN") do |pattern|
           tester.pattern = pattern
@@ -62,12 +72,14 @@ module Drntest
       end
     end
 
-    attr_accessor :port, :host, :tag, :pattern
+    attr_accessor :port, :host, :tag, :pattern, :config, :catalog
 
     def initialize
       @port = 24224
       @host = "localhost"
       @tag  = "droonga"
+      @config  = nil
+      @catalog = nil
       @pattern = nil
     end
 
@@ -76,6 +88,8 @@ module Drntest
       tests = load_tests(*targets)
       tests.each do |test|
         test_runner = TestRunner.new(self, test)
+        test_runner.config = @config
+        test_runner.catalog = @catalog
         test_suites_result.test_results << test_runner.run
       end
 
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index