Move ENV tests to separate file.

This commit is contained in:
Adam Vandenberg 2010-03-20 23:13:25 -07:00
parent 31ebf6a293
commit cacb057b91
3 changed files with 21 additions and 16 deletions

View File

@ -0,0 +1,20 @@
require 'testing_env'
require 'utils'
require 'brew.h'
require 'extend/ENV'
ENV.extend(HomebrewEnvExtension)
class EnvironmentTests < Test::Unit::TestCase
def test_ENV_options
ENV.gcc_4_0
ENV.gcc_4_2
ENV.O3
ENV.minimal_optimization
ENV.no_optimization
ENV.libxml2
ENV.x11
ENV.enable_warnings
assert !ENV.cc.empty?
assert !ENV.cxx.empty?
end
end

View File

@ -175,20 +175,4 @@ class BeerTasting < Test::Unit::TestCase
assert_equal 'foo-0.1', foo1.stem
assert_equal '0.1', foo1.version
end
def test_ENV_options
require 'extend/ENV'
ENV.extend(HomebrewEnvExtension)
ENV.gcc_4_0
ENV.gcc_4_2
ENV.O3
ENV.minimal_optimization
ENV.no_optimization
ENV.libxml2
ENV.x11
ENV.enable_warnings
assert !ENV.cc.empty?
assert !ENV.cxx.empty?
end
end

View File

@ -23,6 +23,7 @@ ruby test_external_deps.rb $*
ruby test_pathname_install.rb $*
ruby test_utils.rb $*
ruby test_ARGV.rb $*
ruby test_ENV.rb $*
# Update tests (only seem to work for mxcl)
ruby test_updater.rb $*