test/run-test.rb in groonga-0.0.6 vs test/run-test.rb in groonga-0.0.7
- old
+ new
@@ -41,14 +41,18 @@
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'
-Dir.glob("test/**/test{_,-}*.rb") do |file|
+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)