aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBaptiste Fontaine2015-12-23 00:58:31 +0100
committerBaptiste Fontaine2015-12-23 12:33:30 +0100
commit755ca5da6cbd9530ebd43d61cd1333a3414951bd (patch)
tree8db258659329185fa730cc6d9bf297ec74d91a1c
parent8d3f33de905f5cecf9cac77447e7492e59734c5b (diff)
downloadbrew-755ca5da6cbd9530ebd43d61cd1333a3414951bd.tar.bz2
blacklist tests added
Closes Homebrew/homebrew#47280. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
-rw-r--r--Library/Homebrew/test/test_blacklist.rb72
1 files changed, 72 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_blacklist.rb b/Library/Homebrew/test/test_blacklist.rb
new file mode 100644
index 000000000..f700f361b
--- /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