Sha256: e6a744f4e6b3b04a30a1247f94d649d82236a32f97a9199319711e03021efa5d
Contents?: true
Size: 1.68 KB
Versions: 4
Compression:
Stored size: 1.68 KB
Contents
#!/usr/bin/env ruby # # Copyright (C) 2009 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") 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 & 2 rubygems
Version | Path |
---|---|
rroonga-0.9.2-mswin32 | test/run-test.rb |
groonga-0.9.1 | test/run-test.rb |
groonga-0.9.0 | test/run-test.rb |
groonga-0.0.7 | test/run-test.rb |