aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2012-03-25 00:49:18 +1100
committerMike McQuaid2012-03-29 18:40:32 +1100
commiteb71d1ba714fb9d8d864a224a5924e6207d98a32 (patch)
treebafe77fd214b228d36145091cf2cfdb99dc37b96 /Library
parent8c338a6bb1827b8631cab5d5ecb6587b6c3cd905 (diff)
downloadbrew-eb71d1ba714fb9d8d864a224a5924e6207d98a32.tar.bz2
Add brew tests command to run all unit tests.
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Contributions/cmds/brew-tests.rb29
1 files changed, 29 insertions, 0 deletions
diff --git a/Library/Contributions/cmds/brew-tests.rb b/Library/Contributions/cmds/brew-tests.rb
new file mode 100755
index 000000000..f7f7f78ca
--- /dev/null
+++ b/Library/Contributions/cmds/brew-tests.rb
@@ -0,0 +1,29 @@
+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
+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