diff options
| author | Adam Vandenberg | 2010-04-03 08:44:41 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-06-10 12:57:51 -0700 |
| commit | 1761ba66bfca0784d49de10bd684cc54d53fded8 (patch) | |
| tree | cd8ce5cb705d7e53a504262cc1914bb532d98be5 /Library/Homebrew/test/test_formula_install.rb | |
| parent | 914a068dc8cc9f84188a4a8b194336c632744058 (diff) | |
| download | brew-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.rb | 12 |
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 |
