Sha256: 6d1c96b3a1cc13758774c5dd074d06d4b63076e78bfbb0cd83a044f296544fa2
Contents?: true
Size: 1.54 KB
Versions: 4
Compression:
Stored size: 1.54 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 base_dir = File.expand_path(File.join(File.dirname(__FILE__), "..")) test_unit_dir = File.join(base_dir, "test-unit", "lib") ruby_groonga_dir = File.expand_path(File.join(base_dir, "..", "groonga")) lib_dir = File.join(base_dir, "lib") test_dir = File.join(base_dir, "test") if File.exist?(ruby_groonga_dir) make = nil if system("which gmake > /dev/null") make = "gmake" elsif system("which make > /dev/null") make = "make" end if make system("cd #{ruby_groonga_dir.dump} && #{make} > /dev/null") or exit(1) end end $LOAD_PATH.unshift(test_unit_dir) require 'test/unit' $LOAD_PATH.unshift(lib_dir) $LOAD_PATH.unshift(test_dir) require 'active-groonga-test-utils' Dir.glob("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 |
---|---|
activegroonga-0.0.7 | test/run-test.rb |
activegroonga-0.0.6 | test/run-test.rb |
activegroonga-0.0.1 | test/run-test.rb |
activegroonga-0.0.2 | test/run-test.rb |