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

Change test option to boolean #32

Merged
merged 2 commits into from
Feb 2, 2024
Merged

Conversation

amboar
Copy link
Contributor

@amboar amboar commented Feb 2, 2024

Whether tests should be enabled isn't something that should be auto-detected. Switch the option from feature to boolean, and cleanup the meson.build file.

The bitbake recipe should be updated to specify the following when bumped:

EXTRA_OEMESON = "-Dtests=false"

The user needs to choose whether tests are enabled or not while
configuring the build, or fallback to the provided default. We can't
divine their thoughts; there's no programmatic way to determine a valid
choice, unlike with dependency-detection via pkg-config or some other
mechanism.

The `required` parameter of `find_program()` defaults to true. Eliminate
its specification for test programs, as the `find_program()` invocations
are already gated on the result of `get_option('tests')`.

Signed-off-by: Andrew Jeffery <[email protected]>
There's no need for the configuration file if we're not going to run
the tests.

Signed-off-by: Andrew Jeffery <[email protected]>
@amboar amboar changed the title Test option Change test option to boolean Feb 2, 2024
@jk-ozlabs jk-ozlabs merged commit 65926d9 into CodeConstruct:main Feb 2, 2024
1 check passed
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