Compiled languages are Meson's bread and butter, but hardly required. This is convenient, because many test caases specifically, do not care about testing the compiler interactions. In such cases, we can skip doing compiler lookups which aren't used, as they only slow down test setup.pull/10731/head
parent
75b8dc5c9e
commit
b7245d3f27
107 changed files with 108 additions and 107 deletions
@ -1,3 +1,3 @@ |
||||
project('skip', 'c') |
||||
project('skip') |
||||
|
||||
error('MESON_SKIP_TEST this test is always skipped.') |
||||
|
@ -1,2 +1,2 @@ |
||||
project('subdir with empty meson.build test', 'c') |
||||
project('subdir with empty meson.build test') |
||||
subdir('subdir') |
||||
|
@ -1 +1 @@ |
||||
project('default options prefix dependent defaults ', 'c', default_options : ['sharedstatedir=/sharedstate', 'prefix=/usr']) |
||||
project('default options prefix dependent defaults ', default_options : ['sharedstatedir=/sharedstate', 'prefix=/usr']) |
||||
|
@ -1,3 +1,3 @@ |
||||
project('master', 'c') |
||||
project('master') |
||||
|
||||
x = subproject('foo', version : ['>=1.0.0', '<2.0']) |
||||
|
@ -1 +1 @@ |
||||
project('foo', 'c', version : '1.0.0') |
||||
project('foo', version : '1.0.0') |
||||
|
@ -1,3 +1,3 @@ |
||||
project('baz', 'cpp') |
||||
project('baz') |
||||
|
||||
baz_dep = declare_dependency() |
||||
|
@ -1,3 +1,3 @@ |
||||
project('subproj', 'c') |
||||
project('subproj') |
||||
|
||||
include_directories('.') |
||||
|
@ -1,4 +1,4 @@ |
||||
project('conf file in custom target', 'c') |
||||
project('conf file in custom target') |
||||
|
||||
subdir('inc') |
||||
subdir('src') |
||||
|
@ -1,3 +1,3 @@ |
||||
project('test is external', 'c') |
||||
project('test is external') |
||||
|
||||
test('external', find_program('mytest.py'), args : ['correct']) |
||||
|
@ -1,3 +1,3 @@ |
||||
project('foo', 'c') |
||||
project('foo') |
||||
|
||||
subdir('subdir1/subdir2') |
||||
|
@ -1,4 +1,4 @@ |
||||
project('out of bounds', 'c') |
||||
project('out of bounds') |
||||
|
||||
x = [] |
||||
y = x[0] |
||||
|
@ -1,2 +1,2 @@ |
||||
project('no fallback', 'c') |
||||
project('no fallback') |
||||
foob_dep = dependency('foob', allow_fallback: false, required: true) |
||||
|
@ -1,2 +1,2 @@ |
||||
project('no fallback', 'c') |
||||
project('no fallback') |
||||
foo = get_option('reqfeature').require(false, error_message: 'frobnicator not available') |
||||
|
@ -1,2 +1,2 @@ |
||||
project('no fallback', 'c') |
||||
project('no fallback') |
||||
foo = get_option('reqfeature').require(false) |
||||
|
@ -1,3 +1,3 @@ |
||||
project('subdir2', 'c') |
||||
project('subdir2') |
||||
subdir('sub') |
||||
subdir('sub') |
||||
|
@ -1,3 +1,3 @@ |
||||
project('invalid-fstring', 'c') |
||||
project('invalid-fstring') |
||||
|
||||
z = f'invalid fstring: @foo@' |
||||
|
@ -1,3 +1,3 @@ |
||||
project('object arithmetic', 'c') |
||||
project('object arithmetic') |
||||
|
||||
foo = '5' + meson |
||||
|
@ -1,3 +1,3 @@ |
||||
project('string arithmetic', 'c') |
||||
project('string arithmetic') |
||||
|
||||
foo = 'a' + 3 |
||||
|
@ -1,3 +1,3 @@ |
||||
project('array arithmetic', 'c') |
||||
project('array arithmetic') |
||||
|
||||
foo = ['a', 'b'] * 3 |
||||
|
@ -1 +1 @@ |
||||
project('foo', 'c') |
||||
project('foo') |
||||
|
@ -1,3 +1,3 @@ |
||||
project('false plusassign', 'c') |
||||
project('false plusassign') |
||||
|
||||
3 += 4 |
||||
|
@ -1 +1 @@ |
||||
project('version mismatch', 'c', meson_version : '>100.0.0') |
||||
project('version mismatch', meson_version : '>100.0.0') |
||||
|
@ -1,3 +1,3 @@ |
||||
project('master', 'c') |
||||
project('master') |
||||
|
||||
x = subproject('foo', version : '>1.0.0') |
||||
|
@ -1 +1 @@ |
||||
project('foo', 'c', version : '1.0.0') |
||||
project('foo', version : '1.0.0') |
||||
|
@ -1,3 +1,3 @@ |
||||
project('failing assert', 'c') |
||||
project('failing assert') |
||||
|
||||
assert(false, 'I am fail.') |
||||
|
@ -1,3 +1,3 @@ |
||||
project('int conversion', 'c') |
||||
project('int conversion') |
||||
|
||||
'notanumber'.to_int() |
||||
|
@ -1,3 +1,3 @@ |
||||
project('badlang', 'c') |
||||
project('badlang') |
||||
|
||||
add_languages('nonexisting') |
||||
|
@ -1,3 +1,3 @@ |
||||
project('no crossprop', 'c') |
||||
project('no crossprop') |
||||
|
||||
message(meson.get_cross_property('nonexisting')) |
||||
|
@ -1,3 +1,3 @@ |
||||
project('nested ternary', 'c') |
||||
project('nested ternary') |
||||
|
||||
x = true ? (false ? 1 : 0) : 2 |
||||
|
@ -1,3 +1,3 @@ |
||||
project('subdir', 'c') |
||||
project('subdir') |
||||
|
||||
subdir('missing') |
||||
|
@ -1,2 +1,2 @@ |
||||
project('man install', 'c') |
||||
project('man install') |
||||
m1 = install_man('foo.a1') |
||||
|
@ -1,2 +1,2 @@ |
||||
project('man install', 'c') |
||||
project('man install') |
||||
m1 = install_man('foo') |
||||
|
@ -1,3 +1,3 @@ |
||||
project('non-root subproject', 'c') |
||||
project('non-root subproject') |
||||
|
||||
subdir('some') |
||||
|
@ -1,4 +1,4 @@ |
||||
project('dep-test', 'c', version : '1.0') |
||||
project('dep-test', version : '1.0') |
||||
|
||||
foo_dep = dependency('foo-bar-xyz-12.3', required : false) |
||||
bar_dep = dependency('foo-bar-xyz-12.3') |
||||
|
@ -1,2 +1,2 @@ |
||||
project('prefix-abs', 'c', |
||||
project('prefix-abs', |
||||
default_options : ['prefix=some/path/notabs']) |
||||
|
@ -1,3 +1,3 @@ |
||||
project('missing meson.build', 'c') |
||||
project('missing meson.build') |
||||
|
||||
subdir('subdir') |
||||
|
@ -1,3 +1,3 @@ |
||||
project('meson', 'c') |
||||
project('meson') |
||||
|
||||
include_directories(meson.current_source_dir()) |
||||
|
@ -1,3 +1,3 @@ |
||||
project('misplaced option', 'c') |
||||
project('misplaced option') |
||||
|
||||
option('dummy', type : 'string') |
||||
|
@ -1,3 +1,3 @@ |
||||
project('missing incdir', 'c') |
||||
project('missing incdir') |
||||
|
||||
inc = include_directories('nosuchdir') |
||||
|
@ -1,3 +1,3 @@ |
||||
project('master', 'c') |
||||
project('master') |
||||
|
||||
subproject('a') |
||||
|
@ -1,3 +1,3 @@ |
||||
projecT('b', 'c') |
||||
projecT('b') |
||||
|
||||
message('I do nothing.') |
||||
|
@ -1,3 +1,3 @@ |
||||
project('data install test', 'c') |
||||
project('data install test') |
||||
|
||||
install_data(['file1.txt', 'file2.txt'], rename : 'just one name') |
||||
|
@ -1,3 +1,3 @@ |
||||
project('fff', 'c') |
||||
project('fff') |
||||
|
||||
subdir('subprojects') |
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue