aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_formula_install.rb
diff options
context:
space:
mode:
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