aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/keyval/1 basic/meson.build
blob: 4207b8e2dc5c39d8d1c013386cf3629b9248a8e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
project('keyval basic test')

k = import('keyval')
conf = k.load('.config')

if not conf.has_key('CONFIG_VAL1')
  error('Expected CONFIG_VAL1 to be set, but it wasn\'t')
endif

if conf.has_key('CONFIG_VAL2')
  error('Expected CONFIG_VAL2 not be set, but it was')
endif

if conf.get('CONFIG_VAL_VAL').to_int() != 4
  error('Expected CONFIG_VAL_VAL to be 4')
endif

k = import('unstable-keyval')