Skip to content
Snippets Groups Projects
Commit cacb057b authored by Adam Vandenberg's avatar Adam Vandenberg
Browse files

Move ENV tests to separate file.

parent 31ebf6a2
No related branches found
No related tags found
No related merge requests found
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
......@@ -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
......@@ -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 $*
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment