From 755ca5da6cbd9530ebd43d61cd1333a3414951bd Mon Sep 17 00:00:00 2001 From: Baptiste Fontaine Date: Wed, 23 Dec 2015 00:58:31 +0100 Subject: [PATCH] blacklist tests added Closes Homebrew/homebrew#47280. Signed-off-by: Baptiste Fontaine --- Library/Homebrew/test/test_blacklist.rb | 72 +++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 Library/Homebrew/test/test_blacklist.rb diff --git a/Library/Homebrew/test/test_blacklist.rb b/Library/Homebrew/test/test_blacklist.rb new file mode 100644 index 0000000000..f700f361bc --- /dev/null +++ b/Library/Homebrew/test/test_blacklist.rb @@ -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