diff options
author | Simon McVittie <smcv@collabora.com> | 2022-05-06 10:58:25 +0100 |
---|---|---|
committer | Eli Schwartz <eschwartz93@gmail.com> | 2022-05-10 07:56:59 -0400 |
commit | 65ea833d58f5e4720b89e6f97b38cd7d61b48418 (patch) | |
tree | 78e555fa67e5d3585a5f6e6052634fcd32a7ceae /run_project_tests.py | |
parent | 7650f328284f24c2f70dcfb1689ae8fc22c04cf1 (diff) | |
download | meson-65ea833d58f5e4720b89e6f97b38cd7d61b48418.zip meson-65ea833d58f5e4720b89e6f97b38cd7d61b48418.tar.gz meson-65ea833d58f5e4720b89e6f97b38cd7d61b48418.tar.bz2 |
Require CMake 3.14 for all tests that use the cmake module
Older versions are not supported by the cmake module since 0.62.
This avoids having to hard-code the linux-bionic-gcc CI job as being
unable to run these tests, which leaves other older environments like
Debian 10 still trying to run them (and failing).
Signed-off-by: Simon McVittie <smcv@collabora.com>
Diffstat (limited to 'run_project_tests.py')
-rwxr-xr-x | run_project_tests.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/run_project_tests.py b/run_project_tests.py index 3e1a4d1..7cbce64 100755 --- a/run_project_tests.py +++ b/run_project_tests.py @@ -1061,6 +1061,10 @@ def detect_tests_to_run(only: T.Dict[str, T.List[str]], use_tmp: bool) -> T.List shutil.which('nagfor') or shutil.which('ifort')) + skip_cmake = ((os.environ.get('compiler') == 'msvc2015' and under_ci) or + 'cmake' not in tool_vers_map or + not mesonlib.version_compare(tool_vers_map['cmake'], '>=3.14')) + class TestCategory: def __init__(self, category: str, subdir: str, skip: bool = False, stdout_mandatory: bool = False): self.category = category # category name @@ -1069,7 +1073,7 @@ def detect_tests_to_run(only: T.Dict[str, T.List[str]], use_tmp: bool) -> T.List self.stdout_mandatory = stdout_mandatory # expected stdout is mandatory for tests in this category all_tests = [ - TestCategory('cmake', 'cmake', not shutil.which('cmake') or (os.environ.get('compiler') == 'msvc2015' and under_ci) or (os.environ.get('MESON_CI_JOBNAME') == 'linux-bionic-gcc')), + TestCategory('cmake', 'cmake', skip_cmake), TestCategory('common', 'common'), TestCategory('native', 'native'), TestCategory('warning-meson', 'warning', stdout_mandatory=True), |