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.pull/13434/head
parent
2fd7d64a50
commit
2a8bb3b9f1
11 changed files with 12 additions and 32 deletions
@ -1,9 +1,5 @@ |
||||
project('cmake-executable-dependency', 'c') |
||||
|
||||
if not find_program('cmake', required: false).found() |
||||
error('MESON_SKIP_TEST CMake is not installed') |
||||
endif |
||||
|
||||
cmake = import('cmake') |
||||
cmlib = cmake.subproject('cmlib') |
||||
maind = cmlib.dependency('main') |
||||
|
@ -1,8 +1,4 @@ |
||||
project('cmake-executable-dependency') |
||||
|
||||
if not find_program('cmake', required: false).found() |
||||
error('MESON_SKIP_TEST CMake is not installed') |
||||
endif |
||||
|
||||
cmake = import('cmake') |
||||
cmlib = cmake.subproject('cmlib') |
||||
|
@ -1,9 +1,5 @@ |
||||
project('framework recasting', 'c', 'cpp') |
||||
|
||||
if not find_program('cmake', required: false).found() |
||||
error('MESON_SKIP_TEST cmake binary not available.') |
||||
endif |
||||
|
||||
x = dependency('OpenAL', method: 'cmake') |
||||
|
||||
y = executable('tt', files('main.cpp'), dependencies: x) |
||||
|
@ -0,0 +1,5 @@ |
||||
{ |
||||
"tools": { |
||||
"cmake": ">=3.11" |
||||
} |
||||
} |
Loading…
Reference in new issue