yambar/test/meson.build
Daniel Eklöf 235efd789a meson: add a couple of expected-to-fail tests
Initial set of tests verifying we fail when trying to load:

a) a non-existing configuration
b) a non-regular file configuration (e.g. a directory)
c) configuration exists, but has no top-level 'bar' entry
2019-05-09 20:37:09 +02:00

9 lines
355 B
Meson

test('is-executable', f00bar, args: ['--version'])
pwd = meson.current_source_dir()
# Configuratoin validation tests
test('no-config', f00bar, args: ['-c', 'xyz'], should_fail: true)
test('config-isnt-file', f00bar, args: ['-c', '.'], should_fail: true)
test('config-no-bar', f00bar, args: ['-c', join_paths(pwd, 'no-bar.yml')],
should_fail: true)