aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Contributions
diff options
context:
space:
mode:
authorJack Nagel2012-04-16 16:44:11 -0500
committerJack Nagel2012-04-16 23:08:32 -0500
commitc44cb2710ba94e2caaae5de480a895ed2aab490e (patch)
tree141c3330166a997957035e4e4712655858d05fff /Library/Contributions
parent84a4935bb5a9c39e6a58e9f848ce1be93d3451b4 (diff)
downloadbrew-c44cb2710ba94e2caaae5de480a895ed2aab490e.tar.bz2
tests: replace tests script with rake-based runner
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Contributions')
-rwxr-xr-xLibrary/Contributions/cmds/brew-tests.rb36
1 files changed, 9 insertions, 27 deletions
diff --git a/Library/Contributions/cmds/brew-tests.rb b/Library/Contributions/cmds/brew-tests.rb
index f7f7f78ca..0a2fb78e7 100755
--- a/Library/Contributions/cmds/brew-tests.rb
+++ b/Library/Contributions/cmds/brew-tests.rb
@@ -1,29 +1,11 @@
-require 'utils'
-
-Dir.chdir HOMEBREW_REPOSITORY + "Library/Homebrew/test"
-
-$tests_passed = true
-
-def test t
- test_passed = system "/usr/bin/ruby test_#{t}.rb"
- $tests_passed &&= test_passed
- puts; puts "#" * 80; puts
+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
-test "bucket"
-test "formula"
-test "versions"
-test "checksums"
-test "inreplace"
-test "hardware"
-test "formula_install"
-test "patching"
-test "external_deps"
-test "pathname_install"
-test "utils"
-test "ARGV"
-test "ENV"
-test "updater"
-test "string"
-
-exit $tests_passed ? 0 : 1 \ No newline at end of file
+Homebrew.tests