mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
13 lines
375 B
Ruby
13 lines
375 B
Ruby
module Homebrew
|
|
def tests
|
|
(HOMEBREW_LIBRARY/"Homebrew/test").cd do
|
|
ENV["TESTOPTS"] = "-v" if ARGV.verbose?
|
|
Homebrew.install_gem_setup_path! "bundler"
|
|
quiet_system("bundle", "check") || \
|
|
system("bundle", "install", "--path", "vendor/bundle")
|
|
system "bundle", "exec", "rake", "test"
|
|
Homebrew.failed = !$?.success?
|
|
end
|
|
end
|
|
end
|