Sha256: b942d0f0e56c8e759e7417122b239c9cc997bc4c6591c18b72f6d60eba8b52f4

Contents?: true

Size: 1.71 KB

Versions: 33

Compression:

Stored size: 1.71 KB

Contents

#!/usr/bin/env ruby
#
# Copyright (C) 2009-2010  Kouhei Sutou <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 version 2.1 as published by the Free Software Foundation.
#
# 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, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

$VERBOSE = true

$KCODE = "u" if RUBY_VERSION < "1.9"

base_dir = File.expand_path(File.join(File.dirname(__FILE__), ".."))
ext_dir = File.join(base_dir, "ext", "groonga")
lib_dir = File.join(base_dir, "lib")
test_dir = File.join(base_dir, "test")

make = nil
if ENV["NO_MAKE"] != "yes"
  if system("which gmake > /dev/null")
    make = "gmake"
  elsif system("which make > /dev/null")
    make = "make"
  end
end
if make
  system("cd #{base_dir.dump} && #{make} > /dev/null") or exit(false)
end

require "test-unit"
require "test/unit/notify"

Test::Unit::Priority.enable

$LOAD_PATH.unshift(ext_dir)
$LOAD_PATH.unshift(lib_dir)
$LOAD_PATH.unshift(base_dir)

$LOAD_PATH.unshift(test_dir)
require 'groonga-test-utils'

pkg_config = File.join(base_dir, "vendor", "local", "lib", "pkgconfig")
PKGConfig.add_path(pkg_config)

Dir.glob("#{base_dir}/test/**/test{_,-}*.rb") do |file|
  require file.sub(/\.rb$/, '')
end

ENV["TEST_UNIT_MAX_DIFF_TARGET_STRING_SIZE"] ||= "5000"

exit Test::Unit::AutoRunner.run

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
rroonga-3.0.6-x86-mingw32 test/run-test.rb
rroonga-3.0.6 test/run-test.rb
rroonga-3.0.5-x86-mingw32 test/run-test.rb
rroonga-3.0.5 test/run-test.rb
rroonga-3.0.4-x86-mingw32 test/run-test.rb
rroonga-3.0.4 test/run-test.rb
rroonga-3.0.3 test/run-test.rb
rroonga-3.0.2-x86-mingw32 test/run-test.rb
rroonga-3.0.2 test/run-test.rb
rroonga-3.0.1-x86-mingw32 test/run-test.rb
rroonga-3.0.1 test/run-test.rb
rroonga-3.0.0-x86-mingw32 test/run-test.rb
rroonga-3.0.0 test/run-test.rb
rroonga-2.1.3-x86-mingw32 test/run-test.rb
rroonga-2.1.3 test/run-test.rb
rroonga-2.1.2-x86-mingw32 test/run-test.rb
rroonga-2.1.2 test/run-test.rb
rroonga-2.1.1-x86-mingw32 test/run-test.rb
rroonga-2.1.1 test/run-test.rb
rroonga-2.1.0-x86-mingw32 test/run-test.rb