meson: Add option for installing tests#511
Conversation
|
Build failed.
|
c735097 to
2b1ae1b
Compare
|
Build failed.
|
debarshiray
left a comment
There was a problem hiding this comment.
Thanks for working on this!
Do we really need a separate build option? I'd always install the tests unconditionally, unless there are cases where they might cause problems.
You know, the usual spiel about less being better when it comes to options. :)
Sometimes projects (eg., in GNOME) have an option for disabling documentation. That's done to help continuous integration and delivery systems like GNOME Continuous, because building the entire documentation generation stack (including gtk-doc and all its Docbook underpinnings) can be quite onerous. So it's more practical to disable generating the documentation. It doesn't look like we have such problems here.
Oh, and it would nice to link to this PR from the Git commit message.
Installing the tests will let downstream distributors like Fedora run them as part of their build and CI systems. containers#511
2b1ae1b to
9bd2ae4
Compare
Installing the tests will let downstream distributors like Fedora run them as part of their build and CI systems. containers#511
9bd2ae4 to
f246d20
Compare
|
My thinking behind making this a build option was that the tests are not something that is necessary for running Toolbox, thus they don't need to be enabled by default. But I believe you're right about this and the option is not really necessary. I'll add the link to the PR (I forgot to do that when I added CONTRIBTING.md...). EDIT: I just realized you already merged it :) |
This adds a new option to Meson called
with_testsmaking it possible to install whole 'test' subdir into the system's data dir (usually/shareor/usr/share).