aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_formula_install.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2010-04-03 08:44:41 -0700
committerAdam Vandenberg2010-06-10 12:57:51 -0700
commit1761ba66bfca0784d49de10bd684cc54d53fded8 (patch)
treecd8ce5cb705d7e53a504262cc1914bb532d98be5 /Library/Homebrew/test/test_formula_install.rb
parent914a068dc8cc9f84188a4a8b194336c632744058 (diff)
downloadbrew-1761ba66bfca0784d49de10bd684cc54d53fded8.tar.bz2
Failures during ./configure should mention config.log.
Diffstat (limited to 'Library/Homebrew/test/test_formula_install.rb')
-rw-r--r--Library/Homebrew/test/test_formula_install.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_formula_install.rb b/Library/Homebrew/test/test_formula_install.rb
index eb2dcb491..db1a2b103 100644
--- a/Library/Homebrew/test/test_formula_install.rb
+++ b/Library/Homebrew/test/test_formula_install.rb
@@ -21,6 +21,18 @@ class TestScriptFileFormula <ScriptFileFormula
end
+class ConfigureTests < Test::Unit::TestCase
+ def test_detect_failed_configure
+ f=ConfigureFails.new
+ begin
+ f.brew { f.install }
+ rescue ExecutionError => e
+ assert e.was_running_configure?
+ end
+ end
+end
+
+
class InstallTests < Test::Unit::TestCase
def temporary_install f
# Brew and install the given formula