aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2020-07-21 21:44:17 -0400
committerXavier Claessens <xclaesse@gmail.com>2020-09-14 20:32:22 -0400
commit67c0ec1640369e20f9cea3fbdef873a4da3e47d3 (patch)
tree1a20aad639427b0ec272c8b0873e92046a87f8a4 /run_unittests.py
parentb872eea27f32e2d0b6767d7247cd43199b9ae41c (diff)
downloadmeson-67c0ec1640369e20f9cea3fbdef873a4da3e47d3.zip
meson-67c0ec1640369e20f9cea3fbdef873a4da3e47d3.tar.gz
meson-67c0ec1640369e20f9cea3fbdef873a4da3e47d3.tar.bz2
InternalDependency: Add as_link_whole() method
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py
index 5524c9e..32b3d34 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -7294,6 +7294,16 @@ c = ['{0}']
'''))
self.init(d, override_envvars={'PKG_CONFIG_LIBDIR': privatedir})
+ def test_as_link_whole(self):
+ testdir = os.path.join(self.unit_test_dir, '79 as link whole')
+ self.init(testdir)
+ with open(os.path.join(self.privatedir, 'bar1.pc')) as f:
+ content = f.read()
+ self.assertIn('-lfoo', content)
+ with open(os.path.join(self.privatedir, 'bar2.pc')) as f:
+ content = f.read()
+ self.assertNotIn('-lfoo', content)
+
class BaseLinuxCrossTests(BasePlatformTests):
# Don't pass --libdir when cross-compiling. We have tests that
# check whether meson auto-detects it correctly.