summaryrefslogtreecommitdiff
path: root/test/mkmf
diff options
context:
space:
mode:
authorMike Dalessio <mike.dalessio@gmail.com>2022-01-18 08:13:48 -0500
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-01-29 15:22:52 +0900
commitb90e56e6243f4e6567991bfd2375e1f58b1414a0 (patch)
tree267ecc454514f733c8ba3d7bd95ace2896bd8601 /test/mkmf
parent24c7e75ded461446e7c8e83bbceecccf7bcb4d0e (diff)
mkmf: pkg_config accepts multiple options
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/5436
Diffstat (limited to 'test/mkmf')
-rw-r--r--test/mkmf/test_pkg_config.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/mkmf/test_pkg_config.rb b/test/mkmf/test_pkg_config.rb
index 42aad65cf3..1f4f48db12 100644
--- a/test/mkmf/test_pkg_config.rb
+++ b/test/mkmf/test_pkg_config.rb
@@ -57,5 +57,12 @@ class TestMkmf
actual = pkg_config("test1", "cflags").shellsplit.sort
assert_equal(expected, actual, MKMFLOG)
end
+
+ def test_pkgconfig_with_multiple_options
+ pend("skipping because pkg-config is not installed") unless PKG_CONFIG
+ expected = ["-L#{@fixtures_lib_dir}", "-ltest1-public", "-ltest1-private"].sort
+ actual = pkg_config("test1", "libs", "static").shellsplit.sort
+ assert_equal(expected, actual, MKMFLOG)
+ end
end
end