#!/usr/bin/env ruby
#
# Copyright (C) 2009-2022  Sutou Kouhei <kou@clear-code.com>
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this library.  If not, see <http://www.gnu.org/licenses/>.

require 'pathname'

base = Pathname.new(__FILE__).dirname.expand_path
top = (base + ".." + "..").expand_path
test_unit_dir = top + "binding" + "ruby" + "test-unit" + "lib"

$LOAD_PATH.unshift(test_unit_dir.to_s)
require 'test/unit'

$LOAD_PATH.unshift((top + "tool").to_s)

$LOAD_PATH.unshift(base.to_s)
require 'tool-test-utils'

ARGV.unshift("--priority-mode")
ARGV.unshift("--max-diff-target-string-size=5000")
exit Test::Unit::AutoRunner.run(true, base)
