PageRenderTime 95ms CodeModel.GetById 5ms RepoModel.GetById 0ms app.codeStats 0ms

/test/mkmf/test_config.rb

http://github.com/ruby/ruby
Ruby | 17 lines | 14 code | 2 blank | 1 comment | 0 complexity | 4d3b7df6f8552157b6b7427c6638fb75 MD5 | raw file
Possible License(s): GPL-2.0, BSD-3-Clause, AGPL-3.0
  1. # frozen_string_literal: false
  2. $extmk = true
  3. require 'test/unit'
  4. require 'mkmf'
  5. class TestMkmf < Test::Unit::TestCase
  6. class TestConfig < Test::Unit::TestCase
  7. def test_dir_config
  8. bug8074 = '[Bug #8074]'
  9. lib = RbConfig.expand(RbConfig::MAKEFILE_CONFIG["libdir"], "exec_prefix"=>"")
  10. assert_separately %w[-rmkmf - -- --with-foo-dir=/test/foo], %{
  11. assert_equal(%w[/test/foo/include /test/foo#{lib}], dir_config("foo"), #{bug8074.dump})
  12. }
  13. end
  14. end
  15. end