yambar/test/meson.build
Daniel Eklöf 217e0d2052 meson: test: must also pass '-C' (--validate)
Otherwise it will try to _run_ the bar, which we don't want.
2019-05-11 11:07:15 +02:00

9 lines
373 B
Meson

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