Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance meson support so that it can automatically generate a test runner #551

Conversation

pmembrey
Copy link
Contributor

@pmembrey pmembrey commented Apr 3, 2021

The current meson.build file is all that's needed to link Unity into a parent project. However, this doesn't expose any of the helper scripts, with generate_test_runner.rb being one of the most important for "it just works" testing.

The added generator makes it easy to call generate_test_runner.rb with given input and output files, allowing Meson to automatically integrate the runner into its build environment. This did require making generate_test_runner.rb executable and adding a #! though.

The approach used is the best I can find from scouring the docs. From a brief discussion with a Meson dev, the path should magically do the right thing. Alas it doesn't and likely I'll need to file a bug. This works in the meantime however.

I've added some documentation in docs/ - happy to refine as needed :)

@pmembrey pmembrey mentioned this pull request Apr 5, 2021
@mvandervoord mvandervoord merged commit ae4ab78 into ThrowTheSwitch:master Feb 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants