Debian Codegraph @

test cases/keyval/1 basic/meson.build

raw
1 project('keyval basic test', meson_version : '>= 0.55')
2
3 k = import('keyval')
4 conf = k.load('.config')
5
6 if not conf.has_key('CONFIG_VAL1')
7 error('Expected CONFIG_VAL1 to be set, but it wasn\'t')
8 endif
9
10 if conf.has_key('CONFIG_VAL2')
11 error('Expected CONFIG_VAL2 not be set, but it was')
12 endif
13
14 if conf.get('CONFIG_VAL_VAL').to_int() != 4
15 error('Expected CONFIG_VAL_VAL to be 4')
16 endif
17
18 k = import('unstable-keyval')