parent
f107f9b396
commit
d1920886a1
14 changed files with 60 additions and 11 deletions
@ -1,3 +1,7 @@ |
||||
project('impossible-dep-test', 'c', version : '1.0') |
||||
|
||||
if not dependency('zlib', required: false).found() |
||||
error('MESON_SKIP_TEST test requires zlib') |
||||
endif |
||||
|
||||
dependency('zlib', version : ['>=1.0', '<1.0']) |
||||
|
@ -1,3 +1,7 @@ |
||||
project('test', 'rust') |
||||
project('test') |
||||
|
||||
if not add_languages('rust', required: false) |
||||
error('MESON_SKIP_TEST test requires rust compiler') |
||||
endif |
||||
|
||||
shared_library('test', 'foo.rs', rust_crate_type : 'staticlib') |
||||
|
@ -1,3 +1,7 @@ |
||||
project('test', 'rust') |
||||
project('test') |
||||
|
||||
if not add_languages('rust', required: false) |
||||
error('MESON_SKIP_TEST test requires rust compiler') |
||||
endif |
||||
|
||||
static_library('test', 'foo.rs', rust_crate_type : 'cdylib') |
||||
|
@ -1,5 +1,9 @@ |
||||
project('boosttest', 'cpp', |
||||
default_options : ['cpp_std=c++11']) |
||||
|
||||
if not dependency('boost', required: false).found() |
||||
error('MESON_SKIP_TEST test requires boost') |
||||
endif |
||||
|
||||
# abc doesn't exist |
||||
linkdep = dependency('boost', modules : ['thread', 'system', 'test', 'abc']) |
||||
|
@ -1,4 +1,8 @@ |
||||
project('framework dependency with version', 'c') |
||||
|
||||
if host_machine.system() != 'darwin' |
||||
error('MESON_SKIP_TEST test only applicable on darwin') |
||||
endif |
||||
|
||||
# do individual frameworks have a meaningful version to test? And multiple frameworks might be listed... |
||||
# otherwise we're not on OSX and this will definitely fail |
||||
dep = dependency('appleframeworks', modules: 'foundation', version: '>0') |
||||
|
@ -1,3 +1,8 @@ |
||||
project('gtest dependency with version', ['c', 'cpp']) |
||||
|
||||
if not dependency('gtest', method: 'system', required: false).found() |
||||
error('MESON_SKIP_TEST test requires gtest') |
||||
endif |
||||
|
||||
# discovering gtest version is not yet implemented |
||||
dep = dependency('gtest', method: 'system', version: '>0') |
||||
|
@ -1,3 +1,11 @@ |
||||
project('dub', 'd') |
||||
project('dub') |
||||
|
||||
if not add_languages('d', required: false) |
||||
error('MESON_SKIP_TEST test requires D compiler') |
||||
endif |
||||
|
||||
if not find_program('dub', required: false).found() |
||||
error('MESON_SKIP_TEST test requires dub') |
||||
endif |
||||
|
||||
dependency('dubtestproject', method: 'dub') # Not library (none) |
||||
|
@ -1,3 +1,11 @@ |
||||
project('dub', 'd') |
||||
project('dub') |
||||
|
||||
if not add_languages('d', required: false) |
||||
error('MESON_SKIP_TEST test requires D compiler') |
||||
endif |
||||
|
||||
if not find_program('dub', required: false).found() |
||||
error('MESON_SKIP_TEST test requires dub') |
||||
endif |
||||
|
||||
dependency('dubtestproject:test1', method: 'dub') # Not library (executable) |
||||
|
Loading…
Reference in new issue