From 3ae11b1b4dfc38d253fa39b07e4578d3612f9b1d Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Sat, 24 Jun 2017 12:40:33 -0500 Subject: [PATCH] meson: add kyua integration for testsuite for now --- meson.build | 3 +++ tests/meson.build | 23 +++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 tests/meson.build diff --git a/meson.build b/meson.build index 22626c5..10c3a9e 100644 --- a/meson.build +++ b/meson.build @@ -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') diff --git a/tests/meson.build b/tests/meson.build new file mode 100644 index 0000000..e8ef6c4 --- /dev/null +++ b/tests/meson.build @@ -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