diff options
| author | Mike McQuaid | 2012-03-08 00:41:38 -0800 |
|---|---|---|
| committer | Mike McQuaid | 2012-03-09 18:28:47 +1300 |
| commit | a005834d7a6094bc67ab3fd2634336fa1f473ced (patch) | |
| tree | 86a9076a86c2bed35595fa61554da838d9a5684c /Library | |
| parent | 0e2258f0fa6f94d43f9e0991f2da250c0f655e4f (diff) | |
| download | brew-a005834d7a6094bc67ab3fd2634336fa1f473ced.tar.bz2 | |
Run tests from anywhere and provide an exit code.
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/Homebrew/test/tests | 35 |
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 |
