diff options
author | Ran Benita <ran@unusedvar.com> | 2020-07-25 16:30:39 +0300 |
---|---|---|
committer | Ran Benita <ran@unusedvar.com> | 2020-07-25 16:37:57 +0300 |
commit | 608e9361e39fe905f6cb2dc13bfd9a50c1c02310 (patch) | |
tree | 67206ab6b4ef04848dfcbf14fc166a8225693fb3 /meson.build | |
parent | 95111740758fc12afbc55b00d79a9f567fd4b889 (diff) | |
download | xorg-lib-libxkbcommon-608e9361e39fe905f6cb2dc13bfd9a50c1c02310.tar.gz |
tools: run test-tool-option-parsing.py like a regular test
Signed-off-by: Ran Benita <ran@unusedvar.com>
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/meson.build b/meson.build index e201d7c..a4b0f7b 100644 --- a/meson.build +++ b/meson.build @@ -639,17 +639,10 @@ You can disable the Wayland xkbcli programs with -Denable-wayland=false.''') install_man('tools/xkbcli-list.1') endif - # pytest finds files named test_foo_bar.py but not - # test-foo-bar.py, let's rename the source file so it only ever finds the - # built one. - config_tool_option_test = configuration_data() - config_tool_option_test.set('MESON_BUILD_ROOT', meson.current_build_dir()) - tool_option_test = configure_file(input: 'tools/test-tool-option-parsing.py', - output: 'test_tool_option_parsing.py', - configuration : config_tool_option_test) test('tool-option-parsing', - tool_option_test, - args: [tool_option_test, '-n', 'auto']) + find_program('test/tool-option-parsing.py'), + env: test_env, + suite: ['python-tests']) endif |