Clean up fails_with test classes
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
d2c9b27e14
commit
25a148d6a1
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user