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
commit30ef9c983cf3de7f66a1865ce7dda4397a7cfae6 (patch)
treeffc4310a28ba52334863601d885a60fc1a3659e5 /Library/Homebrew/test
parentd47dff5891a9ef808acf2aa00b05c7848477fb8b (diff)
downloadhomebrew-30ef9c983cf3de7f66a1865ce7dda4397a7cfae6.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