aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
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.