Class: GroongaQueryLog::Command::RunRegressionTest
- Inherits:
-
Object
- Object
- GroongaQueryLog::Command::RunRegressionTest
- Defined in:
- lib/groonga-query-log/command/run-regression-test.rb
Defined Under Namespace
Classes: GroongaServer, Tester
Instance Method Summary collapse
-
#initialize ⇒ RunRegressionTest
constructor
A new instance of RunRegressionTest.
- #run(command_line) ⇒ Object
Constructor Details
#initialize ⇒ RunRegressionTest
Returns a new instance of RunRegressionTest.
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/groonga-query-log/command/run-regression-test.rb', line 30 def initialize @input_directory = Pathname.new(".") @working_directory = Pathname.new(".") @old_groonga = "groonga" @old_database = "db.old/db" @old_groonga_options = [] @new_groonga = "groonga" @new_database = "db.new/db" @new_groonga_options = [] @recreate_database = false @load_data = true @run_queries = true @skip_finished_queries = false @output_query_log = false @care_order = true @verify_cachehit_mode = false end |
Instance Method Details
#run(command_line) ⇒ Object
51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/groonga-query-log/command/run-regression-test.rb', line 51 def run(command_line) option_parser = create_option_parser begin option_parser.parse!(command_line) rescue OptionParser::ParseError => error $stderr.puts(error.) return false end tester = Tester.new(old_groonga_server, new_groonga_server, ) tester.run end |