lib/grntest/tester.rb in grntest-1.5.6 vs lib/grntest/tester.rb in grntest-1.5.7

- old
+ new

@@ -1,6 +1,6 @@ -# Copyright (C) 2012-2021 Sutou Kouhei <kou@clear-code.com> +# Copyright (C) 2012-2022 Sutou Kouhei <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. @@ -195,10 +195,16 @@ "Run Groonga on gdb and use COMMAND as gdb", "(#{tester.default_gdb})") do |command| tester.gdb = command || tester.default_gdb end + parser.on("--rr[=COMMAND]", + "Run Groonga on 'rr record' and use COMMAND as rr", + "(#{tester.default_rr})") do |command| + tester.rr = command || tester.default_rr + end + parser.on("--valgrind[=COMMAND]", "Run Groonga on valgrind and use COMMAND as valgrind", "(#{tester.default_valgrind})") do |command| tester.valgrind = command || tester.default_valgrind end @@ -321,10 +327,11 @@ attr_accessor :testee attr_accessor :base_directory, :database_path, :diff, :diff_options attr_accessor :n_workers attr_accessor :output attr_accessor :gdb, :default_gdb + attr_accessor :rr, :default_rr attr_accessor :valgrind, :default_valgrind attr_accessor :timeout attr_accessor :read_timeout attr_writer :valgrind_gen_suppressions attr_writer :reporter, :keep_database, :use_color @@ -532,9 +539,11 @@ end def initialize_debuggers @gdb = nil @default_gdb = "gdb" + @rr = nil + @default_rr = "rr" end def initialize_memory_checkers @vagrind = nil @default_valgrind = "valgrind"