diff options
| author | Jack Nagel | 2012-04-07 13:29:40 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-04-07 13:29:40 -0500 |
| commit | 25a148d6a1509f69539a639cd9de65ca7c70d37d (patch) | |
| tree | 1e0e716695ef145f1cdc06c9bb568cdb677735bf /Library | |
| parent | d2c9b27e14a0a1e7e3620ee562ac6111da142873 (diff) | |
| download | brew-25a148d6a1509f69539a639cd9de65ca7c70d37d.tar.bz2 | |
Clean up fails_with test classes
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/test/testball.rb | 52 |
1 files changed, 9 insertions, 43 deletions
diff --git a/Library/Homebrew/test/testball.rb b/Library/Homebrew/test/testball.rb index 15069033d..ecee9d709 100644 --- a/Library/Homebrew/test/testball.rb +++ b/Library/Homebrew/test/testball.rb @@ -41,83 +41,49 @@ class ConfigureFails <Formula end end -class TestAllCompilerFailures < Formula +class TestCompilerFailures < Formula def initialize name=nil @url="file:///#{TEST_FOLDER}/tarballs/testball-0.1.tbz" @homepage = 'http://example.com/' super "compilerfailures" end +end +class TestAllCompilerFailures < TestCompilerFailures fails_with :clang fails_with :llvm fails_with :gcc end -class TestNoCompilerFailures < Formula - def initialize name=nil - @url="file:///#{TEST_FOLDER}/tarballs/testball-0.1.tbz" - @homepage = 'http://example.com/' - super "nocompilerfailures" - end - +class TestNoCompilerFailures < TestCompilerFailures fails_with(:clang) { build 42 } fails_with(:llvm) { build 42 } fails_with(:gcc) { build 42 } end -class TestLLVMFailure < Formula - def initialize name=nil - @url="file:///#{TEST_FOLDER}/tarballs/testball-0.1.tbz" - @homepage = 'http://example.com/' - super "llvmfailure" - end - +class TestLLVMFailure < TestCompilerFailures fails_with :llvm end -class TestMixedCompilerFailures < Formula - def initialize name=nil - @url="file:///#{TEST_FOLDER}/tarballs/testball-0.1.tbz" - @homepage = 'http://example.com/' - super "mixedcompilerfailures" - end - +class TestMixedCompilerFailures < TestCompilerFailures fails_with(:clang) { build MacOS.clang_build_version } fails_with(:llvm) { build 42 } fails_with(:gcc) { build 5666 } end -class TestMoreMixedCompilerFailures < Formula - def initialize name=nil - @url="file:///#{TEST_FOLDER}/tarballs/testball-0.1.tbz" - @homepage = 'http://example.com/' - super "moremixedcompilerfailures" - end - +class TestMoreMixedCompilerFailures < TestCompilerFailures fails_with(:clang) { build 42 } fails_with(:llvm) { build 2336 } fails_with(:gcc) { build 5666 } end -class TestEvenMoreMixedCompilerFailures < Formula - def initialize name=nil - @url="file:///#{TEST_FOLDER}/tarballs/testball-0.1.tbz" - @homepage = 'http://example.com/' - super "evenmoremixedcompilerfailures" - end - +class TestEvenMoreMixedCompilerFailures < TestCompilerFailures fails_with :clang fails_with(:llvm) { build 2336 } fails_with(:gcc) { build 5648 } end -class TestBlockWithoutBuildCompilerFailure < Formula - def initialize name=nil - @url="file:///#{TEST_FOLDER}/tarballs/testball-0.1.tbz" - @homepage = 'http://example.com/' - super "blockwithoutbuildcompilerfailure" - end - +class TestBlockWithoutBuildCompilerFailure < TestCompilerFailures fails_with :clang do cause "failure" end |
