diff options
author | Daniele Nicolodi <daniele@grinta.net> | 2023-02-21 20:45:12 +0100 |
---|---|---|
committer | Eli Schwartz <eschwartz93@gmail.com> | 2023-02-27 07:03:30 -0500 |
commit | f39ccde5138aeabcbd483ca4b779954f056324e2 (patch) | |
tree | ce244ca87dc2cb903e000c6d4d96a50023ac1fb7 /unittests | |
parent | b80f8456ec754c579dfd5c1bbb4dc4be3500e7e6 (diff) | |
download | meson-f39ccde5138aeabcbd483ca4b779954f056324e2.zip meson-f39ccde5138aeabcbd483ca4b779954f056324e2.tar.gz meson-f39ccde5138aeabcbd483ca4b779954f056324e2.tar.bz2 |
mintro: Add exclude_{files, dirs} to install_subdir install_plan
These are necessary for projects outside Meson itself that want to
extend the 'meson install' functionality as meson-python does to
assemble Python package wheels from Meson projects.
Fixes #11426.
Diffstat (limited to 'unittests')
-rw-r--r-- | unittests/allplatformstests.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/unittests/allplatformstests.py b/unittests/allplatformstests.py index 3dd8a32..99dbf51 100644 --- a/unittests/allplatformstests.py +++ b/unittests/allplatformstests.py @@ -4235,6 +4235,8 @@ class AllPlatformTests(BasePlatformTests): Path(installpath, 'usr/share/out3-custom.txt'), Path(installpath, 'usr/share/custom_files'), Path(installpath, 'usr/share/custom_files/data.txt'), + Path(installpath, 'usr/share/excludes'), + Path(installpath, 'usr/share/excludes/installed.txt'), Path(installpath, 'usr/lib'), Path(installpath, 'usr/lib/libbothcustom.a'), Path(installpath, 'usr/' + shared_lib_name('bothcustom')), @@ -4442,7 +4444,15 @@ class AllPlatformTests(BasePlatformTests): 'install_subdirs': { f'{testdir}/custom_files': { 'destination': '{datadir}/custom_files', - 'tag': 'custom' + 'tag': 'custom', + 'exclude_dirs': [], + 'exclude_files': [], + }, + f'{testdir}/excludes': { + 'destination': '{datadir}/excludes', + 'tag': 'custom', + 'exclude_dirs': ['excluded'], + 'exclude_files': ['excluded.txt'], } } } |