Debian Codegraph @

test cases/keyval/4 load_config builddir/meson.build

raw
1 project('keyval builddir test')
2
3 k = import('keyval')
4
5 out_conf = configure_file(input: 'config', output: 'out-config', copy: true)
6 conf = k.load(out_conf)
7
8 if not conf.has_key('CONFIG_IS_SET')
9 error('Expected CONFIG_IS_SET to be set, but it wasn\'t')
10 endif
11
12 if conf.has_key('CONFIG_NOT_IS_SET')
13 error('Expected CONFIG_NOT_IS_SET not be set, but it was')
14 endif