aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorAdam Vandenberg2014-05-19 20:29:54 -0700
committerAdam Vandenberg2014-05-21 08:27:13 -0700
commitc6f1ccc2157012cdbc7a70fa9cf8595a1fb5ac1a (patch)
tree531dc0f9d5f1e93c1116848c28906c664dcdbc7b /Library/Homebrew
parentb2b74260dbf7ea106e9b905fb68419dc17f3ab7a (diff)
downloadbrew-c6f1ccc2157012cdbc7a70fa9cf8595a1fb5ac1a.tar.bz2
make `tests` an internal command
Diffstat (limited to 'Library/Homebrew')
-rwxr-xr-xLibrary/Homebrew/cmd/tests.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/tests.rb b/Library/Homebrew/cmd/tests.rb
new file mode 100755
index 000000000..27f522d65
--- /dev/null
+++ b/Library/Homebrew/cmd/tests.rb
@@ -0,0 +1,9 @@
+module Homebrew extend self
+ def tests
+ (HOMEBREW_LIBRARY/'Homebrew/test').cd do
+ ENV['TESTOPTS'] = '-v' if ARGV.verbose?
+ system "rake", "deps", "test"
+ exit $?.exitstatus
+ end
+ end
+end