diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2019-09-18 21:12:55 -0400 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2019-10-01 13:06:45 -0400 |
commit | f396c71c52a7a3589c2998fce000843fc1e73835 (patch) | |
tree | c2790166411a7b1d657c825d9b7197abf00d4049 /run_unittests.py | |
parent | 01569fee2e8130b3ac54659c119e73180d3dafee (diff) | |
download | meson-f396c71c52a7a3589c2998fce000843fc1e73835.zip meson-f396c71c52a7a3589c2998fce000843fc1e73835.tar.gz meson-f396c71c52a7a3589c2998fce000843fc1e73835.tar.bz2 |
Fix link_whole of static libraries
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-x | run_unittests.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py index 5281aa9..67a3df7 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -5636,6 +5636,20 @@ c = ['{0}'] # TODO should someday be explicit about build platform only here self.init(testdir, override_envvars=env) + def test_static_link(self): + # Build some libraries and install them + testdir = os.path.join(self.unit_test_dir, '69 static link/lib') + libdir = os.path.join(self.installdir, self.prefix[1:], self.libdir) + self.init(testdir) + self.install() + + # Test that installed libraries works + self.new_builddir() + testdir = os.path.join(self.unit_test_dir, '69 static link') + self.init(testdir, extra_args=['-Dc_link_args="-L{}"'.format(libdir)]) + self.build() + self.run_tests() + def should_run_cross_arm_tests(): return shutil.which('arm-linux-gnueabihf-gcc') and not platform.machine().lower().startswith('arm') |