diff options
| author | Eli Schwartz <eschwartz93@gmail.com> | 2024-07-15 17:19:42 -0400 |
|---|---|---|
| committer | Eli Schwartz <eschwartz93@gmail.com> | 2024-07-15 23:43:10 -0400 |
| commit | 2a8bb3b9f10f180c50930db92eaf23e8c4c9b81a (patch) | |
| tree | 250e3df2741601cf169f85728a11841d1d296e54 /test cases/linuxlike | |
| parent | 2fd7d64a50aa4f8a76d5b9ca13f7d8f8f40b959c (diff) | |
| download | meson-2a8bb3b9f10f180c50930db92eaf23e8c4c9b81a.tar.gz | |
tests: short-circuit tests that require cmake, faster
We have two ways of marking a test as skipped:
- raise MESON_SKIP_TEST
- declare that the tools it needs in test.json are unavailable
Doing the former requires performing the configure stage including e.g.
language setup.
In several cases we weren't even getting this far anyway since we used
both mechanisms (the cmake category has a category-wide skip for this,
in fact). In some case, we were missing test.json declaring it skippable;
add this.
Diffstat (limited to 'test cases/linuxlike')
| -rw-r--r-- | test cases/linuxlike/13 cmake dependency/meson.build | 5 | ||||
| -rw-r--r-- | test cases/linuxlike/13 cmake dependency/test.json | 5 |
2 files changed, 5 insertions, 5 deletions
diff --git a/test cases/linuxlike/13 cmake dependency/meson.build b/test cases/linuxlike/13 cmake dependency/meson.build index f612e1d52..812dcf9c5 100644 --- a/test cases/linuxlike/13 cmake dependency/meson.build +++ b/test cases/linuxlike/13 cmake dependency/meson.build @@ -2,10 +2,7 @@ # due to use of setup_env.json project('external CMake dependency', ['c', 'cpp']) -cmake = find_program('cmake', required: false) -if not cmake.found() - error('MESON_SKIP_TEST cmake binary not available.') -endif +cmake = find_program('cmake') # Zlib is probably on all dev machines. diff --git a/test cases/linuxlike/13 cmake dependency/test.json b/test cases/linuxlike/13 cmake dependency/test.json index 484ce202c..208b59193 100644 --- a/test cases/linuxlike/13 cmake dependency/test.json +++ b/test cases/linuxlike/13 cmake dependency/test.json @@ -10,5 +10,8 @@ { "line": " ['CMMesonTESTf1::evil_non_standard_target']" } - ] + ], + "tools": { + "cmake": ">=3.11" + } } |
