lib/grntest/tester.rb in grntest-1.1.7 vs lib/grntest/tester.rb in grntest-1.1.8

- old
+ new

@@ -210,10 +210,16 @@ "Timeout for each test", "(#{tester.timeout})") do |timeout| tester.timeout = timeout end + parser.on("--[no-]debug", + "Enable debug information", + "(#{tester.debug?})") do |debug| + tester.debug = debug + end + parser.on("--version", "Show version and exit") do puts(VERSION) throw(tag, true) end @@ -256,10 +262,11 @@ attr_accessor :timeout attr_writer :valgrind_gen_suppressions attr_writer :reporter, :keep_database, :use_color attr_writer :stop_on_failure attr_writer :suppress_omit_log + attr_writer :debug attr_reader :test_patterns, :test_suite_patterns attr_reader :exclude_test_patterns, :exclude_test_suite_patterns def initialize @groonga = "groonga" @groonga_httpd = "groonga-httpd" @@ -277,10 +284,11 @@ @output = $stdout @keep_database = false @use_color = nil @stop_on_failure = false @suppress_omit_log = true + @debug = false @test_patterns = [] @test_suite_patterns = [] @exclude_test_patterns = [] @exclude_test_suite_patterns = [] detect_suitable_diff @@ -324,9 +332,13 @@ @stop_on_failure end def suppress_omit_log? @suppress_omit_log + end + + def debug? + @debug end def valgrind_gen_suppressions? @valgrind_gen_suppressions end