2015-12-16 00:07:31 -05:00
|
|
|
# frozen_string_literal: false
|
2013-07-04 03:03:07 -04:00
|
|
|
$extmk = true
|
|
|
|
|
2013-03-10 22:53:47 -04:00
|
|
|
require 'test/unit'
|
|
|
|
require 'mkmf'
|
|
|
|
|
2013-03-11 08:12:15 -04:00
|
|
|
class TestMkmf < Test::Unit::TestCase
|
2013-03-10 22:53:47 -04:00
|
|
|
class TestConfig < Test::Unit::TestCase
|
|
|
|
def test_dir_config
|
|
|
|
bug8074 = '[Bug #8074]'
|
2013-10-01 07:36:47 -04:00
|
|
|
lib = RbConfig.expand(RbConfig::MAKEFILE_CONFIG["libdir"], "exec_prefix"=>"")
|
2013-03-10 22:53:47 -04:00
|
|
|
assert_separately %w[-rmkmf - -- --with-foo-dir=/test/foo], %{
|
2013-10-01 07:36:47 -04:00
|
|
|
assert_equal(%w[/test/foo/include /test/foo#{lib}], dir_config("foo"), #{bug8074.dump})
|
2013-03-10 22:53:47 -04:00
|
|
|
}
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|