From b852c3c2a898bd2955cc5227a92e45b960dcb641 Mon Sep 17 00:00:00 2001 From: Dudemanguy Date: Fri, 27 Oct 2023 19:17:06 -0500 Subject: [PATCH] meson: test --- meson.build | 8 +++++++- testing_python.py | 6 ++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100755 testing_python.py diff --git a/meson.build b/meson.build index 345b591a8c5c0..716bce7059733 100644 --- a/meson.build +++ b/meson.build @@ -568,6 +568,7 @@ tools_directory = join_paths(source_root, 'TOOLS') docutils_wrapper = find_program(join_paths(tools_directory, 'docutils-wrapper.py')) file2string = find_program(join_paths(tools_directory, 'file2string.py')) matroska = find_program(join_paths(tools_directory, 'matroska.py')) +testing_python = find_program('testing_python.py') ebml_defs = custom_target('ebml_defs.inc', output: 'ebml_defs.inc', @@ -579,7 +580,12 @@ ebml_types = custom_target('ebml_types.h', command: [matroska, '--generate-header', '@OUTPUT@'], ) -sources += [ebml_defs, ebml_types] +fake = custom_target('fake.h', + output: 'fake.h', + command: [python, testing_python, '@OUTPUT@'], +) + +sources += [ebml_defs, ebml_types, fake] subdir('common') subdir('etc') diff --git a/testing_python.py b/testing_python.py new file mode 100755 index 0000000000000..d34186324bd28 --- /dev/null +++ b/testing_python.py @@ -0,0 +1,6 @@ +#!/usr/bin/env python3 +import sys + +if __name__ == "__main__": + with open(sys.argv[1], 'w') as f: + f.write("hi\n")