meson: Add option to build without kyua for tests

pull/175/head
Patrick Griffis 2018-03-06 19:41:24 -05:00
parent b0796cffa3
commit c530d1f9c1
2 changed files with 10 additions and 7 deletions

View File

@ -83,15 +83,15 @@ pkgconf_exe = executable('pkgconf',
link_with : libpkgconf,
install : true)
kyua_exe = find_program('kyua')
atf_sh_exe = find_program('atf-sh')
test('kyua', kyua_exe, args : ['--config=none', 'test', '--kyuafile=' + join_paths(meson.build_root(), 'Kyuafile'), '--build-root=' + meson.build_root()])
if get_option('tests')
kyua_exe = find_program('kyua')
atf_sh_exe = find_program('atf-sh')
test('kyua', kyua_exe, args : ['--config=none', 'test', '--kyuafile=' + join_paths(meson.build_root(), 'Kyuafile'), '--build-root=' + meson.build_root()])
configure_file(input : 'Kyuafile.in', output : 'Kyuafile', configuration : cdata)
subdir('tests')
configure_file(input : 'Kyuafile.in', output : 'Kyuafile', configuration : cdata)
subdir('tests')
endif
install_man('man/pkgconf.1')
install_man('man/pkg.m4.7')

3
meson_options.txt Normal file
View File

@ -0,0 +1,3 @@
option('tests', type: 'boolean', value: true,
description: 'Build tests which depends upon the kyua framework'
)