diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2022-09-19 13:39:55 -0400 |
---|---|---|
committer | Eli Schwartz <eschwartz93@gmail.com> | 2022-09-28 00:13:49 -0400 |
commit | a010274d4b92b45a25bad8961bfa2dd33e778cbc (patch) | |
tree | 5c16f0e1446d389d11f0fdaefa87ab4467aed23a /mesonbuild | |
parent | c8d5f93cb0b7ebc30aec637a9aeadbe5bc9934d6 (diff) | |
download | meson-a010274d4b92b45a25bad8961bfa2dd33e778cbc.zip meson-a010274d4b92b45a25bad8961bfa2dd33e778cbc.tar.gz meson-a010274d4b92b45a25bad8961bfa2dd33e778cbc.tar.bz2 |
Automaticall tag installed tests
It is common, at least in GNOME projects, to install tests. Files goes
into various locations, including:
- /usr/lib/x86_64-linux-gnu/installed-tests
- /usr/share/installed-tests
- /usr/libexec/installed-tests
It is safe to assume that everything that goes into a "installed-tests"
subdir should be tagged as "tests" by default.
Diffstat (limited to 'mesonbuild')
-rw-r--r-- | mesonbuild/backend/backends.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py index 28cd73e..ba342a1 100644 --- a/mesonbuild/backend/backends.py +++ b/mesonbuild/backend/backends.py @@ -1540,6 +1540,8 @@ class Backend: return 'devel' elif localedir in dest_path.parents: return 'i18n' + elif 'installed-tests' in dest_path.parts: + return 'tests' mlog.debug('Failed to guess install tag for', dest_path) return None |