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

meson: Add options to not-build samples and tests. #27

Merged
merged 1 commit into from
Jan 10, 2020

Conversation

tsieprawski
Copy link
Contributor

When using boxfort as a subproject, meson test runs boxfort's tests. I believe a typical developer developing their super project wants to run only own tests, not dependencies' ones.

Thankfully boxfort's tests do not have much of impact, so they at least clutter the view. :)

This PR adds -Dsamples and -Dtests options to enable/disable, like this:

meson setup -Dsamples=false -Dtests=false build && cd build && meson test
# Or as a subproject
meson setup -Dboxfort:samples=false -Dboxfort:tests=false build && cd build && meson test

See the attached asciinema cast: boxfort.cast.zip

@hydrapolic
Copy link

Yes please, this will also help packaging.

@hydrapolic hydrapolic mentioned this pull request Jan 10, 2020
@Snaipe Snaipe merged commit 1456d9a into Snaipe:master Jan 10, 2020
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.

3 participants