meson: Add option to build without kyua for tests (#175)
parent
83eea876b0
commit
706273c746
|
@ -84,7 +84,7 @@ pkgconf_exe = executable('pkgconf',
|
||||||
link_with : libpkgconf,
|
link_with : libpkgconf,
|
||||||
install : true)
|
install : true)
|
||||||
|
|
||||||
|
if get_option('tests')
|
||||||
kyua_exe = find_program('kyua')
|
kyua_exe = find_program('kyua')
|
||||||
atf_sh_exe = find_program('atf-sh')
|
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()])
|
test('kyua', kyua_exe, args : ['--config=none', 'test', '--kyuafile=' + join_paths(meson.build_root(), 'Kyuafile'), '--build-root=' + meson.build_root()])
|
||||||
|
@ -92,7 +92,7 @@ test('kyua', kyua_exe, args : ['--config=none', 'test', '--kyuafile=' + join_pat
|
||||||
|
|
||||||
configure_file(input : 'Kyuafile.in', output : 'Kyuafile', configuration : cdata)
|
configure_file(input : 'Kyuafile.in', output : 'Kyuafile', configuration : cdata)
|
||||||
subdir('tests')
|
subdir('tests')
|
||||||
|
endif
|
||||||
|
|
||||||
install_man('man/pkgconf.1')
|
install_man('man/pkgconf.1')
|
||||||
install_man('man/pkg.m4.7')
|
install_man('man/pkg.m4.7')
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
option('tests', type: 'boolean', value: true,
|
||||||
|
description: 'Build tests which depends upon the kyua framework'
|
||||||
|
)
|
Loading…
Reference in New Issue