blacklist tests added
Closes Homebrew/homebrew#47280. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
This commit is contained in:
parent
8d3f33de90
commit
755ca5da6c
72
Library/Homebrew/test/test_blacklist.rb
Normal file
72
Library/Homebrew/test/test_blacklist.rb
Normal file
@ -0,0 +1,72 @@
|
||||
require "testing_env"
|
||||
require "blacklist"
|
||||
|
||||
class BlacklistTests < Homebrew::TestCase
|
||||
def assert_blacklisted(s)
|
||||
assert blacklisted?(s), "'#{s}' should be blacklisted"
|
||||
end
|
||||
|
||||
def test_rubygems
|
||||
%w[gem rubygem rubygems].each { |s| assert_blacklisted s }
|
||||
end
|
||||
|
||||
def test_latex
|
||||
%w[latex tex tex-live texlive TexLive].each { |s| assert_blacklisted s }
|
||||
end
|
||||
|
||||
def test_pip
|
||||
assert_blacklisted "pip"
|
||||
end
|
||||
|
||||
def test_pil
|
||||
assert_blacklisted "pil"
|
||||
end
|
||||
|
||||
def test_macruby
|
||||
assert_blacklisted "MacRuby"
|
||||
end
|
||||
|
||||
def test_lzma
|
||||
%w[lzma liblzma].each { |s| assert_blacklisted s }
|
||||
end
|
||||
|
||||
def test_xcode
|
||||
%w[xcode Xcode].each { |s| assert_blacklisted s }
|
||||
end
|
||||
|
||||
def test_gtest
|
||||
%w[gtest googletest google-test].each { |s| assert_blacklisted s }
|
||||
end
|
||||
|
||||
def test_gmock
|
||||
%w[gmock googlemock google-mock].each { |s| assert_blacklisted s }
|
||||
end
|
||||
|
||||
def test_sshpass
|
||||
assert_blacklisted "sshpass"
|
||||
end
|
||||
|
||||
def test_gsutil
|
||||
assert_blacklisted "gsutil"
|
||||
end
|
||||
|
||||
def test_clojure
|
||||
assert_blacklisted "clojure"
|
||||
end
|
||||
|
||||
def test_osmium
|
||||
%w[osmium Osmium].each { |s| assert_blacklisted s }
|
||||
end
|
||||
|
||||
def test_gfortran
|
||||
assert_blacklisted "gfortran"
|
||||
end
|
||||
|
||||
def test_play
|
||||
assert_blacklisted "play"
|
||||
end
|
||||
|
||||
def test_haskell_platform
|
||||
assert_blacklisted "haskell-platform"
|
||||
end
|
||||
end
|
||||
Loading…
x
Reference in New Issue
Block a user