diff options
Diffstat (limited to 'jni/ruby/test/mkmf/test_config.rb')
-rw-r--r-- | jni/ruby/test/mkmf/test_config.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/jni/ruby/test/mkmf/test_config.rb b/jni/ruby/test/mkmf/test_config.rb new file mode 100644 index 0000000..7bf537e --- /dev/null +++ b/jni/ruby/test/mkmf/test_config.rb @@ -0,0 +1,16 @@ +$extmk = true + +require 'test/unit' +require 'mkmf' + +class TestMkmf < Test::Unit::TestCase + class TestConfig < Test::Unit::TestCase + def test_dir_config + bug8074 = '[Bug #8074]' + lib = RbConfig.expand(RbConfig::MAKEFILE_CONFIG["libdir"], "exec_prefix"=>"") + assert_separately %w[-rmkmf - -- --with-foo-dir=/test/foo], %{ + assert_equal(%w[/test/foo/include /test/foo#{lib}], dir_config("foo"), #{bug8074.dump}) + } + end + end +end |