lib/grntest/tester.rb in grntest-1.1.2 vs lib/grntest/tester.rb in grntest-1.1.3
- old
+ new
@@ -1,9 +1,7 @@
-# -*- coding: utf-8 -*-
+# Copyright (C) 2012-2016 Kouhei Sutou <kou@clear-code.com>
#
-# Copyright (C) 2012-2015 Kouhei Sutou <kou@clear-code.com>
-#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
@@ -114,11 +112,11 @@
tester.diff_options.clear if diff_option_is_specified
tester.diff_options << option
diff_option_is_specified = true
end
- available_reporters = [:mark, :stream, :inplace]
+ available_reporters = [:mark, :"buffered-mark", :stream, :inplace]
available_reporter_labels = available_reporters.join(", ")
parser.on("--reporter=REPORTER", available_reporters,
"Report test result by REPORTER",
"[#{available_reporter_labels}]",
"(auto)") do |reporter|
@@ -186,10 +184,16 @@
"Stop immediately on the first non success test",
"(#{tester.stop_on_failure?})") do |boolean|
tester.stop_on_failure = boolean
end
+ parser.on("--no-suppress-omit-log",
+ "Suppress omit logs",
+ "(#{tester.suppress_omit_log?})") do |boolean|
+ tester.suppress_omit_log = boolean
+ end
+
parser.on("--output=OUTPUT",
"Output to OUTPUT",
"(stdout)") do |output|
tester.output = File.open(output, "w:ascii-8bit")
end
@@ -226,10 +230,11 @@
attr_accessor :gdb, :default_gdb
attr_accessor :valgrind, :default_valgrind
attr_writer :valgrind_gen_suppressions
attr_writer :reporter, :keep_database, :use_color
attr_writer :stop_on_failure
+ attr_writer :suppress_omit_log
attr_reader :test_patterns, :test_suite_patterns
attr_reader :exclude_test_patterns, :exclude_test_suite_patterns
def initialize
@groonga = "groonga"
@groonga_httpd = "groonga-httpd"
@@ -243,10 +248,11 @@
@n_workers = 1
@output = $stdout
@keep_database = false
@use_color = nil
@stop_on_failure = false
+ @suppress_omit_log = true
@test_patterns = []
@test_suite_patterns = []
@exclude_test_patterns = []
@exclude_test_suite_patterns = []
detect_suitable_diff
@@ -285,9 +291,13 @@
@use_color
end
def stop_on_failure?
@stop_on_failure
+ end
+
+ def suppress_omit_log?
+ @suppress_omit_log
end
def valgrind_gen_suppressions?
@valgrind_gen_suppressions
end