aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2010-07-18 14:23:09 -0700
committerAdam Vandenberg2010-07-19 20:15:04 -0700
commit14f0556d1ca2b67301aee221d3a5919fca60143e (patch)
treeac2d6638d4c6f888c3a21d4f062f9f1767cb96a0 /Library
parentbc5ee7c482396af3a1f15cd851df0c8390836f89 (diff)
downloadbrew-14f0556d1ca2b67301aee221d3a5919fca60143e.tar.bz2
Remove "test/formula_test.rb"
This diagnostic script has been replaced by the "brew audit" external command.
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Homebrew/test/formula_test.rb50
1 files changed, 0 insertions, 50 deletions
diff --git a/Library/Homebrew/test/formula_test.rb b/Library/Homebrew/test/formula_test.rb
deleted file mode 100755
index 74597972b..000000000
--- a/Library/Homebrew/test/formula_test.rb
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/usr/bin/ruby
-# This software is in the public domain, furnished "as is", without technical
-# support, and with no warranty, express or implied, as to its usefulness for
-# any purpose.
-
-$:.push(File.expand_path(__FILE__+'/../..'))
-require 'test/unit'
-require 'global'
-require 'formula'
-require 'utils'
-
-
-class WellKnownCodeIssues <Test::Unit::TestCase
- def test_formula_names
- # Formula names should be valid
- nostdout do
- Dir["#{HOMEBREW_PREFIX}/Library/Formula/*.rb"].each do |f|
- assert_nothing_raised do
- Formula.factory f
- end
- end
- end
- end
-
- def test_for_commented_out_cmake
- # Formulas shouldn't contain commented-out cmake code from the default template
- Formulary.paths.each do |f|
- result = `grep "# depends_on 'cmake'" "#{f}"`.strip
- assert_equal('', result, "Commented template code still in #{f}")
- end
- end
-
- def test_for_misquoted_prefix
- # Prefix should not have single quotes if the system args are already separated
- target_string = "[\\\"]--prefix=[\\']"
-
- Formulary.paths.each do |f|
- result = `grep -e "#{target_string}" "#{f}"`.strip
- assert_equal('', result, "--prefix is incorrectly single-quoted in #{f}")
- end
- end
-
- def test_for_crufy_sourceforge_url
- # Don't specify mirror for SourceForge downloads
- Formulary.paths.each do |f|
- result = `grep "\?use_mirror=" "#{f}"`.strip
- assert_equal('', result, "Remove 'use_mirror' from url for #{f}")
- end
- end
-end