diff options
| author | Jack Nagel | 2012-04-07 13:29:40 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-04-07 13:29:40 -0500 |
| commit | 89899c234552dc480ef0c9a97f8255bdc54e0113 (patch) | |
| tree | 020a34bcedd714754ca618fb0087ddf5d0d8924a /Library | |
| parent | b84845cd703fea9b2b87577be9c101a0e1fd810c (diff) | |
| download | homebrew-89899c234552dc480ef0c9a97f8255bdc54e0113.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 |
