Clean up fails_with test classes

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Jack Nagel 2012-04-07 13:29:40 -05:00
parent d2c9b27e14
commit 25a148d6a1

View File

@ -41,83 +41,49 @@ class ConfigureFails <Formula
end end
end end
class TestAllCompilerFailures < Formula class TestCompilerFailures < Formula
def initialize name=nil def initialize name=nil
@url="file:///#{TEST_FOLDER}/tarballs/testball-0.1.tbz" @url="file:///#{TEST_FOLDER}/tarballs/testball-0.1.tbz"
@homepage = 'http://example.com/' @homepage = 'http://example.com/'
super "compilerfailures" super "compilerfailures"
end end
end
class TestAllCompilerFailures < TestCompilerFailures
fails_with :clang fails_with :clang
fails_with :llvm fails_with :llvm
fails_with :gcc fails_with :gcc
end end
class TestNoCompilerFailures < Formula class TestNoCompilerFailures < TestCompilerFailures
def initialize name=nil
@url="file:///#{TEST_FOLDER}/tarballs/testball-0.1.tbz"
@homepage = 'http://example.com/'
super "nocompilerfailures"
end
fails_with(:clang) { build 42 } fails_with(:clang) { build 42 }
fails_with(:llvm) { build 42 } fails_with(:llvm) { build 42 }
fails_with(:gcc) { build 42 } fails_with(:gcc) { build 42 }
end end
class TestLLVMFailure < Formula class TestLLVMFailure < TestCompilerFailures
def initialize name=nil
@url="file:///#{TEST_FOLDER}/tarballs/testball-0.1.tbz"
@homepage = 'http://example.com/'
super "llvmfailure"
end
fails_with :llvm fails_with :llvm
end end
class TestMixedCompilerFailures < Formula class TestMixedCompilerFailures < TestCompilerFailures
def initialize name=nil
@url="file:///#{TEST_FOLDER}/tarballs/testball-0.1.tbz"
@homepage = 'http://example.com/'
super "mixedcompilerfailures"
end
fails_with(:clang) { build MacOS.clang_build_version } fails_with(:clang) { build MacOS.clang_build_version }
fails_with(:llvm) { build 42 } fails_with(:llvm) { build 42 }
fails_with(:gcc) { build 5666 } fails_with(:gcc) { build 5666 }
end end
class TestMoreMixedCompilerFailures < Formula class TestMoreMixedCompilerFailures < TestCompilerFailures
def initialize name=nil
@url="file:///#{TEST_FOLDER}/tarballs/testball-0.1.tbz"
@homepage = 'http://example.com/'
super "moremixedcompilerfailures"
end
fails_with(:clang) { build 42 } fails_with(:clang) { build 42 }
fails_with(:llvm) { build 2336 } fails_with(:llvm) { build 2336 }
fails_with(:gcc) { build 5666 } fails_with(:gcc) { build 5666 }
end end
class TestEvenMoreMixedCompilerFailures < Formula class TestEvenMoreMixedCompilerFailures < TestCompilerFailures
def initialize name=nil
@url="file:///#{TEST_FOLDER}/tarballs/testball-0.1.tbz"
@homepage = 'http://example.com/'
super "evenmoremixedcompilerfailures"
end
fails_with :clang fails_with :clang
fails_with(:llvm) { build 2336 } fails_with(:llvm) { build 2336 }
fails_with(:gcc) { build 5648 } fails_with(:gcc) { build 5648 }
end end
class TestBlockWithoutBuildCompilerFailure < Formula class TestBlockWithoutBuildCompilerFailure < TestCompilerFailures
def initialize name=nil
@url="file:///#{TEST_FOLDER}/tarballs/testball-0.1.tbz"
@homepage = 'http://example.com/'
super "blockwithoutbuildcompilerfailure"
end
fails_with :clang do fails_with :clang do
cause "failure" cause "failure"
end end