diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2018-03-12 23:02:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-12 23:02:36 +0200 |
commit | 6585427a7d03e32770769863e1ae8902d4480745 (patch) | |
tree | 4ee1359c40352a554e1eaf219b6b31b8b3eecdb2 /run_unittests.py | |
parent | 28b19c78d6f9e12f9fc0f79748adbfed613eafc9 (diff) | |
parent | 2377f22ea594ee10c98e90df438d437362cca5ea (diff) | |
download | meson-6585427a7d03e32770769863e1ae8902d4480745.zip meson-6585427a7d03e32770769863e1ae8902d4480745.tar.gz meson-6585427a7d03e32770769863e1ae8902d4480745.tar.bz2 |
Merge pull request #3131 from sarum9in/pkgconfig
Pkgconfig accepts libraries and pkgconfig-dependencies in requires/requires_private parameters
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-x | run_unittests.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py index 38728ab..9c7b16b 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -2234,6 +2234,14 @@ class LinuxlikeTests(BasePlatformTests): '-llibinternal', '-lcustom2', '-lfoo'])) + cmd = ['pkg-config', 'requires-test'] + out = self._run(cmd + ['--print-requires']).strip().split() + self.assertEqual(sorted(out), sorted(['libexposed', 'libfoo', 'libhello'])) + + cmd = ['pkg-config', 'requires-private-test'] + out = self._run(cmd + ['--print-requires-private']).strip().split() + self.assertEqual(sorted(out), sorted(['libexposed', 'libfoo', 'libhello'])) + def test_pkg_unfound(self): testdir = os.path.join(self.unit_test_dir, '22 unfound pkgconfig') self.init(testdir) |