aboutsummaryrefslogtreecommitdiff
path: root/run_project_tests.py
diff options
context:
space:
mode:
authorMark Bolhuis <mark@bolhuis.dev>2022-02-10 21:01:58 +0000
committerXavier Claessens <xclaesse@gmail.com>2022-02-27 14:33:33 -0500
commit5a4177523e382cc13057d65905266ad261c4bba2 (patch)
treeee96a8f1031173122b3710d710151fc1f69ab0d8 /run_project_tests.py
parentfcca265035a92eac2773f85a79a8ad142a9bb795 (diff)
downloadmeson-5a4177523e382cc13057d65905266ad261c4bba2.zip
meson-5a4177523e382cc13057d65905266ad261c4bba2.tar.gz
meson-5a4177523e382cc13057d65905266ad261c4bba2.tar.bz2
modules/wayland: Add unstable_wayland module
Diffstat (limited to 'run_project_tests.py')
-rwxr-xr-xrun_project_tests.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/run_project_tests.py b/run_project_tests.py
index 926f4ef..ea8f901 100755
--- a/run_project_tests.py
+++ b/run_project_tests.py
@@ -84,7 +84,7 @@ if T.TYPE_CHECKING:
ALL_TESTS = ['cmake', 'common', 'native', 'warning-meson', 'failing-meson', 'failing-build', 'failing-test',
'keyval', 'platform-osx', 'platform-windows', 'platform-linux',
'java', 'C#', 'vala', 'cython', 'rust', 'd', 'objective c', 'objective c++',
- 'fortran', 'swift', 'cuda', 'python3', 'python', 'fpga', 'frameworks', 'nasm', 'wasm',
+ 'fortran', 'swift', 'cuda', 'python3', 'python', 'fpga', 'frameworks', 'nasm', 'wasm', 'wayland'
]
@@ -1033,6 +1033,13 @@ def should_skip_rust(backend: Backend) -> bool:
return True
return False
+def should_skip_wayland() -> bool:
+ if mesonlib.is_windows() or mesonlib.is_osx():
+ return True
+ if not shutil.which('wayland-scanner'):
+ return True
+ return False
+
def detect_tests_to_run(only: T.Dict[str, T.List[str]], use_tmp: bool) -> T.List[T.Tuple[str, T.List[TestDef], bool]]:
"""
Parameters
@@ -1089,6 +1096,7 @@ def detect_tests_to_run(only: T.Dict[str, T.List[str]], use_tmp: bool) -> T.List
TestCategory('frameworks', 'frameworks'),
TestCategory('nasm', 'nasm'),
TestCategory('wasm', 'wasm', shutil.which('emcc') is None or backend is not Backend.ninja),
+ TestCategory('wayland', 'wayland', should_skip_wayland()),
]
categories = [t.category for t in all_tests]