aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
authorMike McQuaid2012-03-08 00:41:38 -0800
committerMike McQuaid2012-03-09 18:28:47 +1300
commita005834d7a6094bc67ab3fd2634336fa1f473ced (patch)
tree86a9076a86c2bed35595fa61554da838d9a5684c /Library/Homebrew/test
parent0e2258f0fa6f94d43f9e0991f2da250c0f655e4f (diff)
downloadbrew-a005834d7a6094bc67ab3fd2634336fa1f473ced.tar.bz2
Run tests from anywhere and provide an exit code.
Diffstat (limited to 'Library/Homebrew/test')
-rwxr-xr-xLibrary/Homebrew/test/tests35
1 files changed, 20 insertions, 15 deletions
diff --git a/Library/Homebrew/test/tests b/Library/Homebrew/test/tests
index 8d24ea435..adbc600ec 100755
--- a/Library/Homebrew/test/tests
+++ b/Library/Homebrew/test/tests
@@ -1,18 +1,23 @@
#!/bin/bash
# This shell script runs Homebrew's test suite.
-/usr/bin/ruby test_bucket.rb $*
-/usr/bin/ruby test_formula.rb $*
-/usr/bin/ruby test_versions.rb $*
-/usr/bin/ruby test_checksums.rb $*
-/usr/bin/ruby test_inreplace.rb $*
-/usr/bin/ruby test_hardware.rb $*
-/usr/bin/ruby test_formula_install.rb $*
-/usr/bin/ruby test_patching.rb $*
-/usr/bin/ruby test_external_deps.rb $*
-/usr/bin/ruby test_pathname_install.rb $*
-/usr/bin/ruby test_utils.rb $*
-/usr/bin/ruby test_ARGV.rb $*
-/usr/bin/ruby test_ENV.rb $*
-/usr/bin/ruby test_updater.rb $*
-/usr/bin/ruby test_string.rb $*
+cd `dirname $0`
+
+EXIT=0
+/usr/bin/ruby test_bucket.rb $* || EXIT=1
+/usr/bin/ruby test_formula.rb $* || EXIT=1
+/usr/bin/ruby test_versions.rb $* || EXIT=1
+/usr/bin/ruby test_checksums.rb $* || EXIT=1
+/usr/bin/ruby test_inreplace.rb $* || EXIT=1
+/usr/bin/ruby test_hardware.rb $* || EXIT=1
+/usr/bin/ruby test_formula_install.rb $* || EXIT=1
+/usr/bin/ruby test_patching.rb $* || EXIT=1
+/usr/bin/ruby test_external_deps.rb $* || EXIT=1
+/usr/bin/ruby test_pathname_install.rb $* || EXIT=1
+/usr/bin/ruby test_utils.rb $* || EXIT=1
+/usr/bin/ruby test_ARGV.rb $* || EXIT=1
+/usr/bin/ruby test_ENV.rb $* || EXIT=1
+/usr/bin/ruby test_updater.rb $* || EXIT=1
+/usr/bin/ruby test_string.rb $* || EXIT=1
+
+exit $EXIT \ No newline at end of file