Sha256: 6746c0ba2646cc05e5053d044b3e8fda4d928c4c5a1de21e325ea5c50ac6c446
Contents?: true
Size: 1.7 KB
Versions: 4
Compression:
Stored size: 1.7 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__), "..")) test_unit_dir = File.join(base_dir, "test-unit", "lib") 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 system("which gmake > /dev/null") make = "gmake" elsif system("which make > /dev/null") make = "make" end if make system("cd #{base_dir.dump} && #{make} > /dev/null") or exit(1) end $LOAD_PATH.unshift(test_unit_dir) require 'test/unit' ARGV.unshift("--priority-mode") $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") PackageConfig.prepend_default_path(pkg_config) Dir.glob("#{base_dir}/test/**/test{_,-}*.rb") do |file| require file.sub(/\.rb$/, '') end exit Test::Unit::AutoRunner.run(false)
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rroonga-0.9.3-x86-mingw32 | test/run-test.rb |
rroonga-0.9.3 | test/run-test.rb |
rroonga-0.9.2-x86-mingw32 | test/run-test.rb |
rroonga-0.9.2 | test/run-test.rb |