Debian Codegraph @

test cases/keyval/3 load_config files/dir/meson.build

raw
1
2 k = import('keyval')
3
4 conf = k.load(files('config'))
5
6 if not conf.has_key('CONFIG_IS_SET')
7 error('Expected CONFIG_IS_SET to be set, but it wasn\'t')
8 endif
9
10 if conf.has_key('CONFIG_NOT_IS_SET')
11 error('Expected CONFIG_NOT_IS_SET not be set, but it was')
12 endif