Skip to content
Snippets Groups Projects
Commit 38974ed6 authored by Jack Nagel's avatar Jack Nagel
Browse files

Run tests for both build environments

parent 7edf004f
No related branches found
No related tags found
No related merge requests found
require 'testing_env'
require 'extend/ENV'
class EnvironmentTests < Homebrew::TestCase
module SharedEnvTests
def setup
@env = {}.extend(EnvActivation)
@env.activate_extensions!
end
def test_switching_compilers
......@@ -105,9 +104,7 @@ class EnvironmentTests < Homebrew::TestCase
@env.prepend_path 'FOO', '/bin'
assert_equal "/bin#{File::PATH_SEPARATOR}/usr/bin", @env['FOO']
end
end
module SharedEnvTests
def test_switching_compilers_updates_compiler
[:clang, :llvm, :gcc, :gcc_4_0].each do |compiler|
@env.send(compiler)
......@@ -128,7 +125,8 @@ class StdenvTests < Homebrew::TestCase
include SharedEnvTests
def setup
@env = {}.extend(Stdenv)
super
@env.extend(Stdenv)
end
end
......@@ -136,7 +134,8 @@ class SuperenvTests < Homebrew::TestCase
include SharedEnvTests
def setup
@env = {}.extend(Superenv)
super
@env.extend(Superenv)
end
def test_initializes_deps
......
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