meson: add kyua integration for testsuite for now

pull/122/head
William Pitcock 2017-06-24 12:40:33 -05:00
parent a928ad75e6
commit 3ae11b1b4d
2 changed files with 26 additions and 0 deletions

View File

@ -85,7 +85,10 @@ pkgconf_exe = executable('pkgconf',
kyua_exe = find_program('kyua')
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')
install_man('pkgconf.1')

23
tests/meson.build Normal file
View File

@ -0,0 +1,23 @@
configure_file(input: 'Kyuafile.in', output: 'Kyuafile', configuration: cdata)
configure_file(input: 'test_env.sh.in', output: 'test_env.sh', configuration: cdata)
tests = [
'basic',
'builtins',
'conflicts',
'framework',
'parser',
'provides',
'regress',
'requires',
'sysroot',
'version'
]
# yuck
foreach test : tests
configure_file(input: test + '.sh', output: test, configuration: configuration_data())
run_command('chmod', '755', join_paths(meson.build_root(), 'tests', test))
endforeach