-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
mtest: only build what is needed for the tests #7902
Conversation
d51724f
to
7fefdf8
Compare
This pull request introduces 1 alert when merging 7fefdf8 into 431f0b0 - view on LGTM.com new alerts:
|
85669c6
to
3aeb3e6
Compare
3aeb3e6
to
fce03a7
Compare
The failure is weird since it's a SIGSEGV in a test. It shouldn't be affected by this patch. Let's see if it's transient... EDIT: it went away upon rebase. |
770ec55
to
004b986
Compare
004b986
to
9d05b6d
Compare
This is great. I have targets that consists of 100s of file and have LTO enabled by default so take a long time build, but are unneeded by UT tests. This would allow to rapidly build tests during a iterative develop work. |
ping... |
With the next patch, "meson test" will be using the targets introspection information. Provide helper functions to share bits of code between mintro.py and mtest.py.
It is a usual workflow to fix something and retest to see if it is fixed using a particular test. When tests start to become numerous, it becomes time consuming for "meson test" to relink all of them (and in fact rebuild the whole project) where the user has already specified the tests they want to run, as well as the tests' dependencies. Teach meson to be smart and only build what is needed for the test (or suite) that were specified. Fixes: mesonbuild#7473 Related: mesonbuild#7830
9d05b6d
to
79e2c52
Compare
I think this PR causes this regression: https://gitlab.freedesktop.org/ocrete/libnice/-/jobs/7348274 CC @ocrete |
|
It is a usual workflow to fix something and retest to see if it is fixed using a particular test. When tests start to become numerous, it becomes time consuming for "meson test" to relink all of them (and in fact rebuild the whole project) where the user has already specified the tests they want to run, as well as the tests' dependencies.
Teach meson to be smart and only build what is needed for the test (or suite) that were specified.
Fixes: #7473