1
project('options', 'c')
3
if get_option('testoption') != 'optval'
4
error('Incorrect value to test option')
7
if get_option('other_one') != false
8
error('Incorrect value to boolean option.')
11
if get_option('combo_opt') != 'combo'
12
error('Incorrect value to combo option.')
15
if get_option('array_opt') != ['one', 'two']
16
message(get_option('array_opt'))
17
error('Incorrect value for array option')
20
# If the default changes, update test cases/unit/13 reconfigure
21
if get_option('b_lto') != false
22
error('Incorrect value in base option.')
25
if get_option('includedir') != 'include'
26
error('Incorrect value in builtin option.')
29
if get_option('integer_opt') != 3
30
error('Incorrect value in integer option.')
33
if get_option('neg_int_opt') != -3
34
error('Incorrect value in negative integer option.')
37
if get_option('CaseSenSiTivE') != 'Some CAPS'
38
error('Incorrect value in mixed caps option.')
41
if get_option('CASESENSITIVE') != 'ALL CAPS'
42
error('Incorrect value in all caps option.')
45
assert(get_option('wrap_mode') == 'default', 'Wrap mode option is broken.')