diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2021-08-03 10:31:56 -0400 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2021-08-04 09:43:41 -0400 |
commit | 9da99e7a59cafdb9746ccd0cc148e454f0fa8b44 (patch) | |
tree | 76973679da1c9aea0780115a73209de168fbf6e8 /unittests/allplatformstests.py | |
parent | 630a41eb815e2638b741cdbee42d9bb8509cd0a8 (diff) | |
download | meson-9da99e7a59cafdb9746ccd0cc148e454f0fa8b44.zip meson-9da99e7a59cafdb9746ccd0cc148e454f0fa8b44.tar.gz meson-9da99e7a59cafdb9746ccd0cc148e454f0fa8b44.tar.bz2 |
destdir: Allow relative to build directory
Meson already works like that, except in do_copydir() that requires
absolute destdir. Better explicitly support that instead of leaving it
undefined and unconsistent.
Diffstat (limited to 'unittests/allplatformstests.py')
-rw-r--r-- | unittests/allplatformstests.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/unittests/allplatformstests.py b/unittests/allplatformstests.py index aa8a3ee..a94d9cb 100644 --- a/unittests/allplatformstests.py +++ b/unittests/allplatformstests.py @@ -512,6 +512,12 @@ class AllPlatformTests(BasePlatformTests): self.assertEqual(logged, read_logs()) self.assertFalse(os.path.exists(self.installdir)) + # If destdir is relative to build directory it should install + # exactly the same files. + rel_installpath = os.path.relpath(self.installdir, self.builddir) + self._run(self.meson_command + ['install', '--dry-run', '--destdir', rel_installpath, '-C', self.builddir]) + self.assertEqual(logged, read_logs()) + def test_uninstall(self): exename = os.path.join(self.installdir, 'usr/bin/prog' + exe_suffix) dirname = os.path.join(self.installdir, 'usr/share/dir') |