aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Contributions/cmd/brew-tests.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Contributions/cmd/brew-tests.rb')
-rwxr-xr-xLibrary/Contributions/cmd/brew-tests.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/Library/Contributions/cmd/brew-tests.rb b/Library/Contributions/cmd/brew-tests.rb
new file mode 100755
index 000000000..0a2fb78e7
--- /dev/null
+++ b/Library/Contributions/cmd/brew-tests.rb
@@ -0,0 +1,11 @@
+module Homebrew extend self
+ def tests
+ (HOMEBREW_LIBRARY/'Homebrew/test').cd do
+ ENV['TESTOPTS'] = '-v' if ARGV.verbose?
+ system "rake", "test"
+ exit $?.exitstatus
+ end
+ end
+end
+
+Homebrew.tests