aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Contributions/cmd/brew-tests.rb
diff options
context:
space:
mode:
authorMike McQuaid2013-02-17 13:32:15 +0000
committerMike McQuaid2013-02-18 10:42:44 +0000
commit4a281cd5cf8f722d73a4f50612e8c460f57fddd7 (patch)
tree765c472cc951590398a52651b59051af2cdd2b59 /Library/Contributions/cmd/brew-tests.rb
parente9d58c410052157487f96a77dd318cbda641806e (diff)
downloadbrew-4a281cd5cf8f722d73a4f50612e8c460f57fddd7.tar.bz2
Rename Library/Contributions/cmds -> cmd.
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